I am creating a php based application so that the client can enter addresses for their clients' buildings. They need the ability to view locations on a map (both individuals and those grouped when searching in the city).
What I'm trying to do is search as soon as the address is entered in the form that fills the database, so after entering the addresses, city, state, zip (these are all locations in the USA) they can click "get lat / long info" / button, which will check that the data has been completed, then it will search for the address and return the latitude / longitude in the corresponding fields of the form. Then the form can be sent to store information, and later I can pull out the lat / long when building the map on the map.
Does this make sense, or would I be better off just doing a search when it's time to build it?
Does anyone have any recommendations on how to solve this problem?
I saw some Google / Yahoo APIs, but it looks like it's more based on building the dotted part. Maybe I can change it according to my needs, but I'm just trying to publish some studies here, hoping that one of you may have a more direct route.
I will be RTM if I need ...
source
share