API non-officielle permettant de récuperer des données sur les lignes de bus de la ville de Chambéry.
- Installation
- Routes
GET
/v1/bus
GET
/v1/bus/direction?id={bus_id}
GET
/v1/direction
GET
/v1/direction/bus?id={bus_id}
GET
/v1/direction/bus_stop?id={bus_stop_id}
GET
/v1/appleshortcuts/direction/bus?id={bus_id}
GET
/v1/bus_stop
GET
/v1/bus_stop/direciton?id={direction_id}
GET
/v1/appleshortcuts/bus_stop/direction?id={direction_id}
GET
/v1/bus_stop/live/{bus_stop_id}
GET
/v1/bus_stop/search/{query}
git clone https://github.com/leodbrs/synchrobus-api
cd synchrobus-api
docker compose up -d
Retourne la liste des bus
[
"A",
"B",
"C",
"D"
]
Retourne le bus d'une direction
[
"D"
]
Retourne toutes les directions
[
{
"id": 1,
"name": "Plage / technolac / landiers sud / gare"
},
{
"id": 2,
"name": "Universite jacob"
},
{
"id": 4,
"name": "Lorem ipsum dolor sit amet tation lorem."
}
]
Retourne les directions d'un bus
[
{
"id": 1,
"name": "Plage / technolac / landiers sud / gare"
},
{
"id": 2,
"name": "Universite jacob"
}
]
Retourne les directions d'un arrêt de bus
[
{
"id": 1,
"name": "Plage / technolac / landiers sud / gare"
},
{
"id": 2,
"name": "Universite jacob"
}
]
Retourne les directions d'un bus avec un format pour les shortcuts d'Apple
{
"Plage / technolac / landiers sud / gare": 1,
"Universite jacob": 2
}
Retourne tous les arrêts de bus
[
{
"id": "GAMBE1",
"name": "Gambetta"
},
{
"id": "GAMBE2",
"name": "Gambetta"
},
{
"id": "GARE1",
"name": "Gare"
},
{
"id": "GARE2",
"name": "Gare"
}
]
Retourne les arrêts de bus d'une direction
[
{
"id": "INES1",
"name": "INES Sud"
},
{
"id": "INES2",
"name": "INES Sud"
},
{
"id": "INSEC1",
"name": "Technolac"
},
{
"id": "INSEC2",
"name": "Technolac"
}
]
Retourne les arrêts de bus d'une direction avec un format pour les shortcuts d'Apple
{
"Chamoux": "HTCHA1",
"Sources": "SOURC1",
"Laitière": "LAITI1",
"Croix De Bissy": "CRXBI1",
"Bisseraine": "BISSE1",
"Petite Forêt": "PTFOR1",
"Debussy": "DEBUS1",
"Victor Hugo": "VHUGO1",
"Lycée Agricole": "LYAGR1",
"Eglise Cognin": "EGCOG1",
"Forgerie": "FORGE1",
"Cognin Centre": "CECOG1",
"Bosco": "BOSCO1",
"Buet": "BUET1",
"Hôpital Maché": "CHOSP1",
"Château Des Ducs": "CHATE1",
"Halles": "HALLE1",
"Ducs": "DUCS1",
"Clos Savoiroux": "CLSAV2",
"Mérande": "MERAN2",
"Tunnel": "TUNEL2",
"Gonrat": "GONRA2",
"Hôpital Bassens": "HOBAS2",
"Bassens Centre": "CBASS2",
"Boulodrome": "BOULO2",
"Perrot": "PEROT2",
"Marquises": "MARQU2",
"Saint Alban Centre": "CSALB2",
"Perrodière": "PEROD2",
"Barillettes": "BARIL2",
"Plaine Des Sports": "PLASP2"
}
Retourne les horaires en direct d'un arrêt de bus
[
{
"line": "A",
"direction": "Université Jacob",
"time": "20:26",
"remaining": "dans 26 secondes"
},
{
"line": "C",
"direction": "Challes Centre",
"time": "20:35",
"remaining": "dans 7 minutes"
},
{
"line": "A",
"direction": "Université Jacob",
"time": "20:46",
"remaining": "dans 18 minutes"
}
]
Retourne les arrêts de bus correspondant à la recherche
[
{
"id": "UBOUR1",
"name": "Université Le Bourget"
},
{
"id": "UBOUR2",
"name": "Université Le Bourget"
},
{
"id": "UJACO1",
"name": "Université Jacob"
},
{
"id": "UJACO2",
"name": "Université Jacob"
}
]