|
Follow us on GitHub |
|||||||||
| 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.google.gwt.maps.client.base.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.
See LatLng API Doc
| Constructor Summary | |
|---|---|
protected |
LatLng()
LatLng is a point in geographical coordinates, latitude and longitude. |
| Method Summary | |
|---|---|
boolean |
equals(LatLng other)
is equal? |
double |
getLatitude()
get latitude |
double |
getLongitude()
Returns the longitude in degrees. |
String |
getToString()
Converts to string representation. |
String |
getToUrlValue(int precision)
Returns a string of the form "lat,lng" for this LatLng. |
static LatLng |
newInstance(double lat,
double lng)
Notice the ordering of latitude and longitude. |
static LatLng |
newInstance(double lat,
double lng,
boolean noWrap)
Notice the ordering of latitude and longitude. |
| Methods inherited from class com.google.gwt.core.client.JavaScriptObject |
|---|
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected LatLng()
| Method Detail |
|---|
public static LatLng newInstance(double lat,
double lng)
lat - lng -
public static LatLng newInstance(double lat,
double lng,
boolean noWrap)
lat - lng - noWrap - public final boolean equals(LatLng other)
other - public final double getLatitude()
public final double getLongitude()
public final String getToString()
public final String getToUrlValue(int precision)
precision -
|
Follow us on GitHub |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||