addedInput schema / examples
Added value: +[
+ {
+ "east": 2.4,
+ "north": 48.9,
+ "south": 48.8,
+ "tag": "leisure=park",
+ "west": 2.2
+ },
+ {
+ "east": -73.9,
+ "limit": 100,
+ "north": 40.8,
+ "south": 40.7,
+ "tag": "amenity=hospital",
+ "west": -74
+ }
+]
changedOutput schema / (root)
Previous value: -nullNew value: +{
+ "properties": {
+ "bbox": {
+ "description": "Bounding box coordinates",
+ "properties": {
+ "east": {
+ "description": "Maximum longitude",
+ "type": "number"
+ },
+ "north": {
+ "description": "Maximum latitude",
+ "type": "number"
+ },
+ "south": {
+ "description": "Minimum latitude",
+ "type": "number"
+ },
+ "west": {
+ "description": "Minimum longitude",
+ "type": "number"
+ }
+ },
+ "required": [
+ "south",
+ "west",
+ "north",
+ "east"
+ ],
+ "type": "object"
+ },
+ "count": {
+ "description": "Number of places found",
+ "type": "number"
+ },
+ "elements": {
+ "description": "Array of place elements",
+ "items": {
+ "properties": {
+ "id": {
+ "description": "OSM element ID",
+ "type": "number"
+ },
+ "latitude": {
+ "description": "Latitude coordinate or null if unavailable",
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "longitude": {
+ "description": "Longitude coordinate or null if unavailable",
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "name": {
+ "description": "OSM name tag value or null",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "osm_url": {
+ "description": "Direct link to element on OpenStreetMap",
+ "type": "string"
+ },
+ "tags": {
+ "description": "All OSM tags as key-value pairs",
+ "type": "object"
+ },
+ "type": {
+ "description": "OSM element type",
+ "enum": [
+ "node",
+ "way",
+ "relation"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "id",
+ "osm_url",
+ "latitude",
+ "longitude",
+ "name",
+ "tags"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "tag": {
+ "description": "OSM tag filter used",
+ "type": "string"
+ }
+ },
+ "required": [
+ "bbox",
+ "tag",
+ "count",
+ "elements"
+ ],
+ "type": "object"
+}