0

I'm using the matrix calculation, but it gives me real driving distance. I'm wondering is there another REST api can calculate distance from one origin to multiple distance? I don't need real driving distance, just approximate distance is fine for my app. Thank you!

YZY
  • 47
  • 1
  • 7
  • Just out of curiosity, would you be able to elaborate on your use case? – Persistent Plants Feb 09 '21 at 02:43
  • @PersistentPlants I'm creating a web app that sort out product by the distance between the client and seller. So I'm using this api to get the distance – YZY Feb 09 '21 at 02:44

2 Answers2

1

Here's a formula that helps you calculate distances for latitudes and longitudes, you can use HERE Geocoding API to get lat/long for an address and without making a call, calculate this yourself.

0

There's no API for that, because you can simply calculate the distances by yourself. Just google "distance between two points" to find out the formula.

psxls
  • 6,807
  • 6
  • 30
  • 50
  • I never thought about this, since I started to use the API for providing address autocomplete. – YZY Feb 09 '21 at 02:45