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, 20:35

Lukey78's gravatar image

Lukey78
31112
accept rate: 0%

edited 24 Feb, 20:40

1
(25 Feb, 16:30) ikonor
Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

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:

×552
×355
×119
×13

question asked: 24 Feb, 20:35

question was seen: 834 times

last updated: 25 Feb, 16:30

powered by OSQA