feat(navigate) bases of idfm integration
This commit is contained in:
10
services/stop_service.php
Normal file
10
services/stop_service.php
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user