Twitter::geoSimilarPlaces
Locates places near the given coordinates which are similar in name.
Conceptually you would use this method to get a list of known places to choose from first. Then, if the desired place doesn't exist, make a request to POST geo/place to create a new one. The token contained in the response is the token needed to be able to create a new place.
Signature
public function geoSimilarPlaces(float
$lat,
float
$long,
string
$name,
[string[optional]
$containedWithin = NULL,
[array
$attributes = NULL]] )
Parameters
$lat
— float- The latitude to search around. This parameter will be ignored unless it is inside the range -90.0 to +90.0 (North is positive) inclusive. It will also be ignored if there isn't a corresponding long parameter.
$long
— float- The longitude to search around. The valid ranges for longitude is -180.0 to +180.0 (East is positive) inclusive. This parameter will be ignored if outside that range, if it is not a number, if geo_enabled is disabled, or if there not a corresponding lat parameter.
$name
— string- The name a place is known as.
$containedWithin
— object- This is the place_id which you would like to restrict the search results to. Setting this value means only places within the given place_id will be found. Specify a place_id. For example, to scope all results to places within "San Francisco, CA USA", you would specify a place_id of "5a110d312052166f"
$attributes
— array- This parameter searches for places which have this given street address. There are other well-known, and application specific attributes available. Custom attributes are also permitted.
Returns
- array