public class LatLng extends JavaScriptObject
Modifier | Constructor and Description |
---|---|
protected |
LatLng()
LatLng is a point in geographical coordinates, latitude and longitude.
|
Modifier and Type | Method and Description |
---|---|
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.
|
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString
protected LatLng()
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
- Copyright © 2011-2013 Gone Vertical LLC. All Rights Reserved.