public class GeoJsonMultiPoint extends Object implements GeoJson<Iterable<org.springframework.data.geo.Point>>
GeoJsonMultiPoint
is defined as list of Point
s.Constructor and Description |
---|
GeoJsonMultiPoint(List<org.springframework.data.geo.Point> points)
Creates a new
GeoJsonMultiPoint for the given Point s. |
GeoJsonMultiPoint(org.springframework.data.geo.Point point)
Creates a new
GeoJsonMultiPoint for the given Point . |
GeoJsonMultiPoint(org.springframework.data.geo.Point first,
org.springframework.data.geo.Point second,
org.springframework.data.geo.Point... others)
Creates a new
GeoJsonMultiPoint for the given Point s. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
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() |
public GeoJsonMultiPoint(org.springframework.data.geo.Point point)
GeoJsonMultiPoint
for the given Point
.point
- must not be null.public GeoJsonMultiPoint(List<org.springframework.data.geo.Point> points)
GeoJsonMultiPoint
for the given Point
s.points
- points must not be null and not emptypublic GeoJsonMultiPoint(org.springframework.data.geo.Point first, org.springframework.data.geo.Point second, org.springframework.data.geo.Point... others)
GeoJsonMultiPoint
for the given Point
s.first
- must not be null.second
- must not be null.others
- must not be null.public String getType()
GeoJson
GeoJson
object.getType
in interface GeoJson<Iterable<org.springframework.data.geo.Point>>
public List<org.springframework.data.geo.Point> getCoordinates()
GeoJson
Iterable
. 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.