Route Avoid Options Playground

Pick a vehicle, road types to avoid and stretches to box off, and watch London to Brussels replan

View on GitHub
SDK 1.0.0-rc.7

Ticking a road type, picking a vehicle or boxing off a stretch clicked on the line replans the London to Brussels route.

  • avoidableTypes is the SDK’s own list of Avoidable values, so the checkbox grid is generated from it rather than hardcoded.
  • Per-section scopes such as events.tollRoads report the click, and getSectionBBox turns that section into the box.
  • costModel carries avoid and avoidAreas, and vehicle the weight, top speed and tollTransponder.

Related examples