I am facing a challenge in crafting an overpass query to identify points of interest (POIs) such as hospitals and schools within a specific zipcode. Despite my attempts with the following query:
[out:json];
(
node["amenity"="hospital"](34.0522,-118.2437,34.0622,-118.2337)["postal_code"="90005"];
node["amenity"="hospital"](34.0485,-118.2923,34.0585,-118.2823)["postal_code"="90006"];
node["amenity"="hospital"](34.0122,-118.3365,34.0222,-118.3265)["postal_code"="90008"];
);
out center;
It seems to be ineffective for my purpose. I would appreciate assistance in refining this query or exploring alternative approaches to achieve the desired outcome.
json { "version": 0.6, "generator": "Overpass API 0.7.61.5 4133829e", "osm3s": { "timestamp_osm_base": "2024-02-22T07:59:00Z", "copyright": "Data from www.openstreetmap.org, available under ODbL." }, "elements": [] }Initially, I thought it lacked data, so I broadened the search for all amenities, even with extra locations. However, results persistently show no relevant amenities data. Seeking advice to resolve or explore alternatives. @TimRoberts