Better position formatting
This commit is contained in:
parent
3117c38044
commit
3d87176ece
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user