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.JSONException
public com.winterwell.jgeoplanet.IPlace getParent()
getParent
in interface com.winterwell.jgeoplanet.IPlace
public java.lang.Class<? extends com.winterwell.jgeoplanet.IGeoCode> getGeoCoder()
com.winterwell.jgeoplanet.IPlace
getGeoCoder
in interface com.winterwell.jgeoplanet.IPlace
public com.winterwell.jgeoplanet.BoundingBox getBoundingBox()
getBoundingBox
in interface com.winterwell.jgeoplanet.IPlace
public java.lang.String getCountryCode()
com.winterwell.jgeoplanet.IPlace
getCountryCode
in interface com.winterwell.jgeoplanet.IPlace
public 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.IPlace
public java.lang.String getType()
getType
in interface com.winterwell.jgeoplanet.IPlace
public java.lang.String toString()
toString
in class java.lang.Object
public com.winterwell.jgeoplanet.Location getCentroid()
getCentroid
in interface com.winterwell.jgeoplanet.IPlace
public java.lang.String getUID()
com.winterwell.jgeoplanet.IPlace
No hard guarantees are made for these properties! Implementations should make best reasonable efforts.
getUID
in interface com.winterwell.jgeoplanet.IPlace