1

I'm trying to use the QuickOSM plugin so I can automate the search of addresses and creation of layers. Right now I'm just trying with one address using the key -> addr:street "Bäckerstr." And the key addr:housenumber "10". After running the query I get the message "Succesful query, but no result". This is the generated query that runs when I click on show query.

[out:xml] [timeout:25];
 {{geocodeArea:münchen}} -> .area_0;
(
    node["addr:street"="bäckerstr. "]["addr:housenumber"="10"](area.area_0);
    way["addr:street"="bäckerstr. "]["addr:housenumber"="10"](area.area_0);
    relation["addr:street"="bäckerstr. "]["addr:housenumber"="10"](area.area_0);
);
(._;>;);
out body;
1
  • Have you made sure there are any objects to return?
    – Erik
    Commented Aug 10, 2022 at 12:47

1 Answer 1

2

You must use the full name of the street: Bäckerstraße, as the street is tagged in OSM, instead of bäckerstr.

To look for bäckerstr, you must perform a search query that 1) truncates and 2) ignores case (upper/lower case). To truncate, use ~ instead of =, to ignore case, add ,i. Be aware not to include the point in the query. The query then looks like this:

[out:xml] [timeout:25];
 {{geocodeArea:München}} -> .area_0;
(
    node["addr:street"~"bäckerstr",i]["addr:housenumber"="10"](area.area_0);
    way["addr:street"~"bäckerstr",i]["addr:housenumber"="10"](area.area_0);
    relation["addr:street"~"bäckerstr",i]["addr:housenumber"="10"](area.area_0);
);
(._;>;);
out body;

enter image description here

The easier alternative is to search for the exact name Bäckerstraße:

[out:xml] [timeout:25];
(
    node["addr:street"="Bäckerstraße"]["addr:housenumber"="10"]( {{bbox}});
    way["addr:street"="Bäckerstraße"]["addr:housenumber"="10"]( {{bbox}});
    relation["addr:street"="Bäckerstraße"]["addr:housenumber"="10"]( {{bbox}});
);
(._;>;);
out body;
2
  • Thanks! Now it worked.
    – rafa
    Commented Aug 10, 2022 at 13:06
  • See updated answer as well with truncating/ignore case
    – Babel
    Commented Aug 10, 2022 at 13:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.