# Cloud Talent Solution V4 API - Class Google::Cloud::Talent::V4::CommuteFilter (v1.9.0)

1.9.0 (latest) 1.8.1 1.7.0 1.6.1 1.5.0 1.4.0 1.3.1 1.2.0 1.1.0 1.0.1 0.13.0 0.12.2 0.11.0 0.10.1 0.9.1 0.8.1 0.7.0 0.6.4 Reference documentation and code samples for the Cloud Talent Solution V4 API class Google::Cloud::Talent::V4::CommuteFilter.

Parameters needed for commute search.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #allow_imprecise_addresses

    def allow_imprecise_addresses() -> ::Boolean

**Returns**

- (::Boolean) --- 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.

### #allow_imprecise_addresses=

    def allow_imprecise_addresses=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- 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.
**Returns**

- (::Boolean) --- 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.

### #commute_method

    def commute_method() -> ::Google::Cloud::Talent::V4::CommuteMethod

**Returns**

- ([::Google::Cloud::Talent::V4::CommuteMethod](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4/latest/Google-Cloud-Talent-V4-CommuteMethod)) --- Required. The method of transportation to calculate the commute time for.

### #commute_method=

    def commute_method=(value) -> ::Google::Cloud::Talent::V4::CommuteMethod

**Parameter**

- **value** ([::Google::Cloud::Talent::V4::CommuteMethod](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4/latest/Google-Cloud-Talent-V4-CommuteMethod)) --- Required. The method of transportation to calculate the commute time for.
**Returns**

- ([::Google::Cloud::Talent::V4::CommuteMethod](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4/latest/Google-Cloud-Talent-V4-CommuteMethod)) --- Required. The method of transportation to calculate the commute time for.

### #departure_time

    def departure_time() -> ::Google::Type::TimeOfDay

**Returns**

- ([::Google::Type::TimeOfDay](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4/latest/Google-Type-TimeOfDay)) --- The departure time used to calculate traffic impact, represented as [google.type.TimeOfDay](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4/latest/Google-Type-TimeOfDay "Google::Type::TimeOfDay (class)") in local time zone.


  Currently traffic model is restricted to hour level resolution.

  Note: The following fields are mutually exclusive: `departure_time`, `road_traffic`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #departure_time=

    def departure_time=(value) -> ::Google::Type::TimeOfDay

**Parameter**

- **value** ([::Google::Type::TimeOfDay](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4/latest/Google-Type-TimeOfDay)) --- The departure time used to calculate traffic impact, represented as [google.type.TimeOfDay](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4/latest/Google-Type-TimeOfDay "Google::Type::TimeOfDay (class)") in local time zone.


  Currently traffic model is restricted to hour level resolution.

  Note: The following fields are mutually exclusive: `departure_time`, `road_traffic`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Type::TimeOfDay](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4/latest/Google-Type-TimeOfDay)) --- The departure time used to calculate traffic impact, represented as [google.type.TimeOfDay](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4/latest/Google-Type-TimeOfDay "Google::Type::TimeOfDay (class)") in local time zone.


  Currently traffic model is restricted to hour level resolution.

  Note: The following fields are mutually exclusive: `departure_time`, `road_traffic`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #road_traffic

    def road_traffic() -> ::Google::Cloud::Talent::V4::CommuteFilter::RoadTraffic

**Returns**

- ([::Google::Cloud::Talent::V4::CommuteFilter::RoadTraffic](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4/latest/Google-Cloud-Talent-V4-CommuteFilter-RoadTraffic)) --- Specifies the traffic density to use when calculating commute time.


  Note: The following fields are mutually exclusive: `road_traffic`, `departure_time`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #road_traffic=

    def road_traffic=(value) -> ::Google::Cloud::Talent::V4::CommuteFilter::RoadTraffic

**Parameter**

- **value** ([::Google::Cloud::Talent::V4::CommuteFilter::RoadTraffic](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4/latest/Google-Cloud-Talent-V4-CommuteFilter-RoadTraffic)) --- Specifies the traffic density to use when calculating commute time.


  Note: The following fields are mutually exclusive: `road_traffic`, `departure_time`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::Talent::V4::CommuteFilter::RoadTraffic](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4/latest/Google-Cloud-Talent-V4-CommuteFilter-RoadTraffic)) --- Specifies the traffic density to use when calculating commute time.


  Note: The following fields are mutually exclusive: `road_traffic`, `departure_time`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #start_coordinates

    def start_coordinates() -> ::Google::Type::LatLng

**Returns**

- ([::Google::Type::LatLng](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4/latest/Google-Type-LatLng)) --- Required. The latitude and longitude of the location to calculate the commute time from.

### #start_coordinates=

    def start_coordinates=(value) -> ::Google::Type::LatLng

**Parameter**

- **value** ([::Google::Type::LatLng](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4/latest/Google-Type-LatLng)) --- Required. The latitude and longitude of the location to calculate the commute time from.
**Returns**

- ([::Google::Type::LatLng](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4/latest/Google-Type-LatLng)) --- Required. The latitude and longitude of the location to calculate the commute time from.

### #travel_duration

    def travel_duration() -> ::Google::Protobuf::Duration

**Returns**

- ([::Google::Protobuf::Duration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4/latest/Google-Protobuf-Duration)) --- Required. The maximum travel time in seconds. The maximum allowed value is `3600s` (one hour). Format is `123s`.

### #travel_duration=

    def travel_duration=(value) -> ::Google::Protobuf::Duration

**Parameter**

- **value** ([::Google::Protobuf::Duration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4/latest/Google-Protobuf-Duration)) --- Required. The maximum travel time in seconds. The maximum allowed value is `3600s` (one hour). Format is `123s`.
**Returns**

- ([::Google::Protobuf::Duration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4/latest/Google-Protobuf-Duration)) --- Required. The maximum travel time in seconds. The maximum allowed value is `3600s` (one hour). Format is `123s`.