|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectJavaScriptObject
com.google.maps.gwt.client.LatLng
public class LatLng
LatLng
is a point in geographical coordinates, latitude and longitude.
Notice that although usual map projections associate longitude with the x-coordinate of the map, and latitude with the y-coordinate, the latitude coordinate is always written first, followed by the longitude.
Notice also that you cannot modify the
coordinates of a
LatLng
. If you want to compute another point, you have to create a new one.
THIS SOURCE CODE IS GENERATED, DO NOT MODIFY
Constructor Summary | |
---|---|
protected |
LatLng()
Protected constructor avoids default public constructor. |
Method Summary | |
---|---|
static LatLng |
create(double lat,
double lng)
Notice the ordering of latitude and longitude. |
static LatLng |
create(double lat,
double lng,
boolean noWrap)
Notice the ordering of latitude and longitude. |
boolean |
equals(LatLng other)
Comparison function. |
double |
lat()
Returns the latitude in degrees. |
double |
lng()
Returns the longitude in degrees. |
java.lang.String |
toUrlValue()
Returns a string of the form "lat,lng" for this LatLng. |
java.lang.String |
toUrlValue(double precision)
Returns a string of the form "lat,lng" for this LatLng. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected LatLng()
Method Detail |
---|
public static LatLng create(double lat, double lng, boolean noWrap)
public static LatLng create(double lat, double lng)
public final boolean equals(LatLng other)
public final double lat()
public final double lng()
public final java.lang.String toUrlValue(double precision)
public final java.lang.String toUrlValue()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |