Scooter routing provides route calculation using car roads with scooter-specific speed estimations. This type of routing can be performed online or offline.
- Scooter routing is currently offered as a beta feature. APIs may change without notice. Please contact us if you plan to use this feature in a commercial application.
- Scooter-specific roadways are not yet supported.
Scooter routing includes car-only roads. Since scooters are not permitted on highways, highways are avoided for this type of route calculation. In cases when forbidden, car-specific roads or highways cannot be avoided, the route computation fails.
This feature supports the speed limitation for scooters, which is 45 km/h. Calculated routes take into account the fact that the possible travel speed for scooters is slower than car travel, such as on roads where car travel speed is greater than 45 km/h. In addition, heavy traffic affects scooter travel time less than car travel time.
To calculate a scooter route, use similar steps as for other transport mode types, such as the following example:
CoreRouter router = new CoreRouter(); // Create the RoutePlan and add two waypoints RoutePlan routePlan = new RoutePlan(); routePlan.addWaypoint(new RouteWaypoint(new GeoCoordinate(49.276271, -123.113224))); routePlan.addWaypoint(new RouteWaypoint(new GeoCoordinate(49.1947289, -123.1762924))); RouteOptions routeOptions = new RouteOptions(); routeOptions.setTransportMode(RouteOptions.TransportMode.SCOOTER); routeOptions.setRouteType(RouteOptions.Type.FASTEST); routePlan.setRouteOptions(routeOptions); // Calculate the route, assuming that you have already implemented RouteListener. // See the Car Routing section for more details. router.calculateRoute(routePlan, new RouteListener());