A lot depends on how complex your polygons are for your territories. If they are just a couple of points, you could do a point in polygon analysis to figure out what territory the coordinate lies in. You could also just display the polygons as different colors and visually check when the point is plotted on the map.
If your polygons are complicated and have a lot of points, the work would best be done on a server. While more difficult to set up, the results would be faster and more consistent then trying to force ten gallons of calculations into a five gallon hat. I recommend using Postgresql as your database to do such calculations. It's fast, efficient, spatially aware and even better, it's open source. Running it under Linux is the best choice. The programming involved is quite simple and no spatial math is required. The query is a single line of easy code too. -John Coryat http://maps.huge.info http://www.usnaviguide.com http://www.zipmap.net -- 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.
