twitter4j.api
Interface GeoMethodsAsync

All Known Implementing Classes:
AsyncTwitter

public interface GeoMethodsAsync

Since:
Twitter4J 2.1.1
Author:
Yusuke Yamamoto - yusuke at mac.com

Method Summary
 void getGeoDetails(java.lang.String id)
          Find out more details of a place that was returned from the geo/reverse_geocode method.
 void getNearbyPlaces(GeoQuery query)
          Search for places (cities and neighborhoods) that can be attached to a statuses/update.
 void reverseGeoCode(GeoQuery query)
          Search for places (cities and neighborhoods) that can be attached to a statuses/update.
 

Method Detail

getNearbyPlaces

void getNearbyPlaces(GeoQuery query)
Search for places (cities and neighborhoods) that can be attached to a statuses/update. Given a latitude and a longitude pair, or an IP address, return a list of all the valid cities and neighborhoods that can be used as a place_id when updating a status. Conceptually, a query can be made from the user's location, retrieve a list of places, have the user validate the location he or she is at, and then send the ID of this location up with a call to statuses/update.
This method calls http://api.twitter.com/1/geo/nearby_places.json

Parameters:
query - search query
Since:
Twitter4J 2.1.1
See Also:
Twitter API Wiki / Twitter REST API Method: GET geo nearby_places

reverseGeoCode

void reverseGeoCode(GeoQuery query)
Search for places (cities and neighborhoods) that can be attached to a statuses/update. Given a latitude and a longitude, return a list of all the valid places that can be used as a place_id when updating a status. Conceptually, a query can be made from the user's location, retrieve a list of places, have the user validate the location he or she is at, and then send the ID of this location up with a call to statuses/update.
This method calls http://api.twitter.com/1/geo/reverse_geocode.json

Parameters:
query - search query
Since:
Twitter4J 2.1.1
See Also:
Twitter API Wiki / Twitter REST API Method: GET geo reverse_geocode

getGeoDetails

void getGeoDetails(java.lang.String id)
Find out more details of a place that was returned from the geo/reverse_geocode method.
This method calls http://api.twitter.com/1/geo/id/:id.json

Parameters:
id - The ID of the location to query about.
Since:
Twitter4J 2.1.1
See Also: