valhalla-browser API
    Preparing search index...

    Type Alias RouteRequest

    RouteRequest:
        | { costing?: "auto"; destination: Coordinates; origin: Coordinates }
        | { costing?: "auto"; locations: [Coordinates, Coordinates] }

    Exactly two locations with the validated driving profile.

    Type Declaration

    • { costing?: "auto"; destination: Coordinates; origin: Coordinates }
      • Optionalcosting?: "auto"

        Validated driving profile. Defaults to auto.

      • destination: Coordinates

        End coordinate inside the dataset coverage.

      • origin: Coordinates

        Start coordinate inside the dataset coverage.

    • { costing?: "auto"; locations: [Coordinates, Coordinates] }
      • Optionalcosting?: "auto"

        Validated driving profile. Defaults to auto.

      • locations: [Coordinates, Coordinates]

        Ordered pair: start, then end. Intermediate stops are unsupported.

    Supply either origin/destination or an ordered locations tuple. The SDK fixes kilometers, English instructions, a 30 m correlation radius, and minimum reachability 0. Additional native request options are not exposed.