Parameter interface for MPRouteLeg.

MPRouteLegParams

interface MPRouteLegParams {
    distance?: MPRouteProperty;
    duration?: MPRouteProperty;
    end_address?: string;
    end_location?: MPRouteCoordinate;
    leg_end_reason?: string;
    leg_start_reason?: string;
    start_address?: string;
    start_location?: MPRouteCoordinate;
    steps?: MPRouteStep[];
    stop_index?: number;
}

Properties

distance?: MPRouteProperty

The distance of the leg.

duration?: MPRouteProperty

The expected time it takes to traverse the leg.

end_address?: string

The address at the end of the leg.

end_location?: MPRouteCoordinate

The end coordinate of the leg.

leg_end_reason?: string

The reason for the end of the leg.

leg_start_reason?: string

The reason for the start of the leg.

start_address?: string

The address at the start of the leg.

start_location?: MPRouteCoordinate

The start coordinate of the leg.

steps?: MPRouteStep[]

The steps the leg consists of.

stop_index?: number

The index of the stop.

MMNEPVFCICPMFPCPTTAAATR