public function geoPlace($name, $containedWithin, $token, $lat, $long, array $attributes = null)
{
// build parameters
$parameters['name'] = (string) $name;
$parameters['contained_within'] = (string) $containedWithin;
$parameters['token'] = (string) $token;
$parameters['lat'] = (double) $lat;
$parameters['long'] = (double) $long;
if ($attributes != null) {
foreach ($attributes as $key => $value) {
$parameters['attribute:' . $key] = (string) $value;
}
}
// make the call
return $this->doCall('geo/create.json', $parameters, true, 'POST');
}