On Nov 9, 12:56 am, badr <bad...@gmail.com> wrote: > > I'm trying to build an android application that uses gps coordinates > to provide the matching electorial district, this requires building > custom areas on google maps and reverse geocoding to them, I'm not > sure how that's done, anybody got an idea how?
Exactly as you describe. You need polygons corresponding to the electoral districts, and then do point-in-polygon analysis to determine which one contains your coordinates. It's probably best done server-side (depending on the number, extent and complexity of the district polygons). I do something similar here: http://www.achurchnearyou.com/parishfinder.php -- click on the map (in England, it won't work for other countries in the UK or abroad) and the server code finds which of 16000 districts contains that location. It does depend on having the polygon boundaries, and the server code narrows down the number of polygons to test rather than doing all 16000. -- 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 google-maps-api@googlegroups.com. To unsubscribe from this group, send email to google-maps-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.