Snap to Roads Maximum Distance between Waypoints

39 views
Skip to first unread message

Frank Natoli

unread,
Feb 1, 2016, 5:03:16 PM2/1/16
to Google Maps JavaScript API v3
The Snap-to-Roads API reference page contains the following warning: "Note that if your points are too far apart, they may not snap correctly". For the attached screenshot, generated using the sample code on the Snap-to-Roads API reference page, the gray line connects the three waypoints, clicked right to left, east to west. The black line shows the resultant snap-to-roads polyline. Note that the snap is good for a little while, then bizarrely goes offroad to the southwest. I could understand choosing the wrong road, but going in a straight line offroad? Does anyone have any idea how close the waypoints need to be? Thanks.
SnapToRoads.jpg
Reply all
Reply to author
Forward
0 new messages