itinero / routing

The routing core of itinero.
Apache License 2.0
221 stars 69 forks source link

Question: Enumerate edges and vertexes #158

Closed alecava58 closed 6 years ago

alecava58 commented 6 years ago

Having a routerDB may I enumerate all edges and vertexes along with their meta and attributes?

Thanks

xivk commented 6 years ago

Perfectly possible but watch out when modifying the data while enumerating. An example is here: $

https://github.com/itinero/routing/blob/develop/src/Itinero/Algorithms/Networks/ZeroLengthLinksOptimizer.cs#L50

This code removes links of length '0'

alecava58 commented 6 years ago

Ok. thanks for the tips.