Class: Google::Apis::PlayablelocationsV3::GoogleMapsPlayablelocationsV3SampleAreaFilter

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/playablelocations_v3/classes.rb,
generated/google/apis/playablelocations_v3/representations.rb,
generated/google/apis/playablelocations_v3/representations.rb

Overview

Specifies the area to search for playable locations.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleMapsPlayablelocationsV3SampleAreaFilter

Returns a new instance of GoogleMapsPlayablelocationsV3SampleAreaFilter.



218
219
220
# File 'generated/google/apis/playablelocations_v3/classes.rb', line 218

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#s2_cell_idFixnum

Required. The S2 cell ID of the area you want. This must be between cell level 11 and 14 (inclusive). S2 cells are 64-bit integers that identify areas on the Earth. They are hierarchical, and can therefore be used for spatial indexing. The S2 geometry library is available in a number of languages: * C++ * Java * Go * Python Corresponds to the JSON property s2CellId

Returns:

  • (Fixnum)


216
217
218
# File 'generated/google/apis/playablelocations_v3/classes.rb', line 216

def s2_cell_id
  @s2_cell_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



223
224
225
# File 'generated/google/apis/playablelocations_v3/classes.rb', line 223

def update!(**args)
  @s2_cell_id = args[:s2_cell_id] if args.key?(:s2_cell_id)
end