public class LatLng
extends com.mapzen.tangram.LngLat
implements java.io.Serializable
Constructor and Description |
---|
LatLng(double lat,
double lng)
Instantiates a new Lng lat.
|
LatLng(android.location.Location location)
Instantiates a new Lng lat.
|
LatLng(java.lang.String lat,
java.lang.String lng)
Instantiates a new Lng lat.
|
Modifier and Type | Method and Description |
---|---|
double |
getLat()
Gets lat.
|
double |
getLng()
Gets lng.
|
java.lang.String |
toString() |
public LatLng(double lat, double lng)
lat
- the latitudelng
- the longitudepublic LatLng(@NonNull java.lang.String lat, @NonNull java.lang.String lng)
lat
- the latitudelng
- the longitudepublic LatLng(@NonNull android.location.Location location)
location
- the location