Raw schema
{
"type": "object",
"properties": {
"theme": {
"type": "string",
"enum": [
"buildings",
"places",
"roads",
"addresses",
"divisions",
"landuse",
"pois",
"waterways",
"water_areas",
"power",
"boundaries",
"railways",
"routes",
"transit_stops",
"protected_areas"
],
"description": "The data layer."
},
"area": {
"type": "object",
"description": "The area: a bbox, or a place (name, address or coordinates) with an optional radius in metres. The place the user asks about, not the user's own location.",
"properties": {
"bbox": {
"type": "array",
"items": {
"type": "number"
},
"minItems": 4,
"maxItems": 4,
"description": "[west, south, east, north] in decimal degrees (WGS 84).",
"examples": [
[
6.12,
45.89,
6.14,
45.91
]
]
},
"place": {
"description": "A place name or address, or a point.",
"anyOf": [
{
"type": "string",
"examples": [
"Annecy, France"
]
},
{
"type": "object",
"properties": {
"latitude": {
"type": "number"
},
"longitude": {
"type": "number"
}
},
"required": [
"latitude",
"longitude"
]
}
]
},
"radius_m": {
"type": "number",
"minimum": 1,
"maximum": 100000,
"description": "Radius around the place in metres.",
"examples": [
1000
]
}
},
"examples": [
{
"place": "Lyon Part-Dieu",
"radius_m": 1000
},
{
"bbox": [
2.34,
48.856,
2.35,
48.862
]
}
]
},
"formats": {
"type": "array",
"items": {
"type": "string",
"enum": [
"geojson",
"kml",
"shapefile",
"csv"
]
},
"default": [
"geojson"
],
"description": "Download formats."
},
"kind": {
"description": "Keep only some kinds of feature, matched against their OpenStreetMap tag value in English: pharmacy, school, supermarket, restaurant, hospital, farmland, forest, vineyard. One kind, or several in one call ([\"forest\", \"meadow\", \"grass\"]). Leave out for all of the theme.",
"anyOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
},
"maxItems": 10
}
]
}
},
"required": [
"theme",
"area"
],
"examples": [
{
"theme": "buildings",
"area": {
"bbox": [
2.34,
48.857,
2.343,
48.859
]
},
"formats": [
"shapefile"
]
},
{
"theme": "pois",
"area": {
"place": "Annecy",
"radius_m": 500
},
"kind": "pharmacy"
}
]
}