Interface protos.google.maps.routing.v2.IRoute (1.4.0)

Properties of a Route.

Package

@googlemaps/routing

Properties

description

description?: (string|null);

Route description

distanceMeters

distanceMeters?: (number|null);

Route distanceMeters

duration

duration?: (google.protobuf.IDuration|null);

Route duration

legs

legs?: (google.maps.routing.v2.IRouteLeg[]|null);

Route legs

localizedValues

localizedValues?: (google.maps.routing.v2.Route.IRouteLocalizedValues|null);

Route localizedValues

optimizedIntermediateWaypointIndex

optimizedIntermediateWaypointIndex?: (number[]|null);

Route optimizedIntermediateWaypointIndex

polyline

polyline?: (google.maps.routing.v2.IPolyline|null);

Route polyline

polylineDetails

polylineDetails?: (google.maps.routing.v2.IPolylineDetails|null);

Route polylineDetails

routeLabels

routeLabels?: (google.maps.routing.v2.RouteLabel[]|null);

Route routeLabels

routeToken

routeToken?: (string|null);

Route routeToken

staticDuration

staticDuration?: (google.protobuf.IDuration|null);

Route staticDuration

travelAdvisory

travelAdvisory?: (google.maps.routing.v2.IRouteTravelAdvisory|null);

Route travelAdvisory

viewport

viewport?: (google.geo.type.IViewport|null);

Route viewport

warnings

warnings?: (string[]|null);

Route warnings