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 {
origin?: GoogleTypeLatLng;
routeModifiers?: GoogleMapsPlacesV1RouteModifiers;
routingPreference?:
| "ROUTING_PREFERENCE_UNSPECIFIED"
| "TRAFFIC_UNAWARE"
| "TRAFFIC_AWARE"
| "TRAFFIC_AWARE_OPTIMAL";
travelMode?:
} | "TRAVEL_MODE_UNSPECIFIED"
| "DRIVE"
| "BICYCLE"
| "WALK"
| "TWO_WHEELER";
§Properties
§
origin?: GoogleTypeLatLng
[src]Optional. An explicit routing origin that overrides the origin defined in the polyline. By default, the polyline origin is used.
§
routeModifiers?: GoogleMapsPlacesV1RouteModifiers
[src]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
.