fix api to wheelchair

This commit is contained in:
NekoVari 2023-11-29 18:53:26 +07:00
parent d75174d064
commit d006c75872

View file

@ -336,7 +336,7 @@ export default {
const startCoord = '100.53860,13.76410'; //(lon,lat) test data const startCoord = '100.53860,13.76410'; //(lon,lat) test data
const endCoord = '100.53928,13.76526';//(lon,lat) test data const endCoord = '100.53928,13.76526';//(lon,lat) test data
axios.get(`https://api.openrouteservice.org/v2/directions/driving-car?api_key=${apiKey}&start=${startCoord}&end=${endCoord}`) axios.get(`https://api.openrouteservice.org/v2/directions/wheelchair?api_key=${apiKey}&start=${startCoord}&end=${endCoord}`)
.then(response => { .then(response => {
const route = response.data.features[0].geometry.coordinates; const route = response.data.features[0].geometry.coordinates;
console.log('This is route :',route) console.log('This is route :',route)