getBaseUniqueName static method
Build a route name derived from the coordinates of waypoints.
The name is unique for a given sequence of waypoint coordinates, which makes it a convenient default identifier when storing a route with add. It does not require an existing collection and does not check whether a route with that name is already stored.
Parameters
waypoints: Ordered list of Landmark objects defining the route.
Returns
String: the generated name, empty whenwaypointsis empty.
Implementation
static String getBaseUniqueName(List<Landmark> waypoints) {
final LandmarkList landmarkList = LandmarkList.fromList(waypoints);
final OperationResult result = staticMethod(
'RoutingService',
'getBaseUniqueName',
args: landmarkList.pointerId,
);
return result['result'];
}