This works great, but I would also like to get the name of each object (milestone) found shown next to the object.

[out:json][timeout:25];
// gather results
(
  // query part for: “highway=milestone”
  node["highway"="milestone"]({{bbox}});
  way["highway"="milestone"]({{bbox}});
  relation["highway"="milestone"]({{bbox}});
);
// print results
out body;
>;
out skel qt;

asked 01 Apr, 19:34

jidanni's gravatar image

jidanni
295263242
accept rate: 0%

2

Isn't it weird for a milestone to have a name? It is not mentioned as a useful combination on the wiki page.

(02 Apr, 14:08) escada

OK, got it: {text: distance;}

(02 Apr, 15:38) jidanni

As documented on the wiki, you can use MapCSS for that. Here is an example.

Regards.

permanent link

answered 02 Apr, 10:20

H_mlet's gravatar image

H_mlet
1.7k732
accept rate: 13%

Your answer
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:

×189
×144

question asked: 01 Apr, 19:34

question was seen: 228 times

last updated: 02 Apr, 15:38

powered by OSQA