Can anybody help me out here.
Im trying to make a page where the user can type in a start location and an end location and on submit I show a map showing the route and the distance.
In my database I have carriers with prices pr. km.
Now I want to show carriers nearby the start or end location and at the same time calculate each carriers Price for the route.
My problem is that I dont know have I can access the distance and use it in the calculation,
Im using Classic asp and access db
I get the distance in the function like this:
document.getElementById("afstand").innerHTML = response.routes[0].legs[0].distance.value;
Isnt there a way so I can save that value like in a global var?