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

Route types

Route types

Allow your users to plan a route that will be the fastest, shortest, most thrilling or the environment friendly.

Sample use case: You plan a trip from Amsterdam to Rotterdam and want to compare ETAs for different types of routes to choose the best fit your preferences.

Available route types:

routeType = RouteType.FASTEST
routeType = RouteType.SHORTEST
routeType = RouteType.ECO
routeType = RouteType.THRILLING

To request a route for a specified travel type:

_

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

 



image

Route type eco

image

Route type fastest

image

Route type shortest

You are here