Class: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlacePlusCode
- Inherits:
-
Object
- Object
- Google::Apis::PlacesV1::GoogleMapsPlacesV1PlacePlusCode
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/places_v1/classes.rb,
lib/google/apis/places_v1/representations.rb,
lib/google/apis/places_v1/representations.rb
Overview
Plus code (http://plus.codes) is a location reference with two formats: global code defining a 14mx14m (1/8000th of a degree) or smaller rectangle, and compound code, replacing the prefix with a reference location.
Instance Attribute Summary collapse
-
#compound_code ⇒ String
Place's compound code, such as "33GV+HQ, Ramberg, Norway", containing the suffix of the global code and replacing the prefix with a formatted name of a reference entity.
-
#global_code ⇒ String
Place's global (full) code, such as "9FWM33GV+HQ", representing an 1/8000 by 1/ 8000 degree area (~14 by 14 meters).
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleMapsPlacesV1PlacePlusCode
constructor
A new instance of GoogleMapsPlacesV1PlacePlusCode.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleMapsPlacesV1PlacePlusCode
Returns a new instance of GoogleMapsPlacesV1PlacePlusCode.
1905 1906 1907 |
# File 'lib/google/apis/places_v1/classes.rb', line 1905 def initialize(**args) update!(**args) end |
Instance Attribute Details
#compound_code ⇒ String
Place's compound code, such as "33GV+HQ, Ramberg, Norway", containing the
suffix of the global code and replacing the prefix with a formatted name of a
reference entity.
Corresponds to the JSON property compoundCode
1897 1898 1899 |
# File 'lib/google/apis/places_v1/classes.rb', line 1897 def compound_code @compound_code end |
#global_code ⇒ String
Place's global (full) code, such as "9FWM33GV+HQ", representing an 1/8000 by 1/
8000 degree area (~14 by 14 meters).
Corresponds to the JSON property globalCode
1903 1904 1905 |
# File 'lib/google/apis/places_v1/classes.rb', line 1903 def global_code @global_code end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1910 1911 1912 1913 |
# File 'lib/google/apis/places_v1/classes.rb', line 1910 def update!(**args) @compound_code = args[:compound_code] if args.key?(:compound_code) @global_code = args[:global_code] if args.key?(:global_code) end |