@Remoteable(path="https://api.twitter.com/1.1/geo")
public interface Geo
| Modifier and Type | Method and Description |
|---|---|
Place |
geoid(String place_id)
Returns all the information about a known place.
|
GeoSearchResponse |
geosearch(GeoSearchRequest parameters)
Search for places that can be attached to a statuses/update.
|
GeoSearchResponse |
reverseGeocode(GeoSearchRequest parameters)
Given a latitude and a longitude, searches for up to 20 places that can be used as a place_id when updating a status.
|
@RemoteMethod(httpMethod="GET",
path="/id/{place_id}.json")
Place geoid(@Query(value="place_id")
String place_id)
place_id - A place in the world. These IDs can be retrieved from geo/reverse_geocode.Place@RemoteMethod(httpMethod="GET",
path="/search.json")
GeoSearchResponse geosearch(@QueryIfNE(value="*")
GeoSearchRequest parameters)
parameters - A place in the world. These IDs can be retrieved from geo/reverse_geocode.GeoSearchResponse@RemoteMethod(httpMethod="GET",
path="/reverse_geocode.json")
GeoSearchResponse reverseGeocode(@QueryIfNE(value="*")
GeoSearchRequest parameters)
parameters - A place in the world. These IDs can be retrieved from geo/reverse_geocode.GeoSearchResponseCopyright © 2018 The Apache Software Foundation. All rights reserved.