Browse Source

Ajoute un lien vers Osmose sur les signalements

master
vincent 1 day ago
parent
commit
10abea6318
1 changed files with 10 additions and 1 deletions
  1. +10
    -1
      src/Controller/ToolsController.php

+ 10
- 1
src/Controller/ToolsController.php View File

@ -223,7 +223,16 @@ class ToolsController extends AbstractController
$nodes = [];
foreach ($city['features'] as $featureIndex => $feature) {
$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'])) {
$tags = [];


Loading…
Cancel
Save