GoogleApi.PlayableLocations.V3.Model.GoogleMapsPlayablelocationsV3SamplePlayableLocation (google_api_playable_locations v0.3.0) View Source

A geographical point suitable for placing game objects in location-based games.

Attributes

  • centerPoint (type: GoogleApi.PlayableLocations.V3.Model.GoogleTypeLatLng.t, default: nil) - Required. The latitude and longitude associated with the center of the playable location. By default, the set of playable locations returned from SamplePlayableLocations use center-point coordinates.
  • name (type: String.t, default: nil) - Required. The name of this playable location.
  • placeId (type: String.t, default: nil) - A [place ID] (https://developers.google.com/places/place-id)
  • plusCode (type: String.t, default: nil) - A [plus code] (http://openlocationcode.com)
  • snappedPoint (type: GoogleApi.PlayableLocations.V3.Model.GoogleTypeLatLng.t, default: nil) - The playable location's coordinates, snapped to the sidewalk of the nearest road, if a nearby road exists.
  • types (type: list(String.t), default: nil) - A collection of Playable Location 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.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Specs

t() ::
  %GoogleApi.PlayableLocations.V3.Model.GoogleMapsPlayablelocationsV3SamplePlayableLocation{
    centerPoint:
      GoogleApi.PlayableLocations.V3.Model.GoogleTypeLatLng.t() | nil,
    name: String.t() | nil,
    placeId: String.t() | nil,
    plusCode: String.t() | nil,
    snappedPoint:
      GoogleApi.PlayableLocations.V3.Model.GoogleTypeLatLng.t() | nil,
    types: [String.t()] | nil
  }

Link to this section Functions

Specs

decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.