Creates a new place at the given latitude and longitude.
Signature
public function geoPlace(string
$name,
string
$containedWithin,
string
$token,
float
$lat,
float
$long,
[array
$attributes = NULL] )
Parameters
$name
—
string
The name a place is known as.
$containedWithin
—
string
The place_id within which the new place can be found. Try and be as close as possible with the containing place. For example, for a room in a building, set the contained_within as the building place_id.
$token
—
string
The token found in the response from geo/similar_places.
$lat
—
float
The latitude the place is located at. 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 the place is located at. 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.
$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. This should be an key-value-pair-array.