Package com.graphhopper.util.shapes
Class GHPoint
java.lang.Object
com.graphhopper.util.shapes.GHPoint
- Direct Known Subclasses:
GHPoint3D
- Author:
- Peter Karich
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic GHPoint
create
(org.locationtech.jts.geom.Point point) boolean
static GHPoint
fromJson
(double[] xy) static GHPoint
fromString
(String str) static GHPoint
fromStringLonLat
(String str) double
getLat()
double
getLon()
int
hashCode()
boolean
isValid()
Double[]
Attention: geoJson is LON,LATtoString()
-
Field Details
-
lat
public double lat -
lon
public double lon
-
-
Constructor Details
-
GHPoint
public GHPoint() -
GHPoint
public GHPoint(double lat, double lon)
-
-
Method Details
-
create
-
fromString
-
fromStringLonLat
-
fromJson
-
getLon
public double getLon() -
getLat
public double getLat() -
isValid
public boolean isValid() -
hashCode
public int hashCode() -
equals
-
toString
-
toShortString
-
toGeoJson
Attention: geoJson is LON,LAT
-