Class LatLong
java.lang.Object
org.hansken.plugin.extraction.api.LatLong
A geographical location consisting of a latitude and a longitude.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
LatLong
protected LatLong(double latitude, double longitude)
-
-
Method Details
-
of
Create a new geographical point with givenlatitude
andlongitude
.Note: this does not do any input validation. Valid values should be between -90 and +90 inclusive for latitude and between -180 and +180 inclusive for longitude.
- Parameters:
latitude
- the latitudelongitude
- the longitude- Returns:
- the new point
-
latitude
public double latitude()The north-south position of a point on earth.- Returns:
- the latitude
-
longitude
public double longitude()The east-west position of a point on earth.- Returns:
- the longitude
-
toISO6709
Format toString
using ISO 6709. The output is in 5 decimals. The decimal degree precision is 1.1132m at the equator- Returns:
- notation according to ISO 6709
-
equals
-
hashCode
public int hashCode() -
toString
-