public class GeoJsonPoint extends Object implements GeoJson<List<Double>>
GeoJson representation of Point.Point as this conflicts with the already existing converter
for Point in GeoConverters.| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
List<Double> |
getCoordinates()
The value of the coordinates member is always an
Iterable. |
String |
getType()
String value representing the type of the
GeoJson object. |
double |
getX() |
double |
getY() |
int |
hashCode() |
static GeoJsonPoint |
of(double x,
double y)
Creates
GeoJsonPoint for given coordinates. |
static GeoJsonPoint |
of(GeoPoint geoPoint)
Creates
GeoJsonPoint for given GeoPoint. |
static GeoJsonPoint |
of(Point point)
Creates
GeoJsonPoint for given Point. |
String |
toString() |
public static final String TYPE
public static GeoJsonPoint of(double x, double y)
GeoJsonPoint for given coordinates.x - y - public static GeoJsonPoint of(Point point)
GeoJsonPoint for given Point.point - must not be null.public static GeoJsonPoint of(GeoPoint geoPoint)
GeoJsonPoint for given GeoPoint.geoPoint - must not be null.public String getType()
GeoJsonGeoJson object.getType in interface GeoJson<List<Double>>public double getX()
public double getY()
public List<Double> getCoordinates()
GeoJsonIterable. The structure for the elements within is
determined by GeoJson.getType() of geometry.getCoordinates in interface GeoJson<List<Double>>Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.