Skip to Content

Maps and regional figures

Venues and regions as GeoJSON for a map, and the LeisureIndex of a region.

Venues on a map

EndpointReturns
GET /locations/geojsonThe published venues with coordinates in your area, most relevant first. Each feature is a point with properties: id, name, city, address, slug, category (the venue's main category), ranking, eventCount (its dates in your scope that are not cancelled; with timeRange or startDate and endDate only those in that window) and lang. Filters: regionIds, region, regionType, near, radius as on the lists (What is on in a place), regionId, search (name and address), limit (1 to 5000, default 500).
GET /locations/geojson/event-seriesThe venues in your area that have dates in your scope, those with the most dates first. properties: id, name, city, slug, eventCount (dates), uniqueEvents (event series), eventTitles and lang. Cancelled dates are not counted, and only event series inside your scope's domains and genres count. Filters: regionId, regionType, timeRange (default all), startDate, endDate, limit (1 to 10000, default 2000).

Both answer a plain GeoJSON FeatureCollection, { "type": "FeatureCollection", "features": [ … ] }, with Content-Type: application/geo+json and without an envelope, like every GeoJSON answer of the API, so map tools read it as it is. name and the titles are in the language you ask for with lang or Accept-Language, with the fallback of the lists; lang on each feature names the language of name, and Content-Language lists the languages served (Languages). timeRange is one of all, past30, past90, past365, future30, future90, future365 (days back or ahead from now); startDate and endDate (YYYY-MM-DD) set a window of their own instead. Each request costs 5 credits (Credits).

Region boundaries

GET /regions/geojson answers the boundaries of up to limit regions of your area (default 1000, at most 5000) as a plain GeoJSON FeatureCollection with Content-Type: application/geo+json, without an envelope, like the venue layers. Filters: types, parentId (the direct children of a region) and hasChildType (only regions that have children of that type). Each feature's properties are id, name, type, parentId, externalId, areaKm2 and population. The answer may be kept for a day and carries an ETag (Caching with ETag).

The LeisureIndex of a region

The LeisureIndex measures the cultural and leisure offer of a region from 0 to 100, from three parts: density (dates and venues per inhabitant), diversity (how many genres, and how evenly spread) and quality (content, accessibility and inclusivity).

EndpointReturns
GET /regions/{id}/leisure-indexoverall, density, diversity and quality with their breakdowns (densityBreakdown, diversityBreakdown, qualityBreakdown), gaps (the weakest part and where the most can be gained) and stats (locationCount, showtimeCount, genreCount, population, areaKm2). A region outside your area answers 404.
GET /regions/{id}/leisure-index/historyThe index over time, { "history": [ … ] } with one entry per week or month (interval) for the last periods (1 to 52): period, startDate, endDate, overall, density, diversity, quality, showtimeCount. A region outside your area answers 404.
GET /regions/compare?ids=<2 to 4 region ids>The same figures side by side, with deltas from their averages. A region outside your area answers 404, as on the single region.
GET /regions/scoresregionId, overallScore, eventCount and locationCount for every region of the given types in your area, for colouring a map. Complete, in one page; it takes no limit.

/regions/{id}/leisure-index, /regions/compare and /regions/scores take timeRange (values as above; without it, all dates count). The figures are computed when you ask; they keep Cache-Control: private, max-age=60 and cost 1 credit each.

On this page