8

Are there any good Webservices apart from Google one which can find me the distance between two Zip Codes?

I have

http://maps.googleapis.com/maps/api/distancematrix/json?origins=95050&destinations=94087&mode=bicycling&sensor=false

which is Google API. Are there any other API's that I can take a look? If yes, can anyone provide me the link for the same?

Matt
  • 22,721
  • 17
  • 71
  • 112
  • you could rerfer to this : http://stackoverflow.com/questions/7426710/how-to-find-the-distance-between-two-zipcodes-using-java-code – Sabilv Jun 18 '13 at 04:16
  • in that post, mostly it talk about using Java code. –  Jun 18 '13 at 04:23
  • You can use https://thezipcodes.com/ to get location from ZIP Code and calculate distance. To integrate with your service follow http://thezipcodes.com/docs – nkkumawat Jan 08 '21 at 06:56

1 Answers1

4

There is a very simple API that will calculate distance between two zip codes. There are also options for zipcodes within a radius and finding the lat/long and city/state. http://zipcodedistanceapi.redline13.com/

Bob Bickel
  • 349
  • 2
  • 3
  • It's not giving the correct result as it differs from that of google map. I tested it for the following zip codes: _Origin = 76180 Destination = 75029_ This API gives **19.829** miles while google map shows **25.8** miles. – Musaddiq Khan Aug 29 '16 at 10:49
  • 2
    This API gives end to end distance between the two zip codes, not a travelling distance. That's why, the google map shows different distance. – Popeye Jul 27 '17 at 02:18
  • 1
    The best API so far is google map API https://developers.google.com/maps/documentation/distance-matrix/ – Popeye Jul 28 '17 at 00:13