Class: Google::Apis::JobsV3p1beta1::Location
- Inherits:
-
Object
- Object
- Google::Apis::JobsV3p1beta1::Location
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/jobs_v3p1beta1/classes.rb,
lib/google/apis/jobs_v3p1beta1/representations.rb,
lib/google/apis/jobs_v3p1beta1/representations.rb
Overview
Output only. A resource that represents a location with full geographic information.
Instance Attribute Summary collapse
-
#lat_lng ⇒ Google::Apis::JobsV3p1beta1::LatLng
An object that represents a latitude/longitude pair.
-
#location_type ⇒ String
The type of a location, which corresponds to the address lines field of PostalAddress.
-
#postal_address ⇒ Google::Apis::JobsV3p1beta1::PostalAddress
Represents a postal address, such as for postal delivery or payments addresses.
-
#radius_in_miles ⇒ Float
Radius in miles of the job location.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Location
constructor
A new instance of Location.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Location
Returns a new instance of Location.
1792 1793 1794 |
# File 'lib/google/apis/jobs_v3p1beta1/classes.rb', line 1792 def initialize(**args) update!(**args) end |
Instance Attribute Details
#lat_lng ⇒ Google::Apis::JobsV3p1beta1::LatLng
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 latLng
1759 1760 1761 |
# File 'lib/google/apis/jobs_v3p1beta1/classes.rb', line 1759 def lat_lng @lat_lng end |
#location_type ⇒ String
The type of a location, which corresponds to the address lines field of
PostalAddress. For example, "Downtown, Atlanta, GA, USA" has a type of
LocationType#NEIGHBORHOOD, and "Kansas City, KS, USA" has a type of
LocationType#LOCALITY.
Corresponds to the JSON property locationType
1767 1768 1769 |
# File 'lib/google/apis/jobs_v3p1beta1/classes.rb', line 1767 def location_type @location_type end |
#postal_address ⇒ Google::Apis::JobsV3p1beta1::PostalAddress
Represents a postal address, such as for postal delivery or payments addresses.
With a postal address, a postal service can deliver items to a premise, P.O.
box, or similar. A postal address is not intended to model geographical
locations like roads, towns, or mountains. In typical usage, an address would
be created by user input or from importing existing data, depending on the
type of process. Advice on address input or editing: - Use an
internationalization-ready address widget such as https://github.com/google/
libaddressinput. - Users should not be presented with UI elements for input or
editing of fields outside countries where that field is used. For more
guidance on how to use this schema, see: https://support.google.com/business/
answer/6397478.
Corresponds to the JSON property postalAddress
1782 1783 1784 |
# File 'lib/google/apis/jobs_v3p1beta1/classes.rb', line 1782 def postal_address @postal_address end |
#radius_in_miles ⇒ Float
Radius in miles of the job location. This value is derived from the location
bounding box in which a circle with the specified radius centered from LatLng
covers the area associated with the job location. For example, currently, "
Mountain View, CA, USA" has a radius of 6.17 miles.
Corresponds to the JSON property radiusInMiles
1790 1791 1792 |
# File 'lib/google/apis/jobs_v3p1beta1/classes.rb', line 1790 def radius_in_miles @radius_in_miles end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1797 1798 1799 1800 1801 1802 |
# File 'lib/google/apis/jobs_v3p1beta1/classes.rb', line 1797 def update!(**args) @lat_lng = args[:lat_lng] if args.key?(:lat_lng) @location_type = args[:location_type] if args.key?(:location_type) @postal_address = args[:postal_address] if args.key?(:postal_address) @radius_in_miles = args[:radius_in_miles] if args.key?(:radius_in_miles) end |