NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

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 '20, 19:34

jidanni's gravatar image

jidanni
339323647
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 '20, 14:08) escada

OK, got it: {text: distance;}

(02 Apr '20, 15:38) jidanni

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

Regards.

permanent link

answered 02 Apr '20, 10:20

H_mlet's gravatar image

H_mlet
5.4k1781
accept rate: 13%

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:

×228
×219

question asked: 01 Apr '20, 19:34

question was seen: 1,350 times

last updated: 02 Apr '20, 15:38

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum