public class Place
extends java.lang.Object
implements com.winterwell.jgeoplanet.IPlace, java.io.Serializable
| Constructor and Description |
|---|
Place(com.winterwell.json.JSONObject _place,
com.winterwell.jgeoplanet.IGeoCode geocoder) |
| Modifier and Type | Method and Description |
|---|---|
com.winterwell.jgeoplanet.BoundingBox |
getBoundingBox() |
com.winterwell.jgeoplanet.Location |
getCentroid() |
java.lang.String |
getCountryCode()
ISO3166 2 letter code
|
java.lang.String |
getCountryName() |
java.lang.Class<? extends com.winterwell.jgeoplanet.IGeoCode> |
getGeoCoder()
Where did this come from? For debugging odd places.
|
java.util.List<com.winterwell.jgeoplanet.Location> |
getGeometry() |
java.lang.String |
getId()
Twitter ID for this place.
|
java.lang.String |
getInfoUrl()
Call this to get a JSON object with a lot of details.
|
java.lang.String |
getName() |
com.winterwell.jgeoplanet.IPlace |
getParent() |
java.lang.String |
getType() |
java.lang.String |
getUID()
An id which should be unique across services & stable
across time & servers
(i.e.
|
java.lang.String |
toString() |
public Place(com.winterwell.json.JSONObject _place,
com.winterwell.jgeoplanet.IGeoCode geocoder)
throws com.winterwell.json.JSONException
com.winterwell.json.JSONExceptionpublic com.winterwell.jgeoplanet.IPlace getParent()
getParent in interface com.winterwell.jgeoplanet.IPlacepublic java.lang.Class<? extends com.winterwell.jgeoplanet.IGeoCode> getGeoCoder()
com.winterwell.jgeoplanet.IPlacegetGeoCoder in interface com.winterwell.jgeoplanet.IPlacepublic com.winterwell.jgeoplanet.BoundingBox getBoundingBox()
getBoundingBox in interface com.winterwell.jgeoplanet.IPlacepublic java.lang.String getCountryCode()
com.winterwell.jgeoplanet.IPlacegetCountryCode in interface com.winterwell.jgeoplanet.IPlacepublic java.lang.String getCountryName()
public java.util.List<com.winterwell.jgeoplanet.Location> getGeometry()
public java.lang.String getId()
public java.lang.String getInfoUrl()
public java.lang.String getName()
getName in interface com.winterwell.jgeoplanet.IPlacepublic java.lang.String getType()
getType in interface com.winterwell.jgeoplanet.IPlacepublic java.lang.String toString()
toString in class java.lang.Objectpublic com.winterwell.jgeoplanet.Location getCentroid()
getCentroid in interface com.winterwell.jgeoplanet.IPlacepublic java.lang.String getUID()
com.winterwell.jgeoplanet.IPlaceNo hard guarantees are made for these properties! Implementations should make best reasonable efforts.
getUID in interface com.winterwell.jgeoplanet.IPlace