Probably the easiest way after returning the placemark via reverse geocoding is to just take the iso-2 code (eg ES for Spain) and have a javascript object (representing a hash of 2-letter iso codes and your region definition - as Igloo says, if i understand him right :P ). So ES -> Europe UK -> Europe etc
place = response.Placemark[0]; * 2_iso_code = place.AddressDetails.Country.CountryNameCode; *note more than 1 placemark may be returned by the geocoder Premade javscript hash functions can also be found in the prototype library. A more complex way to do this is to use a postGIS enabled database containing the region shapefiles, and then use the within() function to test to see if the point returned by the Google placemark (as other posters have mentioned) - this would allow you to gather information such as which administrative region the point is within etc. Maybe the NUTS2006 dataset for europe, and GAUL for non-eu country outlines, On 25 Mar, 06:52, Pankaj <[email protected]> wrote: > Hello All, > > I would like to know that if user click on continent or region of Asia > of Google map, it should tell us that you have clicked on Asia region. > > Please help... > > Regards > Pankaj --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
