Class RouteAdjustment.Builder

  • Enclosing class:
    RouteAdjustment

    public static final class RouteAdjustment.Builder
    extends java.lang.Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • distanceThreshold

        @NonNull
        public RouteAdjustment.Builder distanceThreshold​(java.lang.Float distanceThreshold)
        (EXPERIMENTAL) Float that defines the distance threshold measured in meters from the current location to the route.

        It is a required condition for projecting the location on the route that the distance between the estimated location and its projection on the route is below this value.

        Parameters:
        distanceThreshold - Float.
      • angleDifferenceThreshold

        @NonNull
        public RouteAdjustment.Builder angleDifferenceThreshold​(java.lang.Float angleDifferenceThreshold)
        (EXPERIMENTAL) Float that defines the angle difference threshold measured in radians between the current location's orientation and the orientation of its projection onto the route.

        It is a required condition for projecting the location on the route that the angle difference between the estimated location bearing and its projection on the route is below this value.

        Parameters:
        angleDifferenceThreshold - Float.