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

GoogleMapsPlacesV1RoutingParameters

import type { GoogleMapsPlacesV1RoutingParameters } from "https://googleapis.deno.dev/v1/places:v1.ts";

Parameters to configure the routing calculations to the places in the response, both along a route (where result ranking will be influenced) and for calculating travel times on results.

interface GoogleMapsPlacesV1RoutingParameters {
routingPreference?:
| "ROUTING_PREFERENCE_UNSPECIFIED"
| "TRAFFIC_UNAWARE"
| "TRAFFIC_AWARE"
| "TRAFFIC_AWARE_OPTIMAL";
travelMode?:
| "TRAVEL_MODE_UNSPECIFIED"
| "DRIVE"
| "BICYCLE"
| "WALK"
| "TWO_WHEELER";
}

§Properties

§

Optional. An explicit routing origin that overrides the origin defined in the polyline. By default, the polyline origin is used.

§

Optional. The route modifiers.

§
routingPreference?: "ROUTING_PREFERENCE_UNSPECIFIED" | "TRAFFIC_UNAWARE" | "TRAFFIC_AWARE" | "TRAFFIC_AWARE_OPTIMAL"
[src]

Optional. Specifies how to compute the routing summaries. The server attempts to use the selected routing preference to compute the route. The traffic aware routing preference is only available for the DRIVE or TWO_WHEELER travelMode.

§
travelMode?: "TRAVEL_MODE_UNSPECIFIED" | "DRIVE" | "BICYCLE" | "WALK" | "TWO_WHEELER"
[src]

Optional. The travel mode.