It's the 15th anniversary of Google Maps Platform - Check out the latest news and announcements

PlayableLocation

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

JSON representation
{
  "name": string,
  "types": [
    string
  ],
  "centerPoint": {
    object (LatLng)
  },
  "snappedPoint": {
    object (LatLng)
  },

  // Union field location_id can be only one of the following:
  "placeId": string,
  "plusCode": string
  // End of list of possible types for union field location_id.
}
Fields
name

string

Required. The name of this playable location.

types[]

string

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.

centerPoint

object (LatLng)

Required. The latitude and longitude associated with the center of the playable location.

By default, the set of playable locations returned from v3.samplePlayableLocations use center-point coordinates.

snappedPoint

object (LatLng)

The playable location's coordinates, snapped to the sidewalk of the nearest road, if a nearby road exists.

Union field location_id. Required. Each location has one of the following identifiers: location_id can be only one of the following:
placeId

string

A place ID

plusCode

string

A plus code

LatLng

An object representing a latitude/longitude pair. This is expressed as a pair of doubles representing degrees latitude and degrees longitude. Unless specified otherwise, this must conform to the WGS84 standard. Values must be within normalized ranges.

JSON representation
{
  "latitude": number,
  "longitude": number
}
Fields
latitude

number

The latitude in degrees. It must be in the range [-90.0, +90.0].

longitude

number

The longitude in degrees. It must be in the range [-180.0, +180.0].