Reputation: 152
Is it possible to detect if a marker is placed in the middle of a route I made using Google Maps API V3?
Upvotes: 0
Views: 484
Reputation: 117354
Take a look at the isLocationOnEdge
-method of google.maps.geometry.poly
Note: the geometry-library isn't loaded by default, you must load the library by adding the libraries-parameter to the maps-API-script-url: &libraries=geometry
Upvotes: 2