|
@ -223,7 +223,16 @@ class ToolsController extends AbstractController |
|
|
$nodes = []; |
|
|
$nodes = []; |
|
|
foreach ($city['features'] as $featureIndex => $feature) { |
|
|
foreach ($city['features'] as $featureIndex => $feature) { |
|
|
$properties = $feature->getProperties(); |
|
|
$properties = $feature->getProperties(); |
|
|
$description .= sprintf('* Signalement %s %s'.PHP_EOL, $properties['uuid'], $properties['title']); |
|
|
|
|
|
|
|
|
$geometry = $feature->getGeometry(); |
|
|
|
|
|
$coordinates = $geometry->getCoordinates(); |
|
|
|
|
|
$description .= sprintf( |
|
|
|
|
|
'* Signalement [%s](https://osmose.openstreetmap.fr/fr/map/#issue_uuid=%s&loc=12/%f/%f) %s'.PHP_EOL, |
|
|
|
|
|
$properties['uuid'], |
|
|
|
|
|
$properties['uuid'], |
|
|
|
|
|
(float) $coordinates[1], |
|
|
|
|
|
(float) $coordinates[0], |
|
|
|
|
|
$properties['title'] |
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
if (isset($properties['fixes'])) { |
|
|
if (isset($properties['fixes'])) { |
|
|
$tags = []; |
|
|
$tags = []; |
|
|