conveyal / osm-lib

A library for opening, updating and manipulating OSM files of any size.
BSD 2-Clause "Simplified" License
39 stars 13 forks source link

IntersectionDetection fails if way has duplicated nodes #23

Open buma opened 8 years ago

buma commented 8 years ago

If node ID appears twice in same way it is added to intersectionNodes the second time it appears. Because of this in R5 zero length edge is created between those two nodes.

In OTP it was first checked if nodes have same ID or same lat/lon and were added only if level was different.