2

I'm using Google Maps API to add a map to my website that controls the route of a sailor. The route points are added on the fly with javascript and they are not quite detailed, so sometimes I get a line crossing over land.

Is it possible to add points to a Polyline and automatically avoid passing through land?

Anto Jurković
  • 11,188
  • 2
  • 29
  • 42
Peter
  • 118
  • 9
  • 2
    Short answer: no. There is no way to know whether a point is on land or above water with Google Maps API. See my answer here: http://stackoverflow.com/a/22906947/1238965 – MrUpsidown Apr 28 '14 at 15:47
  • possible duplicate of [Optimizing Geographic Center in Google Maps with Respect to Travel Time if it Lies Within Water](http://stackoverflow.com/questions/22901016/optimizing-geographic-center-in-google-maps-with-respect-to-travel-time-if-it-li) – Sunny Patel May 05 '14 at 18:24

0 Answers0