Link to home
Start Free TrialLog in
Avatar of MrComputrMan
MrComputrManFlag for United States of America

asked on

Retrieve driving distance from one zip code to another using Google Maps API

I would like some examples of javascript I might use to interface with Google Maps API so that I can get the driving distance from one address code to another.
Avatar of MrComputrMan
MrComputrMan
Flag of United States of America image

ASKER

Is there nothing simple out there that I can use?  The searching that I found just didn't yeild any code snipets.  It doesn't have to be the google API either.  It could be any of the free stuff that's out there.
ASKER CERTIFIED SOLUTION
Avatar of Ray Paseur
Ray Paseur
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
On my iPhone, so I'll keep it breif.

I do have a solution that gives the "as the crow flies" distance, and unfortunately my particular need will not tolerate the inaccuracy, though I know nothing out there is perfect.  I think your right in saying that the latest apis should have somthing that will do this with a degree of ease.  Thank you for yor post. :). It's good to know that I am not the only one that is having trouble finding a good soltion for driving distance.  I thought I was loosing my edge.

Still hopeful!!! Is there anyone out there that has a code snippet yeilding driving distance via JavaScript for the google, bing, or mapquest APIs?
You might want to ask a moderator to put this into the JavaScript Zone.  Also, don't forget the Yahoo APIs

Best of luck and best regards, ~Ray
You're right.  I must have clicked the wrong zone when I set this up.  

I did find the solution though.  

http://briancray.com/2009/06/23/calculate-driving-distance-google-maps-api/
Very cool!  I did not test those solutions yet, but I'm glad you're on the right track, ~Ray