mirror of
https://gitlab.com/little-lines/frontend.git
synced 2024-11-24 22:06:53 +00:00
fix api to wheelchair
This commit is contained in:
parent
d75174d064
commit
d006c75872
1 changed files with 1 additions and 1 deletions
|
@ -336,7 +336,7 @@ export default {
|
|||
const startCoord = '100.53860,13.76410'; //(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 => {
|
||||
const route = response.data.features[0].geometry.coordinates;
|
||||
console.log('This is route :',route)
|
||||
|
|
Loading…
Reference in a new issue