Routing Example

Core Status

Initialized: ✗ No

Calculate Route

Router Status: ○ Not Initialized

Click on the map to set origin and destination, then calculate the route

Navigation Utilities

Click on the map to set a test position along the route and see navigation information

Map Visualization

Interactive map showing calculated route and test position

Origin Destination Test Position

💡 Click on the map to set origin, destination, or test position. A popup will ask which type of point you want to set.

💡 Routing Usage:

  • Initialize Router first (uses config from CoreConfig if available)
  • Calculate routes between two coordinates
  • View route information including distance, duration, and legs
  • Test Navigation utilities by setting a test position along the route
  • Navigation info shows distance remaining, progress, and next instructions

Note: Check the browser console for detailed logs.