Class: Google::Cloud::Talent::V4::Location
- Inherits:
-
Object
- Object
- Google::Cloud::Talent::V4::Location
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/talent/v4/common.rb
Overview
A resource that represents a location with full geographic information.
Defined Under Namespace
Modules: LocationType
Instance Attribute Summary collapse
-
#lat_lng ⇒ ::Google::Type::LatLng
An object representing a latitude/longitude pair.
-
#location_type ⇒ ::Google::Cloud::Talent::V4::Location::LocationType
The type of a location, which corresponds to the address lines field of google.type.PostalAddress.
-
#postal_address ⇒ ::Google::Type::PostalAddress
Postal address of the location that includes human readable information, such as postal delivery and payments addresses.
-
#radius_miles ⇒ ::Float
Radius in miles of the job location.
Instance Attribute Details
#lat_lng ⇒ ::Google::Type::LatLng
Returns An object representing a latitude/longitude pair.
61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 |
# File 'proto_docs/google/cloud/talent/v4/common.rb', line 61 class Location include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # An enum which represents the type of a location. module LocationType # Default value if the type isn't specified. LOCATION_TYPE_UNSPECIFIED = 0 # A country level location. COUNTRY = 1 # A state or equivalent level location. ADMINISTRATIVE_AREA = 2 # A county or equivalent level location. SUB_ADMINISTRATIVE_AREA = 3 # A city or equivalent level location. LOCALITY = 4 # A postal code level location. POSTAL_CODE = 5 # A sublocality is a subdivision of a locality, for example a city borough, # ward, or arrondissement. Sublocalities are usually recognized by a local # political authority. For example, Manhattan and Brooklyn are recognized # as boroughs by the City of New York, and are therefore modeled as # sublocalities. SUB_LOCALITY = 6 # A district or equivalent level location. SUB_LOCALITY_1 = 7 # A smaller district or equivalent level display. SUB_LOCALITY_2 = 8 # A neighborhood level location. NEIGHBORHOOD = 9 # A street address level location. STREET_ADDRESS = 10 end end |
#location_type ⇒ ::Google::Cloud::Talent::V4::Location::LocationType
Returns The type of a location, which corresponds to the address lines field of google.type.PostalAddress. For example, "Downtown, Atlanta, GA, USA" has a type of LocationType.NEIGHBORHOOD, and "Kansas City, KS, USA" has a type of LocationType.LOCALITY.
61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 |
# File 'proto_docs/google/cloud/talent/v4/common.rb', line 61 class Location include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # An enum which represents the type of a location. module LocationType # Default value if the type isn't specified. LOCATION_TYPE_UNSPECIFIED = 0 # A country level location. COUNTRY = 1 # A state or equivalent level location. ADMINISTRATIVE_AREA = 2 # A county or equivalent level location. SUB_ADMINISTRATIVE_AREA = 3 # A city or equivalent level location. LOCALITY = 4 # A postal code level location. POSTAL_CODE = 5 # A sublocality is a subdivision of a locality, for example a city borough, # ward, or arrondissement. Sublocalities are usually recognized by a local # political authority. For example, Manhattan and Brooklyn are recognized # as boroughs by the City of New York, and are therefore modeled as # sublocalities. SUB_LOCALITY = 6 # A district or equivalent level location. SUB_LOCALITY_1 = 7 # A smaller district or equivalent level display. SUB_LOCALITY_2 = 8 # A neighborhood level location. NEIGHBORHOOD = 9 # A street address level location. STREET_ADDRESS = 10 end end |
#postal_address ⇒ ::Google::Type::PostalAddress
Returns Postal address of the location that includes human readable information, such as postal delivery and payments addresses. Given a postal address, a postal service can deliver items to a premises, P.O. Box, or other delivery location.
61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 |
# File 'proto_docs/google/cloud/talent/v4/common.rb', line 61 class Location include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # An enum which represents the type of a location. module LocationType # Default value if the type isn't specified. LOCATION_TYPE_UNSPECIFIED = 0 # A country level location. COUNTRY = 1 # A state or equivalent level location. ADMINISTRATIVE_AREA = 2 # A county or equivalent level location. SUB_ADMINISTRATIVE_AREA = 3 # A city or equivalent level location. LOCALITY = 4 # A postal code level location. POSTAL_CODE = 5 # A sublocality is a subdivision of a locality, for example a city borough, # ward, or arrondissement. Sublocalities are usually recognized by a local # political authority. For example, Manhattan and Brooklyn are recognized # as boroughs by the City of New York, and are therefore modeled as # sublocalities. SUB_LOCALITY = 6 # A district or equivalent level location. SUB_LOCALITY_1 = 7 # A smaller district or equivalent level display. SUB_LOCALITY_2 = 8 # A neighborhood level location. NEIGHBORHOOD = 9 # A street address level location. STREET_ADDRESS = 10 end end |
#radius_miles ⇒ ::Float
Returns 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 google.type.LatLng covers the area associated with the job location. For example, currently, "Mountain View, CA, USA" has a radius of 6.17 miles.
61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 |
# File 'proto_docs/google/cloud/talent/v4/common.rb', line 61 class Location include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # An enum which represents the type of a location. module LocationType # Default value if the type isn't specified. LOCATION_TYPE_UNSPECIFIED = 0 # A country level location. COUNTRY = 1 # A state or equivalent level location. ADMINISTRATIVE_AREA = 2 # A county or equivalent level location. SUB_ADMINISTRATIVE_AREA = 3 # A city or equivalent level location. LOCALITY = 4 # A postal code level location. POSTAL_CODE = 5 # A sublocality is a subdivision of a locality, for example a city borough, # ward, or arrondissement. Sublocalities are usually recognized by a local # political authority. For example, Manhattan and Brooklyn are recognized # as boroughs by the City of New York, and are therefore modeled as # sublocalities. SUB_LOCALITY = 6 # A district or equivalent level location. SUB_LOCALITY_1 = 7 # A smaller district or equivalent level display. SUB_LOCALITY_2 = 8 # A neighborhood level location. NEIGHBORHOOD = 9 # A street address level location. STREET_ADDRESS = 10 end end |