Interface RouteWaypoint.Builder

  • Method Details

    • avoidActionsForDistance

      RouteWaypoint.Builder avoidActionsForDistance(Long avoidActionsForDistance)

      Avoids actions for the provided distance. This is typically to consider for users in moving vehicles who may not have sufficient time to make an action at an origin or a destination. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers.

      Parameters:
      avoidActionsForDistance - Avoids actions for the provided distance. This is typically to consider for users in moving vehicles who may not have sufficient time to make an action at an origin or a destination. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • avoidUTurns

      RouteWaypoint.Builder avoidUTurns(Boolean avoidUTurns)

      Avoid U-turns for calculation on highways and motorways. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers.

      Parameters:
      avoidUTurns - Avoid U-turns for calculation on highways and motorways. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • heading

      RouteWaypoint.Builder heading(Double heading)

      GPS Heading at the position. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers.

      Parameters:
      heading - GPS Heading at the position. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • matching

      Options to configure matching the provided position to the road network. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers.

      Parameters:
      matching - Options to configure matching the provided position to the road network. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • matching

      Options to configure matching the provided position to the road network. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers.

      This is a convenience method that creates an instance of the RouteMatchingOptions.Builder avoiding the need to create one manually via RouteMatchingOptions.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to matching(RouteMatchingOptions).

      Parameters:
      matching - a consumer that will call methods on RouteMatchingOptions.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • passThrough

      RouteWaypoint.Builder passThrough(Boolean passThrough)

      If the waypoint should not be treated as a stop. If yes, the waypoint is passed through and doesn't split the route into different legs. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers.

      Parameters:
      passThrough - If the waypoint should not be treated as a stop. If yes, the waypoint is passed through and doesn't split the route into different legs. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • position

      Position in World Geodetic System (WGS 84) format: [longitude, latitude].

      Parameters:
      position - Position in World Geodetic System (WGS 84) format: [longitude, latitude].
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • position

      RouteWaypoint.Builder position(Double... position)

      Position in World Geodetic System (WGS 84) format: [longitude, latitude].

      Parameters:
      position - Position in World Geodetic System (WGS 84) format: [longitude, latitude].
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sideOfStreet

      RouteWaypoint.Builder sideOfStreet(RouteSideOfStreetOptions sideOfStreet)

      Options to configure matching the provided position to a side of the street. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers.

      Parameters:
      sideOfStreet - Options to configure matching the provided position to a side of the street. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sideOfStreet

      default RouteWaypoint.Builder sideOfStreet(Consumer<RouteSideOfStreetOptions.Builder> sideOfStreet)

      Options to configure matching the provided position to a side of the street. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers.

      This is a convenience method that creates an instance of the RouteSideOfStreetOptions.Builder avoiding the need to create one manually via RouteSideOfStreetOptions.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to sideOfStreet(RouteSideOfStreetOptions).

      Parameters:
      sideOfStreet - a consumer that will call methods on RouteSideOfStreetOptions.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • stopDuration

      RouteWaypoint.Builder stopDuration(Long stopDuration)

      Duration of the stop. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers.

      Unit: seconds

      Parameters:
      stopDuration - Duration of the stop. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers.

      Unit: seconds

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