getMaxWaypointsCount

Retrieves the maximum number of waypoints that can be added to a navigation route.

The returned count includes the destination — for example, a value of 12 means the route can contain at most 11 intermediate waypoints plus the destination. A value of 25 means the route can contain at most 24 intermediate waypoints plus the destination.

The returned value is static for the lifetime of the service — callers should request it once and cache the result instead of invoking this command repeatedly.

Return

A Result containing the maximum waypoint count as an Int if successful, or an error if the operation fails.