Routes / Multipoint Wayfinding
INFO
Multipoint routing is available via the JS SDK.
Route Creation
The functionality that allows attendees to view routes connecting multiple points of interest (POIs).
INFO
A maximum of 8 intermediate waypoints is allowed (total: origin + 8 waypoints + destination = 10).
js
___fp.selectRoute(["42-1", "42-21", "42-37", "42-52", "101-17", "101-12"]);

Optimization
An optional optimize mode attempts to compute the most efficient order in which to visit the selected POIs.
js
const route = ___fp.getOptimizedRoutes(["42-1", "42-21", "42-3", "41-3"]).flatMap(r => r.waypoints);
___fp.selectRoute(route);Before Optimization

After Optimization
