This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Overpass turbo extract only waypoints

0

is it possible to extract only the waypoints of a buildung, like shop=supermarket and name=Lidl ? At the moment i use a script for eleminate the tracks arround the buildng and make a waypoint for that. I only need the waypoint for my navigation app.

Here the code from the wizard:

/*
This has been generated by the overpass-turbo wizard.
The original search was:
“shop=supermarket and name=Lidl”
*/
[out:json][timeout:25];
// gather results
(
  // query part for: “shop=supermarket and name=Lidl”
  node["shop"="supermarket"]["name"="Lidl"]({{bbox}});
  way["shop"="supermarket"]["name"="Lidl"]({{bbox}});
  relation["shop"="supermarket"]["name"="Lidl"]({{bbox}});
);
// print results
out body;
>;
out skel qt;

asked 03 Apr '22, 12:12

elmstop's gravatar image

elmstop
11113
accept rate: 0%

edited 04 Apr '22, 08:21

SomeoneElse's gravatar image

SomeoneElse ♦
36.9k71370866

1

Please post the query that you already have.

(You can edit your original question or add a comment, not an answer, please)

(03 Apr '22, 20:59) TZorn
2

out center; may suit you
http://overpass-turbo.eu/s/sgj
note spelling: American center and not English centre

(04 Apr '22, 13:11) nevw

Ok, it works. Thank you

(04 Apr '22, 17:22) elmstop

Source code available on GitHub .