Package org.neshan.common.model
Class LatLng
- java.lang.Object
-
- org.neshan.common.model.LatLng
-
public class LatLng extends java.lang.Object
A 2D map position in EPSG:4326 ( or WGS 84 ) projection.
-
-
Constructor Summary
Constructors Constructor Description LatLng(double latitude, double longitude)
Creates a new position based on a latitude and longitude.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getLatitude()
In geography, latitude is a geographic coordinate that specifies the north–south position of a point on the Earth's surface.double
getLongitude()
Longitude, is a geographic coordinate that specifies the east–west position of a point on the Earth's surfacevoid
setLatitude(double latitude)
void
setLongitude(double longitude)
-
-
-
Method Detail
-
getLatitude
public double getLatitude()
In geography, latitude is a geographic coordinate that specifies the north–south position of a point on the Earth's surface.
-
setLatitude
public void setLatitude(double latitude)
-
getLongitude
public double getLongitude()
Longitude, is a geographic coordinate that specifies the east–west position of a point on the Earth's surface
-
setLongitude
public void setLongitude(double longitude)
-
-