Advertisement
Guest User

Untitled

a guest
Feb 28th, 2015
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. var isLocationNear = google.maps.geometry.poly.isLocationOnEdge(latlng, new google.maps.Polyline({
  2. path: google.maps.geometry.encoding.decodePath(result.routes[0].overview_polyline)
  3. }), .00001);
  4.  
  5. isLocationOnEdge(point:LatLng, poly:Polygon|Polyline, tolerance?:number)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement