I am trying to get a list of coordinates for a specified road by inputting the road name/number. Is there a way to do that? Thanks!

asked 30 Jan, 09:43

edenmaylie's gravatar image

edenmaylie
11112
accept rate: 0%


As an example with overpass-turbo:

[out:json][timeout:25];
// gather results
(
  // query with id
  way(id:200820110)({{bbox}});
);
// print results
out body;
>;
out skel qt;

or

[out:json][timeout:25];
// gather results
(
  // query with name
  way[name='Schmidtsdrift Road']({{bbox}});
);
// print results
out body;
>;
out skel qt;

should give you what you want. Alternately after //print results you could have out geom; but as far as I am aware the output will not be 100% compatible with the normal OSM XML format.

permanent link

answered 27 Feb, 10:49

arkriger's gravatar image

arkriger
55159
accept rate: 0%

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:

×213
×133

question asked: 30 Jan, 09:43

question was seen: 321 times

last updated: 27 Feb, 10:49

powered by OSQA