fix velov

This commit is contained in:
Gabriel Augendre 2024-09-10 23:28:55 +02:00
parent be365c87e6
commit 846956dff5

View file

@ -94,8 +94,8 @@ class App extends React.Component<{}, IAppState> {
method: "GET", method: "GET",
headers: headers headers: headers
}); });
const velovInfoPromise = http<IStationsInfoWrapper>("https://transport.data.gouv.fr/gbfs/lyon/station_information.json", {method: "GET"}); const velovInfoPromise = http<IStationsInfoWrapper>("https://download.data.grandlyon.com/files/rdata/jcd_jcdecaux.jcdvelov/station_information.json", {method: "GET"});
const velovStatusPromise = http<IStationsStatusWrapper>("https://transport.data.gouv.fr/gbfs/lyon/station_status.json", {method: "GET"}); const velovStatusPromise = http<IStationsStatusWrapper>("https://download.data.grandlyon.com/files/rdata/jcd_jcdecaux.jcdvelov/station_status.json", {method: "GET"});
Promise.all([tclPromise, velovInfoPromise, velovStatusPromise]).then(values => { Promise.all([tclPromise, velovInfoPromise, velovStatusPromise]).then(values => {
let tcl = values[0]; let tcl = values[0];
let velovInfo = values[1]; let velovInfo = values[1];