yes, areas will be arbitrary, the user will set points for regions, it would be fine if you turn available some links with examples on how to use it with data base...
nerabil On Sep 16, 6:56 am, Andrew Leach <[email protected]> wrote: > On Sep 16, 12:43 am, nerabil <[email protected]> wrote: > > > I'm searching for some examples where I could define several areas on > > map and save it into the SQL Server data base, would there be any > > other way but polylines? the user must to be able to edit polylines > > and bound around the places to stablish an area > > So the areas are arbitrary? Or can they be defined by GLatLngBounds()? > (That is, a rectangle with the edges aligned east-west and north- > south?) > > If the areas are arbitrary then surely drawing a polygon is the only > way to do it. > > Once the polygon is defined you could send the list of vertices to the > server to store. I don't know if SQLServer does WKT or some other > spatial data format, but you would probably need some server-side > processing of the vertex data whatever method you use in the database. > > > I intend to seek for an address and get the Area that match to it... > > something like this: > > 5th Ave, belongs to Area 'C2'. > > Bronx Park E, belongs to Area 'E5'. > > That's fine. Geocode the address and then use point-in-polygon > analysis of your areas to determine which one contains the location. > If you have a spatially-aware database this is even more > straightforward. > > > I also need to get a list of all addresses inside an area sorted. > > The API won't help with that. > > 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 -~----------~----~----~----~------~----~------~--~---
