We are basically looking to find a database of road distances between all possible cities in the US, or maybe you can advise something we could do to calculate it ourselves.

  • Hello @Artem! What have you and your team done towards looking for this database?
    – albert
    Sep 16, 2020 at 20:35
  • @albert we have a database of all US cities and currently looking at OSRM maybe it will help us. Sep 16, 2020 at 21:36

2 Answers 2


I hope this might help you out. Just send an HTTP request on this link, you'll get the city. You can also do it programmatically and scrap the result using a library like beautifulsoup(Python) or X-Ray(Node.JS).

Just remember to replace the from and to parameters in the url, with your respective cities.


You get the data at real-time. If you want in bulk, consider running a program and storing it for yourself for later use.


The only available solution we found which suits our needs and can generate big amounts of distances with the distance matrix is using OSRM (Open Source Routing Machine) which we can host on our own.

There is another service that can be hosted OpenRouteService which built on top of GraphHopper and allows to generate distance matrix too but it way less in size than OSRM.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.