Hi,

i'm using the overpass api to query for ways around a given gps position with the ultimative aim to extract maxspeed values. However, i came across a way that had different maxspeed tags for forward and backward direction. Now how do i find out, wich direction (i.e. heading in degrees) is forward and which is backwards for a given way(-segment)? Is there some general rule to that like increasing node ids or similar? regards,d

asked 04 Jul '13, 12:24

dlr_ts's gravatar image

dlr_ts
21112
accept rate: 0%


It is just the sorting of the nodes. "A way is an ordered list of nodes […]" (way in wiki; emphasis by me). Also see: the methods to see the direction (rather targeted towards mappers).

permanent link

answered 04 Jul '13, 12:46

aseerel4c26's gravatar image

aseerel4c26 ♦
32.1k16239551
accept rate: 17%

edited 04 Jul '13, 12:51

does "ordered" refers to node-id (numerical ordering) or is the order in which the nodes appear in the xml-output is meant?

(04 Jul '13, 12:53) dlr_ts
3

no, there is no numercial ordering. The node ids (numbers) are not related to a way, they are independent object identifiers. If a node is also used by other ways (e.g. way intersections) the ways list the same node id.

The direction is set by the "order in which the nodes appear in the xml-output".

(04 Jul '13, 12:57) aseerel4c26 ♦
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:

×352
×82
×40
×17

question asked: 04 Jul '13, 12:24

question was seen: 7,643 times

last updated: 04 Jul '13, 12:57

powered by OSQA