Jump to content

street address calculation


ainoy31

Recommended Posts

If you have a database that maps street addresses to long/lat coordinates it's fairly straight forward to calculate reasonably accurate distances as-the-crow-flys. Driving distance, I'm sure is very complicated - Not sure where it lies in their T&Cs but it might be possible to scrape Google Maps...

Link to comment
Share on other sites

It would be nearly impossible to getting driving distance yourself.  You can't humanly possibly map out roads, and everything else yourself.  Google had literally THOUSANDS of people collecting data from around the world.  Collected street names, length's of street's, length's from street to street.  They did freeform calculations from one area to another to base other's off of.  That's not a solo 1 man project.

What you CAN do is make your "php script" visit www.mapquest.com or google maps, put in the 2 addresses, get the information and return it to your site without the use  knowing.

Maybe able to do it without it, but if you have problems, use curl.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.