class Google::Apis::PlayablelocationsV3::GoogleMapsPlayablelocationsV3SamplePlayableLocation
A geographical point suitable for placing game objects in location-based games.
Attributes
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 `centerPoint` @return [Google::Apis::PlayablelocationsV3::GoogleTypeLatLng]
Required. The name of this playable location. Corresponds to the JSON property `name` @return [String]
A [place ID] (developers.google.com/places/place-id) Corresponds to the JSON property `placeId` @return [String]
A [plus code] (openlocationcode.com) Corresponds to the JSON property `plusCode` @return [String]
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 `snappedPoint` @return [Google::Apis::PlayablelocationsV3::GoogleTypeLatLng]
A collection of [Playable Location Types](/maps/documentation/gaming/tt/types) for this playable location. The first type in the collection is the primary type. Type information might not be available for all playable locations. Corresponds to the JSON property `types` @return [Array<String>]
Public Class Methods
# File lib/google/apis/playablelocations_v3/classes.rb, line 344 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/playablelocations_v3/classes.rb, line 349 def update!(**args) @center_point = args[:center_point] if args.key?(:center_point) @name = args[:name] if args.key?(:name) @place_id = args[:place_id] if args.key?(:place_id) @plus_code = args[:plus_code] if args.key?(:plus_code) @snapped_point = args[:snapped_point] if args.key?(:snapped_point) @types = args[:types] if args.key?(:types) end