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)
  },
  "displayNames": [
    {
      object(DisplayName)
    }
  ],
  "addresses": [
    {
      object(Address)
    }
  ],
  "biomeType": [
    enum (BiomeType)
  ],
  "location_id": {
    // Union field location_id can be only one of the following:
    "placeId": string,
    "plusCode": string
  }
}
Fields
name

string

Required. The name of this playable location, also used on PlayerReports and Impressions.

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 playableLocations.search 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.

displayNames[]

object(DisplayName)

The playable location's display name, in each language that the name is supported in.

Local languages for the playable location are listed first, and then any additional languages are listed afterwards, in no particular order.

addresses[]

object(Address)

The playable location's address, in each language that the address is supported in.

Local languages for the playable location are listed first, and then any additional languages are listed afterwards, in no particular order.

biomeType[]

enum(BiomeType)

The playable location's biome types.

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].