On Aug 28, 5:02 pm, raphael <[EMAIL PROTECTED]> wrote: > dear google maps api group users, > couldn't find any solution/infos about that topic so i open it over > here. > > is it possibile with google (maps) api to write into a form a region/ > country and he gives me back some gps values and i then can sort all > events/records which i have in my database. > > example: > > i have records everywhere spread around the germany and italy map. > those are stored with gps coordinates > > if i then select "italy" he should give me back a value for the > country which wich i can then do a query in my dat to see which > records are blonging to italy. > > or is this solution only possibile with a own teleatlas/other company > database ? > > i do hope i explained it well enough
So your database has a list of points something like lat, lng, placename and you want to add another column lat, lng, placename, country so that you can select all records with a particular country. You could use Google's HTTP geocoder to find the country and add it to the database. It would be fairly straightforward, but it's really a server-side operation. Loop through your records. For each record, pass the coordinates to the geocoder get the result (say in XML) parse the result to extract the country write the data to the database wait a little while so you don't get blocked go on to the next. There are a number of webservices apart from Google's which will help. Andrew --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" 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 -~----------~----~----~----~------~----~------~--~---
