overpass not returning some POIs - overpass-api

I am trying to get all POIs around a specified geom (Lat, Lon) but for some reason some POIs are missing in the response.
For example
node
(around:75,54.071497,9.986973);
out body;
is not returning "Klatsch Palais" even tough its shown on the map but other items are listed.
Second example is not returning "POCO-Domäne" neither "Club Orange & Blue".
node
(around:75,54.063060,9.968584);
out body;
Am I missing some property?

Related

Relation of a district in a city is ranked high on nominatim than the city itself - how can i change that?

This relation (https://nominatim.openstreetmap.org/details.php?place_id=198913696) is one of 8 smaller districts of the German city of Essen (https://nominatim.openstreetmap.org/details.php?place_id=197694959).
Nevertheless: Nominatim gives you this small subset as the first result when searching for "Essen". This leads to some unexpected behaviour. For example when using overpass turbo to search in the area {{geocodeArea:Essen}}->.searchArea; you only get results from this small district when you would expect results from the city. How can I rephrase on Overdrive? Or can I correct Nominatims behaviour somehow?
[out:json][timeout:25];
// fetch area “Essen” to search in
{{geocodeArea:Essen}}->.searchArea;
// gather results
(
// query part for: “"andachtsstätte"”
node["amenity"="place_of_worship"](area.searchArea);
way["amenity"="place_of_worship"](area.searchArea);
relation["amenity"="place_of_worship"](area.searchArea);
);
// print results
out body;
>;
out skel qt;

OpenstreetMap Overpass API - Validate tag if present

I have this query
[out:json];
(
way['addr:street'='Kurzenmoor']['addr:housenumber'='12']['addr:postcode'='25370']['addr:country'='DE'];
node(around:700)['highway'='bus_stop'][!'ref'];
);
out;
This does not return a result due to the fact that the country has not been specified at the API.
This works:
[out:json];
(
way['addr:street'='Kurzenmoor']['addr:housenumber'='12']['addr:postcode'='25370'];
node(around:700)['highway'='bus_stop'][!'ref'];
);
out;
Is there a way to combine these? If there is no country present, I want the result, if there is a country present it should match the desired one (in this example "DE", if it matches, I want the result, otherwise I do not want it.
Overpass API is not a geocoder.
A better approach is to first determine the location via geocoding, e.g. by using Nominatim, Photon or one of the other OSM-based geocoders. In the second step use Overpass API to find bus stops near this location.

Get list of all important sub-location in a city by city name

I tried to google place API to get a list of all important sub-location within a city but it's not showing the complete list.It gives the result on the basis of some search like restaurant and all.
Is there any API to get a list of all sub-location within the city on the basis of city name?
try something as mentioned below:
https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=28.7041,77.1025&radius=50000&key=YOUR_API_KEY.
The link of format:
https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=[LATITUDE AND LONGITUDE OF CITY]&radius=50000[I have specified 50KM which is largest google api allows]&key=YOUR_API_KEY.
Do not specify the type.
radius: you get the approx size of city to restrict the value for radius.

osm overpass query by country

I am using this Overpass query to extract all coworking amenities in Italy.
( area["ISO3166-1"="IT"];) ->.a;
node["amenity"="coworking_space"]
(area.a);
(._;>;);
out body;
If I try to do the same for France using FR as ISO3166 country code
( area["ISO3166-1"="FR"];) ->.a;
node["amenity"="coworking_space"]
(area.a);
(._;>;);
out body;
I get no results while I am sure there are nodes like that in France (i tested with a separate query using automatic bbox).
Question:
Am I getting wrong the ISO3166 country code of France?
In general, there is a better way to extract osm data from overpass by country?
Thanks,
Jacopo
You should query for the key ISO3166-1:alpha2 or ISO3166-1:alpha3 and use ISO3166-1 only as a fallback. These keys are explained in the country code wiki page.
The relation for the state of Italy has tag ISO3166-1 while the relation for the state of France doesn't. But both have the value you are looking for in the ISO3166-1:alpha2 key.

Overpass API way coordinates

I'm trying to query the OSM Overpass API to find any amenities within a bounding box. The actual query in my program will be generic but in my testing I noticed I cannot retrieve the coordinates(latitude, longitude) of any of the ways. Here is my script:
(
node
["amenity"="police"]
(39.235,-76.715,39.373,-76.525);
way
["amenity"="police"]
(39.235,-76.715,39.373,-76.525);
);
(._;>;);
out meta;
I need to use ways because I'm missing a significant amount of data without them. Unfortunately they do not include any coordinate data despite me adding out meta instead of the normal out. This was answered here, overpass-api ways query include coordinates about a year ago but that solution no longer works. Is this a bug? Or am I doing something wrong? I've also tried out center, out geom, and out skel to no success. I'm outputting the data in xml.
ANSWERED, I left on the recursion line on the end by accident. Thanks Tyr.