public class GeoJsonLineString extends Object implements GeoJson<Iterable<org.springframework.data.geo.Point>>
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
List<org.springframework.data.geo.Point> |
getCoordinates()
The value of the coordinates member is always an
Iterable. |
String |
getType()
String value representing the type of the
GeoJson object. |
int |
hashCode() |
static GeoJsonLineString |
of(GeoPoint first,
GeoPoint second,
GeoPoint... others)
Creates a new
GeoJsonLineString for the given GeoPoints. |
static GeoJsonLineString |
of(List<org.springframework.data.geo.Point> points)
Creates a new
GeoJsonLineString for the given Points. |
static GeoJsonLineString |
of(org.springframework.data.geo.Point first,
org.springframework.data.geo.Point second,
org.springframework.data.geo.Point... others)
Creates a new
GeoJsonLineString for the given Points. |
static GeoJsonLineString |
ofGeoPoints(List<GeoPoint> geoPoints)
Creates a new
GeoJsonLineString for the given GeoPoints. |
String |
toString() |
public static final String TYPE
public static GeoJsonLineString of(List<org.springframework.data.geo.Point> points)
GeoJsonLineString for the given Points.points - points must not be null and have at least 2 entries.public static GeoJsonLineString of(org.springframework.data.geo.Point first, org.springframework.data.geo.Point second, org.springframework.data.geo.Point... others)
GeoJsonLineString for the given Points.first - must not be null.second - must not be null.others - must not be null.public static GeoJsonLineString ofGeoPoints(List<GeoPoint> geoPoints)
GeoJsonLineString for the given GeoPoints.geoPoints - geoPoints must not be null and have at least 2 entries.public static GeoJsonLineString of(GeoPoint first, GeoPoint second, GeoPoint... others)
GeoJsonLineString for the given GeoPoints.first - must not be null.second - must not be null.others - must not be null.public String getType()
GeoJsonGeoJson object.getType in interface GeoJson<Iterable<org.springframework.data.geo.Point>>public List<org.springframework.data.geo.Point> getCoordinates()
GeoJsonIterable. The structure for the elements within is
determined by GeoJson.getType() of geometry.getCoordinates in interface GeoJson<Iterable<org.springframework.data.geo.Point>>Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.