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

Get all nodes, ways and relations for a specific coordinate

0

Hello everybody,

I want to get all nodes, ways and relations for a specific coordinate for an example: 49.1259340,9.2101538

[out:json];
node(around:5, 49.1259340,9.2101538);
>;
way(around:5, 49.1259340,9.2101538);
>;
relation(around:5, 49.1259340,9.2101538);
out;

I tried several approaches but none worked. Help is much appreciated.

asked 04 Jun '18, 12:57

Gustav9999's gravatar image

Gustav9999
11223
accept rate: 0%

edited 04 Jun '18, 14:09

Privatemajory's gravatar image

Privatemajory
1.1k142233


One Answer:

0

I found myself the solution:

[out:json];
node(around:10,49.1259340,9.2101538);
<;
out geom;

answered 04 Jun '18, 15:13

Gustav9999's gravatar image

Gustav9999
11223
accept rate: 0%

Source code available on GitHub .