org.springframework.social.twitter.api
Class Place.Geometry

java.lang.Object
  extended by org.springframework.social.twitter.api.Place.Geometry
Enclosing class:
Place

public static class Place.Geometry
extends Object

Represents a place's geometry.


Constructor Summary
Place.Geometry(Place.GeometryType type, List<List<Place.GeoPoint>> coordinates)
           
 
Method Summary
 List<List<Place.GeoPoint>> getCoordinates()
          The coordinates defining a place's geometry.
 Place.GeometryType getType()
          The geometry's type, either POINT, POLYGON, or MULTIPOLYGON.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Place.Geometry

public Place.Geometry(Place.GeometryType type,
                      List<List<Place.GeoPoint>> coordinates)
Method Detail

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.