Job search requests can include a commute time filter that restricts returned jobs to those within a specified travel time from a start point. Results include the estimated commute time in seconds for matched jobs.
Specific commute time search
To return jobs within a specific commute time, send a
jobs.search
request and include a CommuteFilter
object in the JobQuery.commuteFilter
field. Cloud Talent Solution uses the job's address
to calculate the commute time to that job. When a detailed address is not
provided Cloud Talent Solution attempts to infer the actual street address of the
job.
Java
For more on installing and creating a Cloud Talent Solution client, see Cloud Talent Solution Client Libraries.
For more on installing and creating a Cloud Talent Solution client, see
Cloud Talent Solution Client Libraries.
For more on installing and creating a Cloud Talent Solution client, see
Cloud Talent Solution Client Libraries.
For more on installing and creating a Cloud Talent Solution client, see
Cloud Talent Solution Client Libraries.
Python
Go
Ruby
Required fields
commuteMethod
: The method of transportation for which to calculate the commute time. Options areDRIVING
andTRANSIT
. All versions since V3p1beta1 will also includeWALKING
andCYCLING
transit modes. Walking and cycling routes may not reflect real-world conditions such as construction or include clear walking or cycling paths. These responses will includewarnings
in the returned result which you must display to your users.travelDuration
: The maximum travel time in seconds. The maximum allowed value is3600s
(one hour). Format is123s
.startCoordinates
: The latitude and longitude of the location from which to calculate the commute time. Accepts aLatLng
object.
Optional fields
allowImpreciseAddresses
: "Precise" addresses are defined as either street level addresses or GPS coordinates. IfallowImpreciseAddresses
is set totrue
, jobs with "imprecise" addresses (city, state, or country only) may also be returned. For city level and coarser level addresses, text matching is used. If this field is set tofalse
or is not specified, only jobs that include precise addresses are returned by commute search.
roadTraffic
: Specifies the traffic density to use when calculating commute time. Options areTRAFFIC_FREE
orBUSY_HOUR
. Must not be present ifdepartureHourLocal
is specified.departureTime
: The departure hour to use to calculate traffic impact. Accepts an integer between 0 and 23, representing the hour in the timezone of thestartLocation
. Must not be present ifroadTraffic
is specified.