1
0
mirror of synced 2026-02-11 10:48:43 +00:00

feat(navigate) bases of idfm integration

This commit is contained in:
Valentin
2024-06-04 21:50:20 +02:00
parent eb073e8e99
commit 2e8270291f
8 changed files with 81 additions and 2 deletions

10
services/stop_service.php Normal file
View File

@@ -0,0 +1,10 @@
<?php
function getStops($line) {
$json = file_get_contents("../data/stops.json");
$data = json_decode($json, true);
$result = array_filter($data, function($item) use ($line) {
return $item['fields']['mode'] === 'METRO' && $item['fields']['indice_lig'] === "$line";
});
return $result;
}