class Google::Apis::JobsV4::CommuteFilter

Parameters needed for commute search.

Attributes

allow_imprecise_addresses[RW]

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. Corresponds to the JSON property `allowImpreciseAddresses` @return [Boolean]

allow_imprecise_addresses?[RW]

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. Corresponds to the JSON property `allowImpreciseAddresses` @return [Boolean]

commute_method[RW]

Required. The method of transportation to calculate the commute time for. Corresponds to the JSON property `commuteMethod` @return [String]

departure_time[RW]

Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. Corresponds to the JSON property `departureTime` @return [Google::Apis::JobsV4::TimeOfDay]

road_traffic[RW]

Specifies the traffic density to use when calculating commute time. Corresponds to the JSON property `roadTraffic` @return [String]

start_coordinates[RW]

An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges. Corresponds to the JSON property `startCoordinates` @return [Google::Apis::JobsV4::LatLng]

travel_duration[RW]

Required. The maximum travel time in seconds. The maximum allowed value is ` 3600s` (one hour). Format is `123s`. Corresponds to the JSON property `travelDuration` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/jobs_v4/classes.rb, line 358
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/jobs_v4/classes.rb, line 363
def update!(**args)
  @allow_imprecise_addresses = args[:allow_imprecise_addresses] if args.key?(:allow_imprecise_addresses)
  @commute_method = args[:commute_method] if args.key?(:commute_method)
  @departure_time = args[:departure_time] if args.key?(:departure_time)
  @road_traffic = args[:road_traffic] if args.key?(:road_traffic)
  @start_coordinates = args[:start_coordinates] if args.key?(:start_coordinates)
  @travel_duration = args[:travel_duration] if args.key?(:travel_duration)
end