I want to creat a simulator giving a price, based on distance between origin and destination adress. The distance functionnality, implemented in glideapp isn’t accurate. sometimes, it’s more than 100km, or 8000km around.
I tried to implement the google maps API, unsuccessfuly. Here maps api too.
I tried openroute services, but still the same thing… can someone help me?
Mapbox isn’t the greatest at geocoding addresses, but it helps to make sure the address is complete and clearly formed.
But to guarantee accuracy, the distance column works better if you give it coordinates instead of an address. So if you are looking to implement an API, I would look for something that just returns coordinates, and then use those coordinates as the address in your distance column.
I tried it, now, it’s more accurate, but still more than 50 km arround the real driving distance given by google maps or gere maps… that’s why i want to use another maps api, if it’s possible…
If not, I have another solution using a script deployed as a web application: work as an API, you send parameter such as origin, destination and mode of travel (driving, walking, etc) and the script replies with the distance in 3-4 secs. It’s very fast and no API key is needed.