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 GHPointcreate(org.locationtech.jts.geom.Point point) booleanstatic GHPointfromJson(double[] xy) static GHPointfromString(String str) static GHPointfromStringLonLat(String str) doublegetLat()doublegetLon()inthashCode()booleanisValid()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
-