org.springframework.social.twitter.api
Class Place.Geometry
java.lang.Object
org.springframework.social.twitter.api.Place.Geometry
- Enclosing class:
- Place
public static class Place.Geometry
- extends Object
Represents a place's geometry.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Place.Geometry
public Place.Geometry(Place.GeometryType type,
List<List<Place.GeoPoint>> coordinates)
getType
public Place.GeometryType getType()
- The geometry's type, either POINT, POLYGON, or MULTIPOLYGON.
getCoordinates
public List<List<Place.GeoPoint>> getCoordinates()
- The coordinates defining a place's geometry.
If type is POINT, then it is a List containing a single List containing a single point.
If type is POLYGON, then it is a List containing a List of points that define the polygon.
If type is MULTIPOLYGON, then it is a List of polygon-defining Lists.