Interface RouteTransitOptions.Builder

  • Method Details

    • accessibilityAttributesWithStrings

      RouteTransitOptions.Builder accessibilityAttributesWithStrings(Collection<String> accessibilityAttributes)

      Accessibility attributes to consider when calculating the route.

      Parameters:
      accessibilityAttributes - Accessibility attributes to consider when calculating the route.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • accessibilityAttributesWithStrings

      RouteTransitOptions.Builder accessibilityAttributesWithStrings(String... accessibilityAttributes)

      Accessibility attributes to consider when calculating the route.

      Parameters:
      accessibilityAttributes - Accessibility attributes to consider when calculating the route.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • accessibilityAttributes

      RouteTransitOptions.Builder accessibilityAttributes(Collection<RouteAccessibilityAttribute> accessibilityAttributes)

      Accessibility attributes to consider when calculating the route.

      Parameters:
      accessibilityAttributes - Accessibility attributes to consider when calculating the route.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • accessibilityAttributes

      RouteTransitOptions.Builder accessibilityAttributes(RouteAccessibilityAttribute... accessibilityAttributes)

      Accessibility attributes to consider when calculating the route.

      Parameters:
      accessibilityAttributes - Accessibility attributes to consider when calculating the route.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • allowedModesWithStrings

      RouteTransitOptions.Builder allowedModesWithStrings(Collection<String> allowedModes)

      Allowed transit transport modes when calculating the route. By default, all transport modes are allowed. Cannot be used together with ExcludedModes.

      Parameters:
      allowedModes - Allowed transit transport modes when calculating the route. By default, all transport modes are allowed. Cannot be used together with ExcludedModes.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • allowedModesWithStrings

      RouteTransitOptions.Builder allowedModesWithStrings(String... allowedModes)

      Allowed transit transport modes when calculating the route. By default, all transport modes are allowed. Cannot be used together with ExcludedModes.

      Parameters:
      allowedModes - Allowed transit transport modes when calculating the route. By default, all transport modes are allowed. Cannot be used together with ExcludedModes.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • allowedModes

      Allowed transit transport modes when calculating the route. By default, all transport modes are allowed. Cannot be used together with ExcludedModes.

      Parameters:
      allowedModes - Allowed transit transport modes when calculating the route. By default, all transport modes are allowed. Cannot be used together with ExcludedModes.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • allowedModes

      RouteTransitOptions.Builder allowedModes(RouteTransitMode... allowedModes)

      Allowed transit transport modes when calculating the route. By default, all transport modes are allowed. Cannot be used together with ExcludedModes.

      Parameters:
      allowedModes - Allowed transit transport modes when calculating the route. By default, all transport modes are allowed. Cannot be used together with ExcludedModes.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • excludedModesWithStrings

      RouteTransitOptions.Builder excludedModesWithStrings(Collection<String> excludedModes)

      Excluded transit transport modes when calculating the route. By default, all transport modes are allowed. Cannot be used together with AllowedModes.

      Parameters:
      excludedModes - Excluded transit transport modes when calculating the route. By default, all transport modes are allowed. Cannot be used together with AllowedModes.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • excludedModesWithStrings

      RouteTransitOptions.Builder excludedModesWithStrings(String... excludedModes)

      Excluded transit transport modes when calculating the route. By default, all transport modes are allowed. Cannot be used together with AllowedModes.

      Parameters:
      excludedModes - Excluded transit transport modes when calculating the route. By default, all transport modes are allowed. Cannot be used together with AllowedModes.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • excludedModes

      Excluded transit transport modes when calculating the route. By default, all transport modes are allowed. Cannot be used together with AllowedModes.

      Parameters:
      excludedModes - Excluded transit transport modes when calculating the route. By default, all transport modes are allowed. Cannot be used together with AllowedModes.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • excludedModes

      RouteTransitOptions.Builder excludedModes(RouteTransitMode... excludedModes)

      Excluded transit transport modes when calculating the route. By default, all transport modes are allowed. Cannot be used together with AllowedModes.

      Parameters:
      excludedModes - Excluded transit transport modes when calculating the route. By default, all transport modes are allowed. Cannot be used together with AllowedModes.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • maxTransfers

      RouteTransitOptions.Builder maxTransfers(Integer maxTransfers)

      Maximum number of transfers allowed when calculating the route.

      Parameters:
      maxTransfers - Maximum number of transfers allowed when calculating the route.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • pedestrian

      Options for the pedestrian leg of the transit route.

      Parameters:
      pedestrian - Options for the pedestrian leg of the transit route.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • pedestrian

      Options for the pedestrian leg of the transit route.

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

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

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