Interface CalculateRoutesRequest.Builder

    • Method Detail

      • allow

        CalculateRoutesRequest.Builder allow​(RouteAllowOptions allow)

        Features that are allowed while calculating. a route

        Parameters:
        allow - Features that are allowed while calculating. a route
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • arrivalTime

        CalculateRoutesRequest.Builder arrivalTime​(String arrivalTime)

        Time of arrival at the destination.

        Time format:YYYY-MM-DDThh:mm:ss.sssZ | YYYY-MM-DDThh:mm:ss.sss+hh:mm

        Examples:

        2020-04-22T17:57:24Z

        2020-04-22T17:57:24+02:00

        Parameters:
        arrivalTime - Time of arrival at the destination.

        Time format:YYYY-MM-DDThh:mm:ss.sssZ | YYYY-MM-DDThh:mm:ss.sss+hh:mm

        Examples:

        2020-04-22T17:57:24Z

        2020-04-22T17:57:24+02:00

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • avoid

        CalculateRoutesRequest.Builder avoid​(RouteAvoidanceOptions avoid)

        Features that are avoided while calculating a route. Avoidance is on a best-case basis. If an avoidance can't be satisfied for a particular case, it violates the avoidance and the returned response produces a notice for the violation.

        Parameters:
        avoid - Features that are avoided while calculating a route. Avoidance is on a best-case basis. If an avoidance can't be satisfied for a particular case, it violates the avoidance and the returned response produces a notice for the violation.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • departNow

        CalculateRoutesRequest.Builder departNow​(Boolean departNow)

        Uses the current time as the time of departure.

        Parameters:
        departNow - Uses the current time as the time of departure.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • departureTime

        CalculateRoutesRequest.Builder departureTime​(String departureTime)

        Time of departure from thr origin.

        Time format:YYYY-MM-DDThh:mm:ss.sssZ | YYYY-MM-DDThh:mm:ss.sss+hh:mm

        Examples:

        2020-04-22T17:57:24Z

        2020-04-22T17:57:24+02:00

        Parameters:
        departureTime - Time of departure from thr origin.

        Time format:YYYY-MM-DDThh:mm:ss.sssZ | YYYY-MM-DDThh:mm:ss.sss+hh:mm

        Examples:

        2020-04-22T17:57:24Z

        2020-04-22T17:57:24+02:00

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • destination

        CalculateRoutesRequest.Builder destination​(Collection<Double> destination)

        The final position for the route. In the World Geodetic System (WGS 84) format: [longitude, latitude].

        Parameters:
        destination - The final position for the route. In the World Geodetic System (WGS 84) format: [longitude, latitude].
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • destination

        CalculateRoutesRequest.Builder destination​(Double... destination)

        The final position for the route. In the World Geodetic System (WGS 84) format: [longitude, latitude].

        Parameters:
        destination - The final position for the route. In the World Geodetic System (WGS 84) format: [longitude, latitude].
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • destinationOptions

        CalculateRoutesRequest.Builder destinationOptions​(RouteDestinationOptions destinationOptions)

        Destination related options.

        Parameters:
        destinationOptions - Destination related options.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • exclude

        CalculateRoutesRequest.Builder exclude​(RouteExclusionOptions exclude)

        Features to be strictly excluded while calculating the route.

        Parameters:
        exclude - Features to be strictly excluded while calculating the route.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • instructionsMeasurementSystem

        CalculateRoutesRequest.Builder instructionsMeasurementSystem​(String instructionsMeasurementSystem)

        Measurement system to be used for instructions within steps in the response.

        Parameters:
        instructionsMeasurementSystem - Measurement system to be used for instructions within steps in the response.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        MeasurementSystem, MeasurementSystem
      • instructionsMeasurementSystem

        CalculateRoutesRequest.Builder instructionsMeasurementSystem​(MeasurementSystem instructionsMeasurementSystem)

        Measurement system to be used for instructions within steps in the response.

        Parameters:
        instructionsMeasurementSystem - Measurement system to be used for instructions within steps in the response.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        MeasurementSystem, MeasurementSystem
      • key

        CalculateRoutesRequest.Builder key​(String key)

        Optional: The API key to be used for authorization. Either an API key or valid SigV4 signature must be provided when making a request.

        Parameters:
        key - Optional: The API key to be used for authorization. Either an API key or valid SigV4 signature must be provided when making a request.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • languages

        CalculateRoutesRequest.Builder languages​(Collection<String> languages)

        List of languages for instructions within steps in the response.

        Instructions in the requested language are returned only if they are available.

        Parameters:
        languages - List of languages for instructions within steps in the response.

        Instructions in the requested language are returned only if they are available.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • languages

        CalculateRoutesRequest.Builder languages​(String... languages)

        List of languages for instructions within steps in the response.

        Instructions in the requested language are returned only if they are available.

        Parameters:
        languages - List of languages for instructions within steps in the response.

        Instructions in the requested language are returned only if they are available.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • legAdditionalFeaturesWithStrings

        CalculateRoutesRequest.Builder legAdditionalFeaturesWithStrings​(Collection<String> legAdditionalFeatures)

        A list of optional additional parameters such as timezone that can be requested for each result.

        • Elevation: Retrieves the elevation information for each location.

        • Incidents: Provides information on traffic incidents along the route.

        • PassThroughWaypoints: Indicates waypoints that are passed through without stopping.

        • Summary: Returns a summary of the route, including distance and duration.

        • Tolls: Supplies toll cost information along the route.

        • TravelStepInstructions: Provides step-by-step instructions for travel along the route.

        • TruckRoadTypes: Returns information about road types suitable for trucks.

        • TypicalDuration: Gives typical travel duration based on historical data.

        • Zones: Specifies the time zone information for each waypoint.

        Parameters:
        legAdditionalFeatures - A list of optional additional parameters such as timezone that can be requested for each result.

        • Elevation: Retrieves the elevation information for each location.

        • Incidents: Provides information on traffic incidents along the route.

        • PassThroughWaypoints: Indicates waypoints that are passed through without stopping.

        • Summary: Returns a summary of the route, including distance and duration.

        • Tolls: Supplies toll cost information along the route.

        • TravelStepInstructions: Provides step-by-step instructions for travel along the route.

        • TruckRoadTypes: Returns information about road types suitable for trucks.

        • TypicalDuration: Gives typical travel duration based on historical data.

        • Zones: Specifies the time zone information for each waypoint.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • legAdditionalFeaturesWithStrings

        CalculateRoutesRequest.Builder legAdditionalFeaturesWithStrings​(String... legAdditionalFeatures)

        A list of optional additional parameters such as timezone that can be requested for each result.

        • Elevation: Retrieves the elevation information for each location.

        • Incidents: Provides information on traffic incidents along the route.

        • PassThroughWaypoints: Indicates waypoints that are passed through without stopping.

        • Summary: Returns a summary of the route, including distance and duration.

        • Tolls: Supplies toll cost information along the route.

        • TravelStepInstructions: Provides step-by-step instructions for travel along the route.

        • TruckRoadTypes: Returns information about road types suitable for trucks.

        • TypicalDuration: Gives typical travel duration based on historical data.

        • Zones: Specifies the time zone information for each waypoint.

        Parameters:
        legAdditionalFeatures - A list of optional additional parameters such as timezone that can be requested for each result.

        • Elevation: Retrieves the elevation information for each location.

        • Incidents: Provides information on traffic incidents along the route.

        • PassThroughWaypoints: Indicates waypoints that are passed through without stopping.

        • Summary: Returns a summary of the route, including distance and duration.

        • Tolls: Supplies toll cost information along the route.

        • TravelStepInstructions: Provides step-by-step instructions for travel along the route.

        • TruckRoadTypes: Returns information about road types suitable for trucks.

        • TypicalDuration: Gives typical travel duration based on historical data.

        • Zones: Specifies the time zone information for each waypoint.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • legAdditionalFeatures

        CalculateRoutesRequest.Builder legAdditionalFeatures​(Collection<RouteLegAdditionalFeature> legAdditionalFeatures)

        A list of optional additional parameters such as timezone that can be requested for each result.

        • Elevation: Retrieves the elevation information for each location.

        • Incidents: Provides information on traffic incidents along the route.

        • PassThroughWaypoints: Indicates waypoints that are passed through without stopping.

        • Summary: Returns a summary of the route, including distance and duration.

        • Tolls: Supplies toll cost information along the route.

        • TravelStepInstructions: Provides step-by-step instructions for travel along the route.

        • TruckRoadTypes: Returns information about road types suitable for trucks.

        • TypicalDuration: Gives typical travel duration based on historical data.

        • Zones: Specifies the time zone information for each waypoint.

        Parameters:
        legAdditionalFeatures - A list of optional additional parameters such as timezone that can be requested for each result.

        • Elevation: Retrieves the elevation information for each location.

        • Incidents: Provides information on traffic incidents along the route.

        • PassThroughWaypoints: Indicates waypoints that are passed through without stopping.

        • Summary: Returns a summary of the route, including distance and duration.

        • Tolls: Supplies toll cost information along the route.

        • TravelStepInstructions: Provides step-by-step instructions for travel along the route.

        • TruckRoadTypes: Returns information about road types suitable for trucks.

        • TypicalDuration: Gives typical travel duration based on historical data.

        • Zones: Specifies the time zone information for each waypoint.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • legAdditionalFeatures

        CalculateRoutesRequest.Builder legAdditionalFeatures​(RouteLegAdditionalFeature... legAdditionalFeatures)

        A list of optional additional parameters such as timezone that can be requested for each result.

        • Elevation: Retrieves the elevation information for each location.

        • Incidents: Provides information on traffic incidents along the route.

        • PassThroughWaypoints: Indicates waypoints that are passed through without stopping.

        • Summary: Returns a summary of the route, including distance and duration.

        • Tolls: Supplies toll cost information along the route.

        • TravelStepInstructions: Provides step-by-step instructions for travel along the route.

        • TruckRoadTypes: Returns information about road types suitable for trucks.

        • TypicalDuration: Gives typical travel duration based on historical data.

        • Zones: Specifies the time zone information for each waypoint.

        Parameters:
        legAdditionalFeatures - A list of optional additional parameters such as timezone that can be requested for each result.

        • Elevation: Retrieves the elevation information for each location.

        • Incidents: Provides information on traffic incidents along the route.

        • PassThroughWaypoints: Indicates waypoints that are passed through without stopping.

        • Summary: Returns a summary of the route, including distance and duration.

        • Tolls: Supplies toll cost information along the route.

        • TravelStepInstructions: Provides step-by-step instructions for travel along the route.

        • TruckRoadTypes: Returns information about road types suitable for trucks.

        • TypicalDuration: Gives typical travel duration based on historical data.

        • Zones: Specifies the time zone information for each waypoint.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • legGeometryFormat

        CalculateRoutesRequest.Builder legGeometryFormat​(String legGeometryFormat)

        Specifies the format of the geometry returned for each leg of the route. You can choose between two different geometry encoding formats.

        FlexiblePolyline: A compact and precise encoding format for the leg geometry. For more information on the format, see the GitHub repository for FlexiblePolyline .

        Simple: A less compact encoding, which is easier to decode but may be less precise and result in larger payloads.

        Parameters:
        legGeometryFormat - Specifies the format of the geometry returned for each leg of the route. You can choose between two different geometry encoding formats.

        FlexiblePolyline: A compact and precise encoding format for the leg geometry. For more information on the format, see the GitHub repository for FlexiblePolyline .

        Simple: A less compact encoding, which is easier to decode but may be less precise and result in larger payloads.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        GeometryFormat, GeometryFormat
      • legGeometryFormat

        CalculateRoutesRequest.Builder legGeometryFormat​(GeometryFormat legGeometryFormat)

        Specifies the format of the geometry returned for each leg of the route. You can choose between two different geometry encoding formats.

        FlexiblePolyline: A compact and precise encoding format for the leg geometry. For more information on the format, see the GitHub repository for FlexiblePolyline .

        Simple: A less compact encoding, which is easier to decode but may be less precise and result in larger payloads.

        Parameters:
        legGeometryFormat - Specifies the format of the geometry returned for each leg of the route. You can choose between two different geometry encoding formats.

        FlexiblePolyline: A compact and precise encoding format for the leg geometry. For more information on the format, see the GitHub repository for FlexiblePolyline .

        Simple: A less compact encoding, which is easier to decode but may be less precise and result in larger payloads.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        GeometryFormat, GeometryFormat
      • maxAlternatives

        CalculateRoutesRequest.Builder maxAlternatives​(Integer maxAlternatives)

        Maximum number of alternative routes to be provided in the response, if available.

        Parameters:
        maxAlternatives - Maximum number of alternative routes to be provided in the response, if available.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • optimizeRoutingFor

        CalculateRoutesRequest.Builder optimizeRoutingFor​(String optimizeRoutingFor)

        Specifies the optimization criteria for calculating a route.

        Default Value: FastestRoute

        Parameters:
        optimizeRoutingFor - Specifies the optimization criteria for calculating a route.

        Default Value: FastestRoute

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        RoutingObjective, RoutingObjective
      • optimizeRoutingFor

        CalculateRoutesRequest.Builder optimizeRoutingFor​(RoutingObjective optimizeRoutingFor)

        Specifies the optimization criteria for calculating a route.

        Default Value: FastestRoute

        Parameters:
        optimizeRoutingFor - Specifies the optimization criteria for calculating a route.

        Default Value: FastestRoute

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        RoutingObjective, RoutingObjective
      • origin

        CalculateRoutesRequest.Builder origin​(Collection<Double> origin)

        The start position for the route.

        Parameters:
        origin - The start position for the route.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • origin

        CalculateRoutesRequest.Builder origin​(Double... origin)

        The start position for the route.

        Parameters:
        origin - The start position for the route.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • originOptions

        CalculateRoutesRequest.Builder originOptions​(RouteOriginOptions originOptions)

        Origin related options.

        Parameters:
        originOptions - Origin related options.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • spanAdditionalFeaturesWithStrings

        CalculateRoutesRequest.Builder spanAdditionalFeaturesWithStrings​(Collection<String> spanAdditionalFeatures)

        A list of optional features such as SpeedLimit that can be requested for a Span. A span is a section of a Leg for which the requested features have the same values.

        Parameters:
        spanAdditionalFeatures - A list of optional features such as SpeedLimit that can be requested for a Span. A span is a section of a Leg for which the requested features have the same values.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • spanAdditionalFeaturesWithStrings

        CalculateRoutesRequest.Builder spanAdditionalFeaturesWithStrings​(String... spanAdditionalFeatures)

        A list of optional features such as SpeedLimit that can be requested for a Span. A span is a section of a Leg for which the requested features have the same values.

        Parameters:
        spanAdditionalFeatures - A list of optional features such as SpeedLimit that can be requested for a Span. A span is a section of a Leg for which the requested features have the same values.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • spanAdditionalFeatures

        CalculateRoutesRequest.Builder spanAdditionalFeatures​(Collection<RouteSpanAdditionalFeature> spanAdditionalFeatures)

        A list of optional features such as SpeedLimit that can be requested for a Span. A span is a section of a Leg for which the requested features have the same values.

        Parameters:
        spanAdditionalFeatures - A list of optional features such as SpeedLimit that can be requested for a Span. A span is a section of a Leg for which the requested features have the same values.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • spanAdditionalFeatures

        CalculateRoutesRequest.Builder spanAdditionalFeatures​(RouteSpanAdditionalFeature... spanAdditionalFeatures)

        A list of optional features such as SpeedLimit that can be requested for a Span. A span is a section of a Leg for which the requested features have the same values.

        Parameters:
        spanAdditionalFeatures - A list of optional features such as SpeedLimit that can be requested for a Span. A span is a section of a Leg for which the requested features have the same values.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • travelMode

        CalculateRoutesRequest.Builder travelMode​(String travelMode)

        Specifies the mode of transport when calculating a route. Used in estimating the speed of travel and road compatibility.

        Default Value: Car

        Parameters:
        travelMode - Specifies the mode of transport when calculating a route. Used in estimating the speed of travel and road compatibility.

        Default Value: Car

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        RouteTravelMode, RouteTravelMode
      • travelMode

        CalculateRoutesRequest.Builder travelMode​(RouteTravelMode travelMode)

        Specifies the mode of transport when calculating a route. Used in estimating the speed of travel and road compatibility.

        Default Value: Car

        Parameters:
        travelMode - Specifies the mode of transport when calculating a route. Used in estimating the speed of travel and road compatibility.

        Default Value: Car

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        RouteTravelMode, RouteTravelMode
      • travelModeOptions

        CalculateRoutesRequest.Builder travelModeOptions​(RouteTravelModeOptions travelModeOptions)

        Travel mode related options for the provided travel mode.

        Parameters:
        travelModeOptions - Travel mode related options for the provided travel mode.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • travelStepType

        CalculateRoutesRequest.Builder travelStepType​(String travelStepType)

        Type of step returned by the response. Default provides basic steps intended for web based applications. TurnByTurn provides detailed instructions with more granularity intended for a turn based naviagtion system.

        Parameters:
        travelStepType - Type of step returned by the response. Default provides basic steps intended for web based applications. TurnByTurn provides detailed instructions with more granularity intended for a turn based naviagtion system.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        RouteTravelStepType, RouteTravelStepType
      • travelStepType

        CalculateRoutesRequest.Builder travelStepType​(RouteTravelStepType travelStepType)

        Type of step returned by the response. Default provides basic steps intended for web based applications. TurnByTurn provides detailed instructions with more granularity intended for a turn based naviagtion system.

        Parameters:
        travelStepType - Type of step returned by the response. Default provides basic steps intended for web based applications. TurnByTurn provides detailed instructions with more granularity intended for a turn based naviagtion system.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        RouteTravelStepType, RouteTravelStepType
      • waypoints

        CalculateRoutesRequest.Builder waypoints​(Collection<RouteWaypoint> waypoints)

        List of waypoints between the Origin and Destination.

        Parameters:
        waypoints - List of waypoints between the Origin and Destination.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • waypoints

        CalculateRoutesRequest.Builder waypoints​(RouteWaypoint... waypoints)

        List of waypoints between the Origin and Destination.

        Parameters:
        waypoints - List of waypoints between the Origin and Destination.
        Returns:
        Returns a reference to this object so that method calls can be chained together.