JTwitterPlaces::search
Method to search for places that can be attached to a statuses/update.
Signature
public function search([float
$lat = null,
[float
$long = null,
[string
$query = null,
[string
$ip = null,
[string
$granularity = null,
[string
$accuracy = null,
[integer
$max_results = 0,
[string
$within = null,
[string
$attribute = null,
[string
$callback = null]]]]]]]]]] )
Parameters
-
$lat
- The latitude to search around.
-
$long
- The longitude to search around.
-
$query
- Free-form text to match against while executing a geo-based query, best suited for finding nearby
-
$ip
- An IP address.
-
$granularity
- This is the minimal granularity of place types to return and must be one of: poi, neighborhood, city,
-
$accuracy
- A hint on the "region" in which to search. If a number, then this is a radius in meters, but it can
-
$max_results
- A hint as to the number of results to return.
-
$within
- This is the place_id which you would like to restrict the search results to.
-
$attribute
- This parameter searches for places which have this given street address.
-
$callback
- If supplied, the response will use the JSONP format with a callback of the given name.
Returns
- array
- The decoded JSON response
Errors/Exceptions
-
RuntimeException