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.
§
roadTraffic?: "ROAD_TRAFFIC_UNSPECIFIED" | "TRAFFIC_FREE" | "BUSY_HOUR"
[src]Specifies the traffic density to use when calculating commute time.