Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Step

import type { Step } from "https://aws-api.deno.dev/v0.3/services/location.ts?docs=full";

Represents an element of a leg within a route. A step contains instructions for how to move to the next step in the leg.

interface Step {
Distance: number;
DurationSeconds: number;
EndPosition: number[];
GeometryOffset?: number | null;
StartPosition: number[];
}

§Properties

§
Distance: number
[src]

The travel distance between the step's StartPosition and EndPosition.

§
DurationSeconds: number
[src]

The estimated travel time, in seconds, from the step's StartPosition to the EndPosition. . The travel mode and departure time that you specify in the request determines the calculated time.

§
EndPosition: number[]
[src]

The end position of a step. If the position the last step in the leg, this position is the same as the end position of the leg.

§
GeometryOffset?: number | null
[src]

Represents the start position, or index, in a sequence of steps within the leg's line string geometry. For example, the index of the first step in a leg geometry is 0.

Included in the response for queries that set IncludeLegGeometry to True.

§
StartPosition: number[]
[src]

The starting position of a step. If the position is the first step in the leg, this position is the same as the start position of the leg.