Areas and locations
An area is a polygon on the map.
{ "name": "world-clock", "locations": [ { "lat": 52.52157, "lon": 13.41285 }, { "lat": 52.52157, "lon": 13.41365 }, { "lat": 52.52107, "lon": 13.41365 }, { "lat": 52.52107, "lon": 13.41285 } ], "content": { "title": [{ "lang": "eng", "text": "World Clock" }], "description": [], "strokeColor": "#f2a541", "strokeOpacity": 0.9, "strokeWeight": 3, "fillColor": "#f2a541", "fillOpacity": 0.2 }}locations are the corners of the polygon in order (WGS 84 latitude/longitude). The content styles how the area is
drawn on the map.
Areas are used
- in geofence solutions of tasks: the task is solved when the player enters or leaves the area, see Solutions,
- as play area of a story (
area,areaRestricted) or as area of a challenge or element.
Locations
Section titled “Locations”Stories and elements can have a location: a point shown on the map of the player app.
"location": { "showOnRelease": true, "gps": { "lat": 52.52132, "lon": 13.41325 }, "address": "Alexanderplatz, World Clock", "description": []}showOnRelease shows the location as soon as the element is released. A location is only information for the player;
to check that a player really is at a place, use a geofence or a secret (QR code) solution.