Why not ask your question on the new OpenStreetMap Community Forum?

Hi there, i have got a list of incident in Italian motorway and the kilometer where they happened. I should find lat and long of the event. I extracted all nodes from the motorway using this script:

//fetch area “Italy” to search in
//gather results
// query part for: “highway=motorway and ref=A14”
out body;
out skel qt;

The problem is that while nodes are ordered (so i can calculate relative distance in km of a way), ways aren't. This means i can't create a path of way from the start of the street till the end.

Is there any way to order ways and calculate absolute distance in km?

Thanks for help

asked 12 Oct '18, 09:00

Ramingo92's gravatar image

accept rate: 0%

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



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:


question asked: 12 Oct '18, 09:00

question was seen: 806 times

last updated: 12 Oct '18, 09:00

powered by OSQA