A path from an origin to a destination.

Constructors

Properties

Constructors

  • Creates a new route.

    Parameters

    • path: Path

      The path of the route.

    • distance: number

      The total distance in metres of the route.

    Returns Route

Properties

distance: number

The total distance of the route in metres.

path: Path

The geographic information of the route.

A route's path can be added to a Shape for display on the map.