Return latitude/longitude based on entered address

Posted by Don on Stack Overflow See other posts from Stack Overflow or by Don
Published on 2010-05-18T16:22:11Z Indexed on 2010/05/18 16:31 UTC
Read the original article Hit count: 269

Filed under:
|
|

I'm building a php based application for a client to enter in addresses for their customers' buildings. They'd like the ability to view the location on a map (either as individuals or grouped in a city search).

What I'm trying to accomplish is a lookup once the address is entered into a form that populates the database, so after they enter in the addresss, city, state, zip (these are all US locations) they could click a "get lat/long info" link/button that would check to make sure the data is complete, then would lookup the address and return the latitude/longitude into the appropriate form fields. Then the form could be submitted to store the info, and I could later just pull the lat/long when plotting on a map.

1) Does this make sense, or would I be better off just doing the lookup when it's time to plot it?

2) Does anyone have any pointers to solve this problem?

I've seen some of the Google/Yahoo API's but it looks like this is more based on the plotting a point part. I may be able to modify it to suit my needs, but I'm just trying to cut some research time posting here with the hopes one of you may have a more direct route.

I'll RTFM if I have to...

Thanks, D.

© Stack Overflow or respective owner

Related posts about php

Related posts about mapping