The following may be two questions, but at the same time it may also be just one question, for two different things at the same time.
Given a map with several Polylines on it, each one representing a particular route. Now, given a marker, or more accurately, a search result (address), how can I look for the closest Polyline (route) to that marker? What we're trying to do is plot where buses run (already done), and given someone's address, what's the closest route for them to get to. Now, I suspect the same process might also solve my next question, which is to figure out whether there are other markers in the vicinity of the search result (each marker represents a potential carpool/ buspool candidate.) Say within a block radius. We already have all the necessary data for the markers and can plot those. So really it's the searching for nearby stuff that I need to figure out. Do I take the (search) result, create a virtual box (or circle) around it (anyone know what a good radius would be?) and figure out which markers fall within that? I don't have access to a DB server to do searches (might be easier), what I do have is an XML file with all my markers in it. Suggestions please? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
