git.gnu.io has moved to IP address 209.51.188.249 -- please double check where you are logging in.

Commit 3d87176e authored by Evan Prodromou's avatar Evan Prodromou

Better position formatting

parent 3117c380
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment