The button built a detour unconditionally and picked the target from the globally
nearest route point + 1500m, which on loops/off-route jumped to the start ('first
waypoint'). Now: find current progress on the route, use the compass bearing to pick
travel direction, and only reroute when a nogo sits on the route ahead within a
lookahead window - else toast 'впереди затыка нет'. Target is the first point clear
of nogos past the blockage.
|
||
|---|---|---|
| .. | ||
| bmr.js | ||
| chzn.js | ||
| db.js | ||
| gps.js | ||
| main.js | ||
| poi.js | ||
| router.js | ||
| tilecache.js | ||