Sorry, you need to enable JavaScript to visit this website.

Travel modes

Travel modes

Allow your users to plan a route for different travel modes.

Sample use case: You want to check what travel mode (car or truck) gives you the best ETA for a trip from Amsterdam to Rotterdam.

Available travel modes:

travelMode = TravelMode.CAR
travelMode = TravelMode.TRUCK
travelMode = TravelMode.TAXI
travelMode = TravelMode.BUS
travelMode = TravelMode.VAN
travelMode = TravelMode.MOTORCYCLE
travelMode = TravelMode.BICYCLE
travelMode = TravelMode.PEDESTRIAN
travelMode = TravelMode.OTHER

To request for a specified travel mode:

_

RouteQuery queryBuilder = RouteQueryBuilder.create(routeConfig.getOrigin(), routeConfig.getDestination())
        .withMaxAlternatives(0)
        .withReport(Report.EFFECTIVE_SETTINGS)
        .withInstructionsType(InstructionsType.TEXT)
        .withTravelMode(travelMode)
        .withConsiderTraffic(false).build();
val routeQuery = RouteQueryBuilder.create(origin, destination)
        .withReport(Report.EFFECTIVE_SETTINGS)
        .withInstructionsType(InstructionsType.TEXT)
        .withTravelMode(travelMode)
        .withConsiderTraffic(false)
        .build()

 



image

Travel mode car

image

Travel mode pedestrian

image

Travel mode truck

You are here