{"openapi":"3.1.0","info":{"title":"OSM Query API","description":"Query API for OpenStreetMap POIs.","version":"0.1.0"},"paths":{"/v1/search":{"get":{"tags":["TagFinder"],"summary":"Search concepts by search term (TagFinder `search`)","description":"Resolves a natural-language search term to the matching concepts of the\nOSM-POI-Thesaurus without running a spatial query. The term is compared with\nthe preferred, alternative and hidden labels of all concepts, including partial\nwords: in the language given by `lang`, otherwise in all supported languages. Hits\nare weighted with the usage frequency from Taginfo.\n\nResults are sorted by relevance and limited to the 10 most relevant concepts;\nconcepts as relevant as the 10th are returned as well, so the response may hold\nmore than 10. If no label matches, the most similar concepts\nabove a configured minimum score are returned as candidates; if there are none,\nthe response is an empty array. If several concepts match equally well,\nall of them are returned. Only concepts with tag filters are returned;\nthemes are resolved by `GET /pois` only.","operationId":"search","parameters":[{"name":"query","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"description":"Search term in any supported language","examples":["Pizzeria"],"title":"Query"},"description":"Search term in any supported language"},{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"enum":["de","fr","it","en","gsw"],"type":"string"},{"type":"null"}],"description":"Searches only the labels of this language; without `lang`, the labels of all languages are searched. `gsw` searches the German labels.","title":"Lang"},"description":"Searches only the labels of this language; without `lang`, the labels of all languages are searched. `gsw` searches the German labels."}],"responses":{"200":{"description":"Matching concepts, sorted by relevance; empty array if nothing matches","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TagFinderSearchItem"},"title":"Response Search"}}}},"503":{"description":"The thesaurus could not be loaded (`UPSTREAM_UNAVAILABLE`)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"400":{"description":"Invalid request parameters (VALIDATION_ERROR)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected error (INTERNAL_ERROR)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/suggest":{"get":{"tags":["TagFinder"],"summary":"Suggest search terms (TagFinder `suggest`)","description":"Completes a partial search term over the labels of the OSM-POI-Thesaurus in\nall languages or the one given by `lang`. Returns at most 10 suggestions, an empty\narray if there are none.","operationId":"suggest","parameters":[{"name":"query","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"description":"Beginning of a search term","examples":["Pizz"],"title":"Query"},"description":"Beginning of a search term"},{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"enum":["de","fr","it","en","gsw"],"type":"string"},{"type":"null"}],"description":"Restrict suggestions to one language (default all languages)","title":"Lang"},"description":"Restrict suggestions to one language (default all languages)"}],"responses":{"200":{"description":"Suggested terms","content":{"application/json":{"schema":{"type":"array","items":{"type":"string"},"title":"Response Suggest"}}}},"503":{"description":"The thesaurus could not be loaded (`UPSTREAM_UNAVAILABLE`)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"400":{"description":"Invalid request parameters (VALIDATION_ERROR)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected error (INTERNAL_ERROR)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/tag":{"get":{"tags":["TagFinder"],"summary":"Look up an OSM tag and the concepts containing it (TagFinder `tag`)","description":"Direct lookup of an OSM tag or key, not a search; the case must match exactly.\nThe field `concepts` lists all concepts whose tag filter contains the tag. If none\ndoes but a fallback concept exists for the key (e.g. `[shop]`), it holds this\nfallback concept; otherwise it is empty.\n\nIf the thesaurus has a concept for exactly this tag or key, the response describes\nit with the fields of TagFinder as well. Otherwise the response holds `concepts`\nonly.","operationId":"tag","parameters":[{"name":"key","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":255,"description":"Tag key","examples":["amenity"],"title":"Key"},"description":"Tag key"},{"name":"value","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":255},{"type":"null"}],"description":"Tag value. Without a value, the key itself is looked up.","examples":["dentist"],"title":"Value"},"description":"Tag value. Without a value, the key itself is looked up."}],"responses":{"200":{"description":"Tag description with the concepts containing it; only `concepts` if the tag has no concept of its own","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/TagLookup"},{"$ref":"#/components/schemas/TagConcepts"}],"title":"Response Tag"}}}},"503":{"description":"The thesaurus could not be loaded (`UPSTREAM_UNAVAILABLE`)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"400":{"description":"Invalid request parameters (VALIDATION_ERROR)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected error (INTERNAL_ERROR)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/terms":{"get":{"tags":["TagFinder"],"summary":"Related, broader and narrower terms (TagFinder `terms`)","description":"Returns the preferred labels of the related, broader and narrower concepts of\nthe concepts with the given label, of any kind and language. The case must match\nexactly. If no concept matches, all lists are empty. For navigation by concept ID\nuse `GET /concepts/{conceptId}`.","operationId":"terms","parameters":[{"name":"term","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"description":"Label of a concept","examples":["Restaurant"],"title":"Term"},"description":"Label of a concept"}],"responses":{"200":{"description":"Related, broader and narrower terms per language","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TermsResponse"}}}},"503":{"description":"The thesaurus could not be loaded (`UPSTREAM_UNAVAILABLE`)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"400":{"description":"Invalid request parameters (VALIDATION_ERROR)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected error (INTERNAL_ERROR)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/tagfinder/resolve":{"post":{"tags":["TagFinder"],"summary":"Resolve search terms to concepts and their OSM tag filters","operationId":"resolveTags","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagResolveRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagResolveResponse"}}}},"503":{"description":"The thesaurus could not be loaded (`UPSTREAM_UNAVAILABLE`)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"400":{"description":"Invalid request parameters (VALIDATION_ERROR)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected error (INTERNAL_ERROR)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/concepts":{"get":{"tags":["Thesaurus"],"summary":"List the twelve themes (entry point of the taxonomy)","description":"Returns the twelve themes of the top level of the OSM-POI-Thesaurus, sorted by\nrank. Their IDs have the form `theme:<id>`, e.g. `theme:shop`, and can be passed to\n`GET /concepts/{conceptId}`.","operationId":"listThemes","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThemeList"}}}},"503":{"description":"The thesaurus could not be loaded (`UPSTREAM_UNAVAILABLE`)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected error (INTERNAL_ERROR)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/concepts/{conceptId}":{"get":{"tags":["Thesaurus"],"summary":"Get a single concept with its broader, narrower and related concepts","description":"Returns a single concept with all labels, tag filters, definition, Wikidata\nitems and its broader, narrower and related concepts. A theme can be requested\nwith its ID as well, e.g. `theme:shop`; it has no tag filters and no broader\nconcepts. Unknown IDs are answered with `404 UNKNOWN_CONCEPT`.","operationId":"getConcept","parameters":[{"name":"conceptId","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_.:=-]{1,200}$","description":"ID of a concept, e.g. `amenity-restaurant`, or of a theme, e.g. `theme:shop`","examples":["amenity-restaurant"],"title":"Conceptid"},"description":"ID of a concept, e.g. `amenity-restaurant`, or of a theme, e.g. `theme:shop`"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConceptDetail"}}}},"404":{"description":"Unknown concept (`UNKNOWN_CONCEPT`)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"The thesaurus could not be loaded (`UPSTREAM_UNAVAILABLE`)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"400":{"description":"Invalid request parameters (VALIDATION_ERROR)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected error (INTERNAL_ERROR)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/pois":{"get":{"tags":["POIs"],"summary":"Search the POIs of concepts or themes in an area","description":"Searches the POIs of concepts or themes, including all concepts below them,\nwithin a search area. The search for `theme:food_and_drink` finds restaurants,\ncafés and bars; the search for `amenity-restaurant` also finds pizzerias.\n\n**What**: at least one `concept` or `theme`, combined by OR. This endpoint does\nnot resolve search terms: resolve them with `GET /search` first and pass the\n`concept.id` of the hit you mean. If the term is ambiguous, the choice is up to\nthe client. Each POI is returned once, even if several concepts or themes cover it.\n\n**Search area**: exactly one of `bbox` or `point` + `radius`. Resolve place names\nwith `/geocode` first and pass the `bbox` of the place you mean.\n\n**Conditions**: a POI is returned if it belongs to one of the concepts or themes\n**and** lies in the search area **and** all `tag`s hold **and** its name\ncontains `name`.\n\nExample: wheelchair accessible pizzerias and pizza takeaways with opening hours,\nnearest to the train station of Rapperswil first\n\n```\n?concept=amenity-restaurant__cuisine-pizza&concept=amenity-fast_food__cuisine-pizza\n&tag=wheelchair=yes&tag=opening_hours\n&point=8.8164,47.2267&radius=1000&sort=distance\n```\n\nThe POIs of the classified layer `cadence_pois` are returned as GeoJSON (RFC 7946),\neach with all its `concepts`, the most specific first, their `conceptLabels` in the\nsame order, everything it `belongs_to` and its `attributes`. `metadata` carries the\nsearch area used, the number of hits, whether the result was truncated, the data\ntimestamp, the thesaurus version and the attribution. To search by tag filters on\nthe unclassified layer, use `/layers/pois/features`.","operationId":"searchPois","parameters":[{"name":"concept","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9_.:=-]{1,200}$"},"maxItems":20},{"type":"null"}],"description":"ID of a concept, e.g. `amenity-restaurant`. The search includes all concepts below it, so `amenity-restaurant` also finds pizzerias, and finds a POI through each of its concepts: a pizzeria tagged as kebab shop as well is found as pizzeria.\n\nResolve a search term with `GET /search` first and pass the `concept.id` of the hit you mean. Repeat `concept` for several concepts: a POI matches if it belongs to **one** of them or to one of the `theme`s (OR).","examples":[["amenity-restaurant__cuisine-pizza"]],"title":"Concept"},"description":"ID of a concept, e.g. `amenity-restaurant`. The search includes all concepts below it, so `amenity-restaurant` also finds pizzerias, and finds a POI through each of its concepts: a pizzeria tagged as kebab shop as well is found as pizzeria.\n\nResolve a search term with `GET /search` first and pass the `concept.id` of the hit you mean. Repeat `concept` for several concepts: a POI matches if it belongs to **one** of them or to one of the `theme`s (OR)."},{"name":"theme","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9_.:=-]{1,200}$"},"maxItems":12},{"type":"null"}],"description":"ID of one of the twelve themes listed by `GET /concepts`, e.g. `theme:food_and_drink` for restaurants, cafés, bars and more. Combined with `concept` and further `theme`s by OR.","examples":[["theme:food_and_drink"]],"title":"Theme"},"description":"ID of one of the twelve themes listed by `GET /concepts`, e.g. `theme:food_and_drink` for restaurants, cafés, bars and more. Combined with `concept` and further `theme`s by OR."},{"name":"bbox","in":"query","required":false,"schema":{"type":"array","minItems":4,"maxItems":4,"items":{"type":"number"},"example":[8.8023,47.2108,8.8546,47.2383]},"description":"Search area as minLon,minLat,maxLon,maxLat in WGS84, e.g. 8.80,47.21,8.85,47.24","style":"form","explode":false},{"name":"point","in":"query","required":false,"schema":{"type":"array","minItems":2,"maxItems":2,"items":{"type":"number"},"example":[8.8164,47.2267]},"description":"Center of the radius search as lon,lat in WGS84, e.g. 8.8164,47.2267","style":"form","explode":false},{"name":"radius","in":"query","required":false,"schema":{"anyOf":[{"type":"number","maximum":50000,"exclusiveMinimum":0},{"type":"null"}],"description":"Radius in meters around `point`","title":"Radius"},"description":"Radius in meters around `point`"},{"name":"tag","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","maxLength":255},"maxItems":10},{"type":"null"}],"description":"Narrows the result down. Each `tag` is one condition on a column of `cadence_pois` (see `GET /layers`), or, for a key without a column of its own, on its `attributes`, e.g. `outdoor_seating` or `cuisine` (the keys are listed as `attributeKeys` in `GET /layers`):\n\n- `wheelchair=yes`: has exactly this value (in `attributes` one of the values separated by `;`, so `cuisine=pizza` matches `pizza;italian`)\n- `opening_hours`: the tag is present, whatever its value\n- `!website`: the tag is absent\n\nRepeat `tag` for several conditions; **all** must hold (AND).","title":"Tag"},"description":"Narrows the result down. Each `tag` is one condition on a column of `cadence_pois` (see `GET /layers`), or, for a key without a column of its own, on its `attributes`, e.g. `outdoor_seating` or `cuisine` (the keys are listed as `attributeKeys` in `GET /layers`):\n\n- `wheelchair=yes`: has exactly this value (in `attributes` one of the values separated by `;`, so `cuisine=pizza` matches `pizza;italian`)\n- `opening_hours`: the tag is present, whatever its value\n- `!website`: the tag is absent\n\nRepeat `tag` for several conditions; **all** must hold (AND).","examples":{"wheelchair":{"summary":"Wheelchair accessible","value":["wheelchair=yes"]},"both":{"summary":"Wheelchair accessible and with opening hours (AND)","value":["wheelchair=yes","opening_hours"]},"attribute":{"summary":"With outdoor seating (attribute)","value":["outdoor_seating=yes"]}}},{"name":"name","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":100},{"type":"null"}],"description":"Case-insensitive search for a part of the name","title":"Name"},"description":"Case-insensitive search for a part of the name"},{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"enum":["de","fr","it","en","gsw"],"type":"string"},{"type":"null"}],"description":"Language of `conceptLabels` (default English); `gsw` returns the German labels","title":"Lang"},"description":"Language of `conceptLabels` (default English); `gsw` returns the German labels"},{"name":"sort","in":"query","required":false,"schema":{"enum":["id","name","distance","taxonomy"],"type":"string","description":"Order of the features:\n- `id` (default): stable order for paging with `offset`\n- `name`: alphabetically by name, ignoring case and accents. Features with several names by their first one, features without name last\n- `distance`: nearest first, needs `point` + `radius`. Each feature carries `_distance_m`, the distance in meters from `point` to its nearest point.\n- `taxonomy`: by the most specific concept, the first of `concepts`: the concepts of one key stand together, each followed by its sub-concepts","default":"id","title":"Sort"},"description":"Order of the features:\n- `id` (default): stable order for paging with `offset`\n- `name`: alphabetically by name, ignoring case and accents. Features with several names by their first one, features without name last\n- `distance`: nearest first, needs `point` + `radius`. Each feature carries `_distance_m`, the distance in meters from `point` to its nearest point.\n- `taxonomy`: by the most specific concept, the first of `concepts`: the concepts of one key stand together, each followed by its sub-concepts"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"description":"Maximum number of returned features","default":50,"title":"Limit"},"description":"Maximum number of returned features"},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":0,"description":"Number of features to skip","default":0,"title":"Offset"},"description":"Number of features to skip"}],"responses":{"200":{"description":"Successful Response","content":{"application/geo+json":{"schema":{"$ref":"#/components/schemas/QueryFeatureCollection"}}}},"404":{"description":"The POI layer is not published (`UNKNOWN_LAYER`)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"Semantically invalid request (`UNKNOWN_CONCEPT`, `UNKNOWN_COLUMN`, `OUT_OF_COVERAGE`, `RADIUS_TOO_LARGE`, `AREA_TOO_LARGE`)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"502":{"description":"The metadata of the published layers is invalid (`UPSTREAM_ERROR`)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"The thesaurus or the layer is unavailable (`UPSTREAM_UNAVAILABLE`)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"504":{"description":"The query exceeded the time limit (`QUERY_TIMEOUT`)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"400":{"description":"Invalid request parameters (VALIDATION_ERROR)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected error (INTERNAL_ERROR)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/geocode":{"get":{"tags":["Geocoding"],"summary":"Resolve a place name to bounding box and center","description":"Resolves a place name via the geocoding client (GeoPy, default: self-hosted\nNominatim instance). Results are restricted to the coverage area\nSwitzerland. Frequent requests are cached.\n\n- `best` contains the most plausible candidate with `bbox` and `center`.\n- `candidates` contains all hits with distinguishing attributes (canton,\n  municipality, type). If further hits are distinct places of the same name\n  (e.g. \"Wil\", \"Rapperswil\"), `ambiguous` is `true` and the LLM or the user has\n  to decide.","operationId":"geocode","parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"\\S","description":"Place name, neighbourhood, municipality or address","examples":["Rapperswil"],"title":"Q"},"description":"Place name, neighbourhood, municipality or address"},{"name":"canton","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^[A-Z]{2}$"},{"type":"null"}],"description":"Restrict to a canton (ISO 3166-2 code without country prefix)","examples":["SG"],"title":"Canton"},"description":"Restrict to a canton (ISO 3166-2 code without country prefix)"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":20,"minimum":1,"description":"Maximum number of candidates","default":5,"title":"Limit"},"description":"Maximum number of candidates"},{"name":"lang","in":"query","required":false,"schema":{"anyOf":[{"enum":["de","fr","it","en"],"type":"string"},{"type":"null"}],"description":"Preferred language for display names","title":"Lang"},"description":"Preferred language for display names"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeocodeResponse"}}}},"404":{"description":"No place found within the coverage area (`PLACE_NOT_FOUND`)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"502":{"description":"The geocoding service returned an invalid response (`UPSTREAM_ERROR`)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"The geocoding service is unavailable (`UPSTREAM_UNAVAILABLE`)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"400":{"description":"Invalid request parameters (VALIDATION_ERROR)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected error (INTERNAL_ERROR)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/layers":{"get":{"tags":["Layers"],"summary":"List the published GeoParquet layers","description":"Returns all currently published GeoParquet layers with description, data\ntimestamp, columns, the keys in the column `attributes` (`attributeKeys`, only\n`cadence_pois`) and the URL of the file on the nginx server. The list is\nread from the manifest of the newest run, so new layers appear without code\nchanges.","operationId":"listLayers","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LayerList"}}}},"502":{"description":"The metadata of the published layers is invalid (`UPSTREAM_ERROR`)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"The metadata of the published layers could not be loaded (`UPSTREAM_UNAVAILABLE`)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected error (INTERNAL_ERROR)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/layers/{layerId}/features":{"get":{"tags":["Layers"],"summary":"Query the features of a single layer","description":"Queries the features of exactly one layer (e.g. POIs, addresses, buildings)\nwithin a search area and filters them by tags or name.\n\n**Search area**: exactly one of `bbox` or `point` + `radius`. Place names are often\nambiguous: resolve them with `/geocode` first and pass the `bbox` of the place you\nmean.\n\n**Conditions**: a feature is returned if it lies in the search area **and** one of\nthe `filter`s holds **and** all `tag`s hold **and** its name contains `name`.\nThe keys of `filter` and `tag` are the columns of the layer and, on\n`cadence_pois`, its `attributeKeys`, see `/layers`.\n\nExample: wheelchair accessible pizzerias and pizza takeaways, nearest first\n\n```\n?point=8.8164,47.2267&radius=1000\n&filter=[amenity=restaurant][cuisine=pizza]&filter=[amenity=fast_food][cuisine=pizza]\n&tag=wheelchair=yes&sort=distance\n```\n\nThe features are returned as GeoJSON (RFC 7946). `metadata` carries the search\narea used, the number of hits, whether the result was truncated, the data\ntimestamp, the thesaurus version and the attribution.","operationId":"getLayerFeatures","parameters":[{"name":"layerId","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$","description":"ID of a published layer (see `/layers`)","examples":["pois"],"title":"Layerid"},"description":"ID of a published layer (see `/layers`)"},{"name":"bbox","in":"query","required":false,"schema":{"type":"array","minItems":4,"maxItems":4,"items":{"type":"number"},"example":[8.8023,47.2108,8.8546,47.2383]},"description":"Search area as minLon,minLat,maxLon,maxLat in WGS84, e.g. 8.80,47.21,8.85,47.24","style":"form","explode":false},{"name":"point","in":"query","required":false,"schema":{"type":"array","minItems":2,"maxItems":2,"items":{"type":"number"},"example":[8.8164,47.2267]},"description":"Center of the radius search as lon,lat in WGS84, e.g. 8.8164,47.2267","style":"form","explode":false},{"name":"radius","in":"query","required":false,"schema":{"anyOf":[{"type":"number","maximum":50000,"exclusiveMinimum":0},{"type":"null"}],"description":"Radius in meters around `point`","title":"Radius"},"description":"Radius in meters around `point`"},{"name":"filter","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","maxLength":500,"pattern":"^(\\[[^=\\[\\]]+(=[^\\[\\]]+)?\\])+$"},"maxItems":20},{"type":"null"}],"description":"**What** to search, in the notation of the OSM-POI-Thesaurus. Each block in square brackets is one tag; all blocks of a filter must hold:\n\n- `[amenity=restaurant]`: restaurants\n- `[amenity=restaurant][cuisine=pizza]`: restaurants serving pizza\n- `[cuisine]`: anything with a cuisine, whatever its value\n\nRepeat `filter` for alternatives: a feature matches if **one** of the filters holds (OR). `filter=[amenity=restaurant][cuisine=pizza]&filter=[amenity=fast_food][cuisine=pizza]` finds pizzerias and pizza takeaways.\n\nThe keys are the columns of the layer and, on `cadence_pois`, its `attributeKeys` (`GET /layers`). `POST /tagfinder/resolve` returns the filters of a search term in its field `filter`.","title":"Filter"},"description":"**What** to search, in the notation of the OSM-POI-Thesaurus. Each block in square brackets is one tag; all blocks of a filter must hold:\n\n- `[amenity=restaurant]`: restaurants\n- `[amenity=restaurant][cuisine=pizza]`: restaurants serving pizza\n- `[cuisine]`: anything with a cuisine, whatever its value\n\nRepeat `filter` for alternatives: a feature matches if **one** of the filters holds (OR). `filter=[amenity=restaurant][cuisine=pizza]&filter=[amenity=fast_food][cuisine=pizza]` finds pizzerias and pizza takeaways.\n\nThe keys are the columns of the layer and, on `cadence_pois`, its `attributeKeys` (`GET /layers`). `POST /tagfinder/resolve` returns the filters of a search term in its field `filter`.","examples":{"pizzerias":{"summary":"Pizzerias","value":["[amenity=restaurant][cuisine=pizza]"]},"pizza":{"summary":"Pizzerias or pizza takeaways (OR)","value":["[amenity=restaurant][cuisine=pizza]","[amenity=fast_food][cuisine=pizza]"]},"cuisine":{"summary":"Anything with a cuisine","value":["[cuisine]"]}}},{"name":"tag","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","maxLength":255},"maxItems":10},{"type":"null"}],"description":"Narrows the result down. Each `tag` is one condition:\n\n- `wheelchair=yes`: has exactly this value\n- `wheelchair`: the tag is present, whatever its value\n- `!opening_hours`: the tag is absent\n\nRepeat `tag` for several conditions; **all** must hold (AND). Every `tag` applies to every `filter`: `(filter 1 OR filter 2) AND tag 1 AND tag 2`.\n\nThe keys are the columns of the layer and, on `cadence_pois`, its `attributeKeys` (`GET /layers`).","title":"Tag"},"description":"Narrows the result down. Each `tag` is one condition:\n\n- `wheelchair=yes`: has exactly this value\n- `wheelchair`: the tag is present, whatever its value\n- `!opening_hours`: the tag is absent\n\nRepeat `tag` for several conditions; **all** must hold (AND). Every `tag` applies to every `filter`: `(filter 1 OR filter 2) AND tag 1 AND tag 2`.\n\nThe keys are the columns of the layer and, on `cadence_pois`, its `attributeKeys` (`GET /layers`).","examples":{"wheelchair":{"summary":"Wheelchair accessible","value":["wheelchair=yes"]},"no_opening_hours":{"summary":"Without opening hours","value":["!opening_hours"]},"both":{"summary":"Wheelchair accessible and without opening hours (AND)","value":["wheelchair=yes","!opening_hours"]}}},{"name":"name","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":100},{"type":"null"}],"description":"Case-insensitive search for a part of the name. For layers with several names per feature, each name is searched on its own.","title":"Name"},"description":"Case-insensitive search for a part of the name. For layers with several names per feature, each name is searched on its own."},{"name":"sort","in":"query","required":false,"schema":{"enum":["id","name","distance"],"type":"string","description":"Order of the features:\n- `id` (default): stable order for paging with `offset`\n- `name`: alphabetically by name, ignoring case and accents. Features with several names by their first one, features without name last\n- `distance`: nearest first, needs `point` + `radius`. Each feature carries `_distance_m`, the distance in meters from `point` to its nearest point.","default":"id","title":"Sort"},"description":"Order of the features:\n- `id` (default): stable order for paging with `offset`\n- `name`: alphabetically by name, ignoring case and accents. Features with several names by their first one, features without name last\n- `distance`: nearest first, needs `point` + `radius`. Each feature carries `_distance_m`, the distance in meters from `point` to its nearest point."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"description":"Maximum number of returned features","default":50,"title":"Limit"},"description":"Maximum number of returned features"},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":0,"description":"Number of features to skip","default":0,"title":"Offset"},"description":"Number of features to skip"}],"responses":{"200":{"description":"Successful Response","content":{"application/geo+json":{"schema":{"$ref":"#/components/schemas/QueryFeatureCollection"}}}},"404":{"description":"Unknown layer (`UNKNOWN_LAYER`)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"Semantically invalid request (`OUT_OF_COVERAGE`, `RADIUS_TOO_LARGE`, `UNKNOWN_COLUMN`, `INVALID_TAG_FILTER`, `AREA_TOO_LARGE`)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"502":{"description":"The metadata of the published layers is invalid (`UPSTREAM_ERROR`)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"The layer is unavailable (`UPSTREAM_UNAVAILABLE`)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"504":{"description":"The query exceeded the time limit (`QUERY_TIMEOUT`)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"400":{"description":"Invalid request parameters (VALIDATION_ERROR)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected error (INTERNAL_ERROR)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/metadata":{"get":{"tags":["Metadata"],"summary":"Data freshness, provenance and attribution of the published run","description":"Returns timestamp of the OSM extract, source, pipeline version, version of the\nOSM thesaurus, license and attribution of the published run, which all its layers\nshare. `stale` is `true` if the run is older than 8 days.","operationId":"getMetadata","responses":{"200":{"description":"Successful Response","headers":{"Last-Modified":{"description":"Time of the last publication","schema":{"type":"string"}},"Cache-Control":{"description":"Always `no-cache`: `ageDays` and `stale` change over time","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MetadataResponse"}}}},"502":{"description":"The metadata of the published layers is invalid (`UPSTREAM_ERROR`)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"The metadata of the published layers could not be loaded (`UPSTREAM_UNAVAILABLE`)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected error (INTERNAL_ERROR)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/health":{"get":{"tags":["health"],"summary":"Health check","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthResponse"}}}},"500":{"description":"Unexpected error (INTERNAL_ERROR)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}}},"components":{"schemas":{"Attribution":{"properties":{"text":{"type":"string","title":"Text"},"license":{"type":"string","title":"License"},"licenseUrl":{"type":"string","title":"Licenseurl"}},"type":"object","required":["text","license","licenseUrl"],"title":"Attribution","description":"Mandatory attribution according to ODbL."},"ConceptDetail":{"properties":{"id":{"type":"string","title":"Id","examples":["amenity-restaurant"]},"uri":{"type":"string","title":"Uri","description":"IRI of the SKOS concept"},"prefLabels":{"additionalProperties":{"type":"string"},"propertyNames":{"enum":["de","fr","it","en"]},"type":"object","title":"Preflabels"},"notations":{"items":{"type":"string"},"type":"array","title":"Notations","description":"Tag filters of the concept; empty for themes"},"taxonomyPath":{"items":{"type":"string"},"type":"array","title":"Taxonomypath","description":"IDs from the theme (`theme:<id>`) down to this concept"},"altLabels":{"additionalProperties":{"items":{"type":"string"},"type":"array"},"propertyNames":{"enum":["de","fr","it","en"]},"type":"object","title":"Altlabels"},"hiddenLabels":{"additionalProperties":{"items":{"type":"string"},"type":"array"},"propertyNames":{"enum":["de","fr","it","en"]},"type":"object","title":"Hiddenlabels"},"definition":{"additionalProperties":{"type":"string"},"propertyNames":{"enum":["de","fr","it","en"]},"type":"object","title":"Definition"},"themes":{"items":{"type":"string"},"type":"array","title":"Themes","description":"IDs of the themes the concept belongs to (`theme:<id>`)"},"wikidata":{"items":{"type":"string"},"type":"array","title":"Wikidata","description":"Linked Wikidata items","examples":[["Q11707"]]},"countAll":{"type":"integer","title":"Countall","description":"Usage frequency of the tags according to Taginfo; missing if Taginfo does not count them"},"attributions":{"items":{"$ref":"#/components/schemas/ContentAttribution"},"type":"array","title":"Attributions","description":"Present if the response contains usage numbers or a definition"},"broader":{"items":{"$ref":"#/components/schemas/ConceptSummary"},"type":"array","title":"Broader"},"narrower":{"items":{"$ref":"#/components/schemas/ConceptSummary"},"type":"array","title":"Narrower"},"related":{"items":{"$ref":"#/components/schemas/ConceptSummary"},"type":"array","title":"Related"},"thesaurusVersion":{"type":"string","title":"Thesaurusversion","description":"Version of the OSM-POI-Thesaurus that answered"}},"type":"object","required":["id","uri","prefLabels","notations","taxonomyPath","altLabels","hiddenLabels","definition","themes","wikidata","broader","narrower","related"],"title":"ConceptDetail","description":"A concept or theme with its labels, tag filters and neighbours in the\nhierarchy. A theme has no tag filters, no broader concepts and no themes."},"ConceptSummary":{"properties":{"id":{"type":"string","title":"Id","examples":["amenity-restaurant"]},"uri":{"type":"string","title":"Uri","description":"IRI of the SKOS concept"},"prefLabels":{"additionalProperties":{"type":"string"},"propertyNames":{"enum":["de","fr","it","en"]},"type":"object","title":"Preflabels"},"notations":{"items":{"type":"string"},"type":"array","title":"Notations","description":"Tag filters of the concept; empty for themes"},"taxonomyPath":{"items":{"type":"string"},"type":"array","title":"Taxonomypath","description":"IDs from the theme (`theme:<id>`) down to this concept"}},"type":"object","required":["id","uri","prefLabels","notations","taxonomyPath"],"title":"ConceptSummary"},"ContentAttribution":{"properties":{"content":{"type":"string","enum":["usage","definition"],"title":"Content"},"text":{"type":"string","title":"Text","examples":["© OpenStreetMap Wiki contributors"]},"license":{"type":"string","enum":["ODbL-1.0","CC-BY-SA-2.0"],"title":"License"},"licenseUrl":{"type":"string","title":"Licenseurl"},"sourceUrl":{"type":"string","title":"Sourceurl","description":"The OSM copyright page for usage numbers, the data item for definitions"}},"type":"object","required":["content","text","license","licenseUrl","sourceUrl"],"title":"ContentAttribution"},"ElementUsage":{"properties":{"count":{"type":"integer","title":"Count","description":"Number of elements according to Taginfo"},"use":{"type":"boolean","title":"Use","description":"Whether the presets allow this element type"}},"type":"object","required":["count","use"],"title":"ElementUsage","description":"Usage of a tag for one OSM element type (TagFinder field)."},"GeocodeResponse":{"properties":{"query":{"type":"string","title":"Query"},"ambiguous":{"type":"boolean","title":"Ambiguous","description":"True if further candidates are distinct places of the same name"},"best":{"$ref":"#/components/schemas/Place","description":"Most plausible candidate"},"candidates":{"items":{"$ref":"#/components/schemas/Place"},"type":"array","title":"Candidates"},"provider":{"type":"string","title":"Provider","description":"Geocoding service connected via GeoPy","examples":["nominatim"]},"attribution":{"$ref":"#/components/schemas/Attribution"}},"type":"object","required":["query","ambiguous","best","candidates","provider","attribution"],"title":"GeocodeResponse"},"HealthResponse":{"properties":{"status":{"type":"string","title":"Status"},"env":{"type":"string","title":"Env"},"version":{"type":"string","title":"Version"}},"type":"object","required":["status","env","version"],"title":"HealthResponse"},"LayerColumn":{"properties":{"name":{"type":"string","title":"Name","examples":["addr:street"]},"type":{"type":"string","enum":["string","integer","double","boolean","timestamp","date","map","list","struct","geometry"],"title":"Type"}},"type":"object","required":["name","type"],"title":"LayerColumn"},"LayerList":{"properties":{"items":{"items":{"$ref":"#/components/schemas/LayerSummary"},"type":"array","title":"Items"},"attribution":{"$ref":"#/components/schemas/Attribution"}},"type":"object","required":["items","attribution"],"title":"LayerList"},"LayerSummary":{"properties":{"id":{"type":"string","title":"Id","description":"ID of the layer","examples":["pois"]},"description":{"type":"string","title":"Description","description":"Content of the layer, from the comment header of its SQL file"},"url":{"type":"string","title":"Url","description":"GeoParquet file in the newest published run, supports HTTP range requests. Files of a run never change.","examples":["http://vm-0.i-ost.ch/parquet/run_20261025_020000/pois.parquet"]},"dataTimestamp":{"type":"string","format":"date-time","title":"Datatimestamp","description":"Timestamp of the underlying OSM extract"},"columns":{"items":{"$ref":"#/components/schemas/LayerColumn"},"type":"array","title":"Columns","description":"Columns of the layer, usable as `tag` keys"},"attributeKeys":{"items":{"type":"string"},"type":"array","title":"Attributekeys","description":"Keys in the column `attributes` of the layer, usable as `tag` keys as well (`cadence_pois` only)"}},"type":"object","required":["id","description","url","dataTimestamp","columns"],"title":"LayerSummary"},"ManifestLayer":{"properties":{"id":{"type":"string","title":"Id","examples":["pois"]},"title":{"type":"string","title":"Title"},"description":{"type":"string","title":"Description","description":"From the comment header of its SQL file"},"url":{"type":"string","title":"Url","description":"GeoParquet file of the layer in this run","examples":["http://vm-0.i-ost.ch/parquet/run_20261025_020000/pois.parquet"]}},"type":"object","required":["id","title","description","url"],"title":"ManifestLayer","description":"A layer of the run. Its columns are listed by `/layers`."},"MatchedLabel":{"properties":{"text":{"type":"string","title":"Text"},"language":{"type":"string","title":"Language"},"kind":{"type":"string","title":"Kind"},"match":{"type":"string","title":"Match"}},"type":"object","required":["text","language","kind","match"],"title":"MatchedLabel"},"MetadataResponse":{"properties":{"osmTimestamp":{"type":"string","format":"date-time","title":"Osmtimestamp","description":"Timestamp of the underlying OSM extract"},"source":{"type":"string","title":"Source","description":"Source of the PBF extract (RB3)","examples":["https://planet.osm.ch/switzerland-exact.osm.pbf"]},"pipelineVersion":{"type":"string","title":"Pipelineversion","examples":["0.1.0"]},"thesaurusVersion":{"type":"string","title":"Thesaurusversion","description":"Version of the OSM-POI-Thesaurus the run classified its POIs with. Missing if the run names none"},"publishedAt":{"type":"string","format":"date-time","title":"Publishedat","description":"Publication time of the run"},"ageDays":{"type":"number","title":"Agedays","description":"Age of the published run in days"},"layers":{"items":{"$ref":"#/components/schemas/ManifestLayer"},"type":"array","title":"Layers"},"attribution":{"$ref":"#/components/schemas/Attribution"},"stale":{"type":"boolean","title":"Stale","description":"True if the run is older than 8 days","readOnly":true}},"type":"object","required":["osmTimestamp","source","pipelineVersion","publishedAt","ageDays","layers","attribution","stale"],"title":"MetadataResponse"},"OsmRef":{"properties":{"type":{"type":"string","enum":["node","way","relation"],"title":"Type"},"id":{"type":"integer","title":"Id"}},"type":"object","required":["type","id"],"title":"OsmRef"},"Place":{"properties":{"id":{"type":"string","title":"Id","description":"Stable ID (`<provider>:<OSM type letter><OSM ID>`)","examples":["nominatim:R1683614"]},"name":{"type":"string","title":"Name"},"displayName":{"type":"string","title":"Displayname","description":"Full, distinguishing name"},"type":{"type":"string","enum":["country","canton","district","municipality","city","town","village","hamlet","suburb","quarter","neighbourhood","locality","street","address","poi","other"],"title":"Type"},"municipality":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Municipality"},"canton":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Canton","examples":["SG"]},"countryCode":{"type":"string","title":"Countrycode","examples":["CH"]},"center":{"prefixItems":[{"type":"number"},{"type":"number"}],"type":"array","maxItems":2,"minItems":2,"title":"Center","description":"[lon, lat] in WGS84"},"bbox":{"prefixItems":[{"type":"number"},{"type":"number"},{"type":"number"},{"type":"number"}],"type":"array","maxItems":4,"minItems":4,"title":"Bbox","description":"[minLon, minLat, maxLon, maxLat] in WGS84"},"score":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"null"}],"title":"Score","description":"Normalized plausibility from the geocoder, null if the geocoding service has none (e.g. Photon). The candidates are ordered by plausibility either way."},"osm":{"$ref":"#/components/schemas/OsmRef"}},"type":"object","required":["id","name","displayName","type","countryCode","center","bbox","osm"],"title":"Place"},"QueryFeature":{"properties":{"type":{"type":"string","const":"Feature","title":"Type","default":"Feature"},"id":{"type":"string","title":"Id","examples":["pois/n123456789"]},"geometry":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Geometry"},"properties":{"additionalProperties":true,"type":"object","title":"Properties"}},"type":"object","required":["id","geometry","properties"],"title":"QueryFeature","description":"GeoJSON feature (RFC 7946) with the reserved property `_layer`."},"QueryFeatureCollection":{"properties":{"type":{"type":"string","const":"FeatureCollection","title":"Type","default":"FeatureCollection"},"features":{"items":{"$ref":"#/components/schemas/QueryFeature"},"type":"array","title":"Features"},"metadata":{"$ref":"#/components/schemas/QueryMetadata"}},"type":"object","required":["features","metadata"],"title":"QueryFeatureCollection","description":"GeoJSON FeatureCollection (RFC 7946); `metadata` is a foreign member (§6.1)."},"QueryMetadata":{"properties":{"area":{"$ref":"#/components/schemas/ResolvedArea"},"layer":{"type":"string","title":"Layer"},"totalCount":{"type":"integer","title":"Totalcount","description":"Number of hits before truncation"},"returned":{"type":"integer","title":"Returned"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"},"truncated":{"type":"boolean","title":"Truncated","description":"True if `totalCount > offset + returned`"},"nextOffset":{"type":"integer","title":"Nextoffset","description":"Offset of the next page if truncated"},"dataTimestamp":{"type":"string","format":"date-time","title":"Datatimestamp","description":"Timestamp of the OSM extract of the layer"},"thesaurusVersion":{"type":"string","title":"Thesaurusversion","description":"Version of the OSM-POI-Thesaurus the run of the layer was classified with. Missing if the run names none"},"attribution":{"$ref":"#/components/schemas/Attribution"}},"type":"object","required":["area","layer","totalCount","returned","limit","offset","truncated","dataTimestamp","attribution"],"title":"QueryMetadata"},"ResolvedArea":{"properties":{"type":{"type":"string","enum":["bbox","circle"],"title":"Type"},"bbox":{"prefixItems":[{"type":"number"},{"type":"number"},{"type":"number"},{"type":"number"}],"type":"array","maxItems":4,"minItems":4,"title":"Bbox","description":"[minLon, minLat, maxLon, maxLat] in WGS84"},"center":{"prefixItems":[{"type":"number"},{"type":"number"}],"type":"array","maxItems":2,"minItems":2,"title":"Center","description":"[lon, lat] of a circle"},"radiusMeters":{"type":"number","title":"Radiusmeters"}},"type":"object","required":["type","bbox"],"title":"ResolvedArea","description":"Search area actually used."},"SearchMeta":{"properties":{"score":{"type":"number","minimum":0.0,"title":"Score"},"termPrefLabel":{"items":{"type":"string"},"type":"array","title":"Termpreflabel"},"termAltLabel":{"items":{"type":"string"},"type":"array","title":"Termaltlabel"}},"type":"object","required":["score"],"title":"SearchMeta","description":"Relevance and the label fields that matched the search term."},"TagConcepts":{"properties":{"concepts":{"items":{"$ref":"#/components/schemas/ConceptSummary"},"type":"array","title":"Concepts","description":"All concepts whose tag filter contains the tag; the fallback concept of the key (e.g. `[shop]`) if none does; empty if there is none"}},"type":"object","required":["concepts"],"title":"TagConcepts","description":"`/tag` for a tag without a concept of its own: only the concepts containing it,\nan empty array if there are none."},"TagFilterResponse":{"properties":{"conceptId":{"type":"string","title":"Conceptid","examples":["amenity-parking"]},"filter":{"type":"string","title":"Filter","examples":["[amenity=parking]"]},"tags":{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"null"}]},"type":"object","title":"Tags","description":"Key and value of every tag; a key-only tag (any value) is null"},"taxonomyPath":{"items":{"type":"string"},"type":"array","title":"Taxonomypath","description":"From the first theme down to the concept","examples":[["theme:transport","amenity-parking"]]},"score":{"type":"number","title":"Score"},"matchedLabel":{"$ref":"#/components/schemas/MatchedLabel"},"labels":{"additionalProperties":{"type":"string"},"type":"object","title":"Labels"},"concept":{"type":"string","title":"Concept","description":"IRI of the concept"}},"type":"object","required":["conceptId","filter","tags","taxonomyPath","score","matchedLabel","labels","concept"],"title":"TagFilterResponse"},"TagFinderLink":{"properties":{"label":{"type":"string","title":"Label","description":"`key=value`, or `key=*` for a key","examples":["leisure=picnic_table"]},"link":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Link","description":"Link to the OSM wiki page of the tag","examples":["https://wiki.openstreetmap.org/wiki/Tag:leisure%3Dpicnic_table"]}},"type":"object","required":["label","link"],"title":"TagFinderLink","description":"A tag related to the concept, from the data item of its tag in the OSM wiki."},"TagFinderSearchItem":{"properties":{"subject":{"type":"string","title":"Subject","description":"Link to the OSM wiki page of the (most specific) tag"},"isKey":{"type":"boolean","title":"Iskey"},"isTag":{"type":"boolean","title":"Istag"},"prefLabel":{"type":"string","title":"Preflabel","description":"`key`, `key=value` or, for concepts with several tags, the tag filter"},"depiction":{"type":"null","title":"Depiction","description":"Not filled by the platform"},"termRelated":{"additionalProperties":{"items":{"type":"string"},"type":"array"},"propertyNames":{"enum":["de","fr","it","en"]},"type":"object","title":"Termrelated"},"scopeNote":{"additionalProperties":{"type":"string"},"propertyNames":{"enum":["de","fr","it","en"]},"type":"object","title":"Scopenote"},"countAll":{"type":"integer","title":"Countall","description":"Sum of the counts of nodes, ways and relations"},"node":{"$ref":"#/components/schemas/ElementUsage"},"way":{"$ref":"#/components/schemas/ElementUsage"},"area":{"$ref":"#/components/schemas/ElementUsage","description":"`count` is always 0 as with TagFinder: Taginfo counts no areas, they are closed ways or multipolygon relations and counted as such"},"relation":{"$ref":"#/components/schemas/ElementUsage"},"implies":{"items":{"$ref":"#/components/schemas/TagFinderLink"},"type":"array","title":"Implies","description":"Tags the tag implies (data item property P45 \"implies\")"},"combines":{"items":{"$ref":"#/components/schemas/TagFinderLink"},"type":"array","title":"Combines","description":"Tags often combined with the tag (data item property P46 \"combination\")"},"links":{"items":{"$ref":"#/components/schemas/TagFinderLink"},"type":"array","title":"Links","description":"Tags that differ from but are often confused with the tag (data item property P18 \"different from\", seeAlso in the wiki)"},"attributions":{"items":{"$ref":"#/components/schemas/ContentAttribution"},"type":"array","title":"Attributions","description":"Present if the response contains usage numbers or a definition"},"concept":{"$ref":"#/components/schemas/ConceptSummary"},"searchMeta":{"$ref":"#/components/schemas/SearchMeta"}},"type":"object","required":["subject","isKey","isTag","prefLabel","termRelated","scopeNote","countAll","node","way","area","relation","concept","searchMeta"],"title":"TagFinderSearchItem"},"TagLookup":{"properties":{"subject":{"type":"string","title":"Subject","description":"Link to the OSM wiki page of the (most specific) tag"},"isKey":{"type":"boolean","title":"Iskey"},"isTag":{"type":"boolean","title":"Istag"},"prefLabel":{"type":"string","title":"Preflabel","description":"`key`, `key=value` or, for concepts with several tags, the tag filter"},"depiction":{"type":"null","title":"Depiction","description":"Not filled by the platform"},"termRelated":{"additionalProperties":{"items":{"type":"string"},"type":"array"},"propertyNames":{"enum":["de","fr","it","en"]},"type":"object","title":"Termrelated"},"scopeNote":{"additionalProperties":{"type":"string"},"propertyNames":{"enum":["de","fr","it","en"]},"type":"object","title":"Scopenote"},"countAll":{"type":"integer","title":"Countall","description":"Sum of the counts of nodes, ways and relations"},"node":{"$ref":"#/components/schemas/ElementUsage"},"way":{"$ref":"#/components/schemas/ElementUsage"},"area":{"$ref":"#/components/schemas/ElementUsage","description":"`count` is always 0 as with TagFinder: Taginfo counts no areas, they are closed ways or multipolygon relations and counted as such"},"relation":{"$ref":"#/components/schemas/ElementUsage"},"implies":{"items":{"$ref":"#/components/schemas/TagFinderLink"},"type":"array","title":"Implies","description":"Tags the tag implies (data item property P45 \"implies\")"},"combines":{"items":{"$ref":"#/components/schemas/TagFinderLink"},"type":"array","title":"Combines","description":"Tags often combined with the tag (data item property P46 \"combination\")"},"links":{"items":{"$ref":"#/components/schemas/TagFinderLink"},"type":"array","title":"Links","description":"Tags that differ from but are often confused with the tag (data item property P18 \"different from\", seeAlso in the wiki)"},"attributions":{"items":{"$ref":"#/components/schemas/ContentAttribution"},"type":"array","title":"Attributions","description":"Present if the response contains usage numbers or a definition"},"concept":{"$ref":"#/components/schemas/ConceptSummary"},"concepts":{"items":{"$ref":"#/components/schemas/ConceptSummary"},"type":"array","title":"Concepts","description":"All concepts whose tag filter contains the tag; the fallback concept of the key (e.g. `[shop]`) if none does"}},"type":"object","required":["subject","isKey","isTag","prefLabel","termRelated","scopeNote","countAll","node","way","area","relation","concept","concepts"],"title":"TagLookup","description":"`/tag` for a tag the thesaurus has a concept for: the TagFinder description of\nthis concept and all concepts whose tag filter contains the tag."},"TagResolveRequest":{"properties":{"terms":{"items":{"type":"string"},"type":"array","maxItems":20,"minItems":1,"title":"Terms"},"limit":{"type":"integer","maximum":50.0,"minimum":1.0,"title":"Limit","default":10}},"type":"object","required":["terms"],"title":"TagResolveRequest"},"TagResolveResponse":{"properties":{"terms":{"items":{"$ref":"#/components/schemas/TermResult"},"type":"array","title":"Terms","description":"One entry per requested term"},"thesaurusVersion":{"type":"string","title":"Thesaurusversion","description":"Version of the OSM-POI-Thesaurus the terms were resolved with"}},"type":"object","required":["terms"],"title":"TagResolveResponse"},"TermResult":{"properties":{"term":{"type":"string","title":"Term"},"results":{"items":{"$ref":"#/components/schemas/TagFilterResponse"},"type":"array","title":"Results"}},"type":"object","required":["term","results"],"title":"TermResult"},"TermsResponse":{"properties":{"termRelated":{"additionalProperties":{"items":{"type":"string"},"type":"array"},"propertyNames":{"enum":["de","fr","it","en"]},"type":"object","title":"Termrelated"},"termBroader":{"additionalProperties":{"items":{"type":"string"},"type":"array"},"propertyNames":{"enum":["de","fr","it","en"]},"type":"object","title":"Termbroader"},"termNarrower":{"additionalProperties":{"items":{"type":"string"},"type":"array"},"propertyNames":{"enum":["de","fr","it","en"]},"type":"object","title":"Termnarrower"}},"type":"object","required":["termRelated","termBroader","termNarrower"],"title":"TermsResponse","description":"Preferred labels of the related, broader and narrower concepts per language."},"ThemeList":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ConceptSummary"},"type":"array","title":"Items","description":"The themes, sorted by rank"},"thesaurusVersion":{"type":"string","title":"Thesaurusversion","description":"Version of the OSM-POI-Thesaurus that answered"}},"type":"object","required":["items"],"title":"ThemeList"},"ErrorCode":{"enum":["VALIDATION_ERROR","OUT_OF_COVERAGE","RADIUS_TOO_LARGE","AREA_TOO_LARGE","UNKNOWN_LAYER","UNKNOWN_CONCEPT","INVALID_TAG_FILTER","UNKNOWN_TAG_KEY","UNKNOWN_COLUMN","TERM_UNKNOWN","TERM_AMBIGUOUS","PLACE_NOT_FOUND","PLACE_AMBIGUOUS","RATE_LIMITED","QUERY_TIMEOUT","UPSTREAM_ERROR","UPSTREAM_UNAVAILABLE","INTERNAL_ERROR"],"title":"ErrorCode","type":"string"},"FieldError":{"properties":{"field":{"description":"Name of the invalid parameter","examples":["bbox"],"title":"Field","type":"string"},"message":{"title":"Message","type":"string"},"expected":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Expected"}},"required":["field","message"],"title":"FieldError","type":"object"},"Problem":{"description":"Error object according to RFC 9457 (Problem Details), extended by `code`, `hint`\nand `errors`.","properties":{"title":{"title":"Title","type":"string"},"status":{"maximum":599,"minimum":400,"title":"Status","type":"integer"},"code":{"$ref":"#/components/schemas/ErrorCode"},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Detail"},"hint":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"description":"Actionable hint on how to correct the request","title":"Hint"},"errors":{"anyOf":[{"items":{"$ref":"#/components/schemas/FieldError"},"type":"array"},{"type":"null"}],"default":null,"title":"Errors"},"type":{"readOnly":true,"title":"Type","type":"string"}},"required":["title","status","code","type"],"title":"Problem","type":"object"}}},"servers":[{"url":"/api"}]}