A geographical point suitable for placing game objects in location-based games.
JSON representation | |
---|---|
{ "name": string, "types": [ string ], "centerPoint": { object ( |
Fields | ||
---|---|---|
name |
Required. The name of this playable location. |
|
types[] |
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 |
Required. The latitude and longitude associated with the center of the playable location. By default, the set of playable locations returned from |
|
snappedPoint |
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 |
A place ID |
|
plusCode |
|
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 |
The latitude in degrees. It must be in the range [-90.0, +90.0]. |
longitude |
The longitude in degrees. It must be in the range [-180.0, +180.0]. |