public class GeoJsonPoint extends Point implements GeoJson<List<Double>>
| Constructor and Description |
|---|
GeoJsonPoint(double x,
double y)
Creates
GeoJsonPoint for given coordinates. |
GeoJsonPoint(Point point)
Creates
GeoJsonPoint for given Point. |
| Modifier and Type | Method and Description |
|---|---|
List<Double> |
getCoordinates()
The value of the coordinates member is always an
Iterable. |
String |
getType()
String value representing the type of the
GeoJson object. |
public GeoJsonPoint(double x,
double y)
GeoJsonPoint for given coordinates.x - y - public GeoJsonPoint(Point point)
GeoJsonPoint for given Point.point - must not be null.public String getType()
GeoJsonGeoJson object.getType in interface GeoJson<List<Double>>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–2018 Pivotal Software, Inc.. All rights reserved.