0

Hi there,

currently I'm searching for 4 types of features along a certain path (e.g. a point every 20 meters on a given track). I want to query for location names (e.g. mountains, rivers, huts, cities) around these coordinates.

Currently my queries look like this:

[out:json][timeout:30];
(
 node(around:50,46.512,7.827) ["natural"];
 node(around:50,46.512,7.827) ["highway"];
 node(around:1500,46.512,7.827) ["place"];
 node(around:50,46.512,7.827) ["tourism"];

 node(around:50,46.512,7.827) ["natural"];
 node(around:50,46.512,7.827) ["highway"];
 node(around:1500,46.512,7.827) ["place"];
 node(around:50,46.512,7.827) ["tourism"];
); 
out body;

The block inside (4 types) is repeated for each coordinate.

Because I'm querying several hundred coordinates for features at once: Is there a more efficient way doing this? Or can I combine all the queries around 50 meters for "natural", "highway" and "tourism"?

Thank you! Jens

asked 24 Feb '19, 20:35

Lukey78's gravatar image

Lukey78
31112
accept rate: 0%

edited 24 Feb '19, 20:40

1
(25 Feb '19, 16:30) ikonor

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×585
×377
×126
×14

question asked: 24 Feb '19, 20:35

question was seen: 1,366 times

last updated: 25 Feb '19, 16:30

powered by OSQA