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

CommuteFilter

import type { CommuteFilter } from "https://googleapis.deno.dev/v1/jobs:v4.ts";

Parameters needed for commute search.

interface CommuteFilter {
allowImpreciseAddresses?: boolean;
commuteMethod?:
| "COMMUTE_METHOD_UNSPECIFIED"
| "DRIVING"
| "TRANSIT"
| "WALKING"
| "CYCLING"
| "TRANSIT_ACCESSIBLE";
departureTime?: TimeOfDay;
roadTraffic?: "ROAD_TRAFFIC_UNSPECIFIED" | "TRAFFIC_FREE" | "BUSY_HOUR";
startCoordinates?: LatLng;
travelDuration?: number;
}

§Properties

§
allowImpreciseAddresses?: boolean
[src]

If true, jobs without street level addresses may also be returned. For city level addresses, the city center is used. For state and coarser level addresses, text matching is used. If this field is set to false or isn't specified, only jobs that include street level addresses will be returned by commute search.

§
commuteMethod?: "COMMUTE_METHOD_UNSPECIFIED" | "DRIVING" | "TRANSIT" | "WALKING" | "CYCLING" | "TRANSIT_ACCESSIBLE"
[src]

Required. The method of transportation to calculate the commute time for.

§
departureTime?: TimeOfDay
[src]

The departure time used to calculate traffic impact, represented as google.type.TimeOfDay in local time zone. Currently traffic model is restricted to hour level resolution.

§
roadTraffic?: "ROAD_TRAFFIC_UNSPECIFIED" | "TRAFFIC_FREE" | "BUSY_HOUR"
[src]

Specifies the traffic density to use when calculating commute time.

§
startCoordinates?: LatLng
[src]

Required. The latitude and longitude of the location to calculate the commute time from.

§
travelDuration?: number
[src]

Required. The maximum travel time in seconds. The maximum allowed value is 3600s (one hour). Format is 123s.