JTwitterPlaces::getGeocode
Method to get up to 20 places that can be used as a place_id when updating a status.
Signature
public function getGeocode(float
$lat,
[float
$long = null,
[string
$accuracy = null,
[string
$granularity = null,
[integer
$max_results = 0,
[string
$callback = null]]]]] )
Parameters
-
$lat
- The latitude to search around.
-
$long
- The longitude to search around.
-
$accuracy
- A hint on the "region" in which to search. If a number, then this is a radius in meters,
-
$granularity
- This is the minimal granularity of place types to return and must be one of: poi, neighborhood,
-
$max_results
- A hint as to the number of results to return.
-
$callback
- If supplied, the response will use the JSONP format with a callback of the given name.
Returns
- array
- The decoded JSON response