Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface RouteResult

A data type that represents the route data returned by a third-party directions API.

Hierarchy

  • RouteResult

Index

Properties

distanceMeters

distanceMeters: number

Total route distance as returned by the API, in meters.

durationSeconds

durationSeconds: number

Total route travel duration as returned by the API, in seconds.

feature

feature: Feature

Route path as a Feature generated from the returned GeoJSON.

points

points: Coordinate[]

Array of points returned by the API.

memberof

RouteResult

response

response: any

Raw API response.

memberof

RouteResult

Optional waypoints

waypoints: Feature[]

Route waypoints as an array of Feature instances generated from the returned GeoJSON.

Generated using TypeDoc