Updated mapbox api url

This commit is contained in:
2021-09-06 16:10:02 +02:00
parent a327c7a40f
commit a8756bee8b
2 changed files with 2 additions and 2 deletions

2
dist/js/field.js vendored

File diff suppressed because one or more lines are too long

View File

@@ -38,7 +38,7 @@ export default {
queryNavigation(markers) {
const cords =
"6.985908836799895,61.28541170467011;7.092996407603286,61.23027059410228;10.761970380502788,59.927108594277456";
const URL = `https://api.mapbox.com/directions/v5/mapbox/driving/${cords}/geometries=geojson&access_token=pk.eyJ1Ijoia2V2aW5taWRib2UiLCJhIjoiY2pydWhlamQyMHJ2NTRhdGN1em5ndXVyMyJ9.Ejdo_3iuuGOD662Bh6es4w`;
const URL = `https://api.mapbox.com/directions/v5/mapbox/driving/${cords}?geometries=geojson&access_token=pk.eyJ1Ijoia2V2aW5taWRib2UiLCJhIjoiY2pydWhlamQyMHJ2NTRhdGN1em5ndXVyMyJ9.Ejdo_3iuuGOD662Bh6es4w`;
fetch(URL)
.then((resp) => resp.json())
.then((response) => {