@sdetweil
I do know I think this project is too hard for me lol
I now changed this:
getCommute: function (api_url) {
var self = this;
fetch('https://api.tomtom.com/routing/1/calculateRoute/4x.xxx%2C9.xxx%3A4x.xxx%2C9.xx/json?avoid=unpavedRoads&key=<key>')
.then(console.log('API SUCESS')
.then(json => {
self.duration = Math.round(json.routes[0].duration / 60);
self.errorMessage = self.errorDescription = undefined;
self.loading = false;
self.updateDom();
})
.catch(e => {
self.errorMessage = payload.error.message;
self.errorDescription = payload.error.description;
self.loading = false;
self.updateDom();
});
},
Now the "loading does not even appear I don’t know if that’s good or bad, but I cant even see my (console.log(‘API SUCESS’) in the .txt