addedInput schema / examples
Added value: +[
+ {
+ "latitude": 48.8566,
+ "longitude": 2.3522,
+ "radius_m": 500,
+ "tag": "amenity=cafe"
+ },
+ {
+ "latitude": 51.5074,
+ "limit": 50,
+ "longitude": -0.1278,
+ "radius_m": 2000,
+ "tag": "shop=bakery"
+ }
+]
changedOutput schema / (root)
Previous value: -nullNew value: +{
+ "properties": {
+ "center": {
+ "description": "Search center coordinates",
+ "properties": {
+ "latitude": {
+ "description": "Center latitude",
+ "type": "number"
+ },
+ "longitude": {
+ "description": "Center longitude",
+ "type": "number"
+ }
+ },
+ "required": [
+ "latitude",
+ "longitude"
+ ],
+ "type": "object"
+ },
+ "count": {
+ "description": "Number of POIs found",
+ "type": "number"
+ },
+ "elements": {
+ "description": "Array of POI 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"
+ },
+ "radius_m": {
+ "description": "Search radius in metres",
+ "type": "number"
+ },
+ "tag": {
+ "description": "OSM tag filter used",
+ "type": "string"
+ }
+ },
+ "required": [
+ "center",
+ "radius_m",
+ "tag",
+ "count",
+ "elements"
+ ],
+ "type": "object"
+}