Route Avoid Options Playground
Pick a vehicle, road types to avoid and stretches to box off, and watch London to Brussels replan
Ticking a road type, picking a vehicle or boxing off a stretch clicked on the line replans the London to Brussels route.
avoidableTypesis the SDK’s own list ofAvoidablevalues, so the checkbox grid is generated from it rather than hardcoded.- Per-section scopes such as
events.tollRoadsreport the click, andgetSectionBBoxturns that section into the box. costModelcarriesavoidandavoidAreas, andvehiclethe weight, top speed andtollTransponder.
Related examples
Add Stops to Route (Playground)
Dynamically add and remove intermediate stops on a route by clicking the map
Playground
Routing
Utilities
User Interaction Events
Web
React Route Planner
Search, add and drag stops, set how long you stay at each, follow the trip on a timeline of its road sections, then fly over it.
Playground
Routing
Search and Geocoding
Electric Vehicles
User Interaction Events
Utilities
Plugins
Web
React
Route progress playground
Hover and click along the route line to see time and distance progress
Playground
Routing
Utilities
User Interaction Events
Web
Route waypoints playground
Restyle a route's waypoint pins per role, number or letter its stops, and give them icons of your own.
Playground
Routing
User Interaction Events
Web