Geocoding is the act of determining an address' lat/lon. Determining
the address of a lat/lon is reverse geocoding. The point is, you have
everything you need to geocode the address and determine its lat/lon.
If you haven't already, check this out:

http://code.google.com/apis/maps/documentation/geocoding/

In the above doc there's a sample URL showing you how to geocode an
address:

http://maps.googleapis.com/maps/api/geocode/json?address=1600+Amphitheatre+Parkway,+Mountain+View,+CA&sensor=true_or_false

Once you understand this, it's elementary to write a PHP class/script/
function/whatever to perform the geocoding and store the coordinates.
If you're not sure where to start, consider using curl to make the URL
request. Depending upon the chosen response format, you'll need to use
either json_decode or simplexml_load_string. After that you have an
object that can be easily manipulated.

Jason

On Oct 5, 11:04 pm, whitsey <[email protected]> wrote:
> I am looking at implementing the code located 
> athttp://code.google.com/apis/maps/articles/phpsqlgeocode.htmlinto my
> web based application.
>
> The problem I have is that I do not have the long & lat coordinates,
> only addresses.
>
> Can someone point me in the right direction to:
>
> a) bulk update a csv using addresses and retuning the long and lat
> values of each one that I can then re-import?
> b) develop or reuse a script to pass an address and return long & lat
> for new additions to the database.
>
> Thanks in advance.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API V2" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-api?hl=en.

Reply via email to