Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Im trying to generate directions using google.maps.DirectionsService and I really need those directions bounded by the paths defined from within a pre-made kml file. I have reviewed the API docs for google maps and doesnt seem they have this functionality.

This is for a custom app where areas are already defined inside a kml file that is layered over google maps.

Any ideas?


share|improve this question
After looking around, this is the only approach I have. Use Cases: 1.- If start point is outside the KML bounded paths 1.1 - Get directions from start point to nearest entrance to KML bounded path using google.maps.DirectionsService 1.2 - If Destination point is outside KML bounded path 1.2.1 - Get directions to nearest entrance of KML bounded path from destination using google.maps.DirectionsService 1.2.2 - From the nearest entrance used as an end point in 1.1, find shortest path through KML bounded path using Dijkstra's algorithm to entrance found in 1.2.1. – cs_brandt Mar 27 '12 at 20:23

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.