valhalla-browser API
    Preparing search index...

    Interface NativeRoute

    Full Valhalla JSON with typed common fields and preserved additional native fields.

    interface NativeRoute {
        trip: {
            legs: {
                maneuvers: {
                    instruction: string;
                    length: number;
                    time: number;
                    type: number;
                    [key: string]: unknown;
                }[];
                shape: string;
                [key: string]: unknown;
            }[];
            summary: { length: number; time: number; [key: string]: unknown };
            [key: string]: unknown;
        };
        [key: string]: unknown;
    }

    Indexable

    • [key: string]: unknown
    Index
    trip: {
        legs: {
            maneuvers: {
                instruction: string;
                length: number;
                time: number;
                type: number;
                [key: string]: unknown;
            }[];
            shape: string;
            [key: string]: unknown;
        }[];
        summary: { length: number; time: number; [key: string]: unknown };
        [key: string]: unknown;
    }

    Successful native trip response, including its ordered legs.

    Type Declaration

    • [key: string]: unknown
    • legs: {
          maneuvers: {
              instruction: string;
              length: number;
              time: number;
              type: number;
              [key: string]: unknown;
          }[];
          shape: string;
          [key: string]: unknown;
      }[]

      Native route legs, in travel order.

    • summary: { length: number; time: number; [key: string]: unknown }

      Totals across the trip.

      • length: number

        Total distance in kilometers.

      • time: number

        Estimated travel time in seconds.