Parameter interface for MPRouteLeg.

Export

MPRouteLegParams

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

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.

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.

Generated using TypeDoc