0

We are trying find the optimum route for given sets of addresses. Here optimum route meanibg going every address using shortest distance, We are using Traveling salesman approach to solve this, the problem is to work this algorithm perfectly we need distance between every pair of addresses. we can get the distance matrix using Google distance matrix/mapbox/distancematrix.ai/nextbillion.ai or any other 3rd party services. But these services are expensive.Suppose if we work with 100 addresses,then our distance matrix shape would be 100*100, so getting these 10000 pair of distance would cost us around 20$ (for google it would cost 50$ !!!!).

How can we solve this problem using most cost effective way?

Aninda
  • 97
  • 5
  • 14

1 Answers1

0

You can use the TravelTime API to do this free, as long as you spread out your requests over a few minutes. The free plan includes 10 credits per minute and 1,000 credits per month. A credit includes travel times from 1 origin to 2,000 destinations (or vice versa) so you'd need only 100 credits to do a 100x100 matrix. If you sent the requests over 10 minutes you would be able to do this all for free.

TravelTime Pricing: https://traveltime.com/pricing

TravelTime API sign up: https://docs.traveltime.com/api/overview/getting-keys

Disclaimer: I work for TravelTime.