|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectJavaScriptObject
com.googlecode.gwtmapquest.transaction.MQALatLng
public class MQALatLng
| Constructor Summary | |
|---|---|
protected |
MQALatLng()
|
| Method Summary | |
|---|---|
double |
arcDistance(MQALatLng otherPoint,
MQDistanceUnits units)
Calculates the distance between two lat/lng�s in miles or meters. |
boolean |
equalsNative(MQALatLng other)
Returns whether or not two latlngs are equal. |
double |
getLatitude()
|
double |
getLongitude()
|
void |
loadXml(java.lang.String xml)
|
static MQALatLng |
newInstance()
|
static MQALatLng |
newInstance(double latitude,
double longitude)
|
static MQALatLng |
newInstance(java.lang.String xPath)
|
void |
setLatitude(double value)
|
void |
setLatLng(double latitude,
double longitude)
Sets the latitude and longitude values. |
void |
setLongitude(double value)
|
boolean |
toStringNative()
Returns a string representation of this MQLatLng. |
boolean |
valid()
Returns a true if both the latitude and longitude values are set to a value other than the static �INVALID� value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected MQALatLng()
| Method Detail |
|---|
public static MQALatLng newInstance(double latitude,
double longitude)
public static MQALatLng newInstance(java.lang.String xPath)
public static MQALatLng newInstance()
public final double getLatitude()
public final void setLatitude(double value)
public final double getLongitude()
public final void setLongitude(double value)
public final void setLatLng(double latitude,
double longitude)
latitude - longitude -
public final double arcDistance(MQALatLng otherPoint,
MQDistanceUnits units)
otherPoint - Second lat,lng position to calculate distance to.units - Units to calculate distance
public final boolean valid()
public final boolean equalsNative(MQALatLng other)
other -
public final boolean toStringNative()
MQLatLng. The format is �latitude,longitude�.
public final void loadXml(java.lang.String xml)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||