YZY
YZY

Reputation: 57

How to get distance from one origin to multiple destination (Direct distance) with HERE MAP REST API

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!

Upvotes: 0

Views: 430

Answers (2)

psxls
psxls

Reputation: 6935

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.

Upvotes: 0

Persistent Plants
Persistent Plants

Reputation: 829

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.

Upvotes: 1

Related Questions