0

I am trying to select all categories of shops for a portion of the UK.

To select just the supermarkets I would use "shop" = "supermarket", and so forth, while to select all categories I have tried "shop" = "*" but no results are returned.

Do you know how the below statements can be fixed to select all categories of shops? thanks


/* This has been generated by the overpass-turbo wizard. The original search was: “shop” */ [out:json][timeout:25]; // gather results ( // query part for: “shop” node"shop" = "*"; );

// print results out body;

; out skel qt;

enter image description here

4
  • Try upping the timeout time to something like 2500. Run again.
    – Erik
    Mar 12 at 9:11
  • Or, and remove the " around your *.
    – Erik
    Mar 12 at 9:13
  • Hi Eric, thanks for the suggestion, but still no records returned with 2500
    – john
    Mar 12 at 9:13
  • by removing the quotes I get this error message: An error occured during the execution of the overpass query! This is what overpass API returned: Error: line 10: parse error: Value expected - '' found. Error: line 10: parse error: ']' expected - '' foundAn error occured during the execution of the overpass query! This is what overpass API returned: Error: line 10: parse error: Value expected - '' found. Error: line 10: parse error: ']' expected - '' found
    – john
    Mar 12 at 9:19
1

The correct syntax would be

[out:json][timeout:250];
// gather results
(
  // query part for: “shop=*”
  node["shop"]({{bbox}});
);
// print results
out body;
>;
out skel qt;

I strongly suggest using the wizard to create your request if you're unfamiliar with the overpass-turbo/OSM syntax.

2
  • Hi Erik, great, it worked this way, thanks a lot
    – john
    Mar 12 at 9:44
  • @john if this answer worked then can you please upvote it and accept it as the solution? Nice to mark the question as answered and to give Erik some credit. Mar 12 at 11:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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