Better position formatting

This commit is contained in:
Evan Prodromou 2011-12-31 10:26:07 -08:00
parent 3117c38044
commit 3d87176ece

View File

@ -393,15 +393,9 @@ class Activity
'deprecated' => true,
);
$lat = $loc->lat + 0.0;
$lon = $loc->lon + 0.0;
$position = (($lat > 0.0) ? ("+".$lat) : $lat) . "." .
(($lon > 0.0) ? ("+".$lon) : $lon) . "/";
$activity['location'] = array(
'objectType' => 'place',
'position' => $position
'position' => sprintf("%+02.5F.%+03.5F/", $loc->lat, $loc->lon);
);
$name = $loc->getName();