|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.gwt.core.client.JavaScriptObject
com.mapitz.gwt.googleMaps.client.GLatLng
public class GLatLng
GLatLng is a point in geographical coordinates longitude and latitude.
Notice that although usual map projections associate longitude with the x-coordinate of the map, and latitude with the y-coordinate, the latitude cooridnate is always written first, followed by the longitude, as it is custom in cartography.
Notice also that you cannot modify the coordinates of a GLatLng. If you want to compute another point, you have to create a new one.
| Method Summary | |
|---|---|
static GLatLng |
create(double lat,
double lng)
Notice the ordering of latitude and longitude. |
static GLatLng |
create(double lat,
double lng,
boolean unbounded)
Notice the ordering of latitude and longitude. |
double |
distanceFrom(GLatLng other)
Returns the distance, in meters, from this point to the given point. |
boolean |
equals(GLatLng other)
Returns true if the other size has equal components, within certain roundoff margins. |
double |
lat()
Returns the latitude coordinate in degrees, as a number between -90 and +90. |
double |
latRadians()
Returns the latitude coordinate in radians, as a number between -PI/2 and +PI/2. |
double |
lng()
Returns the longitude coordinate in degrees, as a number between -180 and +180. |
double |
lngRadians()
Returns the longitude coordinate in radians, as a number between -PI and +PI. |
java.lang.String |
toUrlValue()
Returns a string that represents this point that is suitable for use as a URL paramater value. |
| Methods inherited from class com.google.gwt.core.client.JavaScriptObject |
|---|
equals, hashCode, toString |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static GLatLng create(double lat,
double lng)
public static GLatLng create(double lat,
double lng,
boolean unbounded)
public double lat()
public double lng()
public double latRadians()
public double lngRadians()
public double distanceFrom(GLatLng other)
public boolean equals(GLatLng other)
public java.lang.String toUrlValue()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||