You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes roads are split into multiple OSM ways for no real reason and with our current approach this means our routing graph will contain more edges. A possible optimization would be merging such neighboring ways if the corresponding tags are identical (or at least the subset of relevant tags is identical).
It is quite easy to count the OSM nodes that only connect two ways (rather than being 'real' junctions), see here: 10d1a19
which means there are 2.9mio 'connection nodes', which only connect two OSM ways. If we merged all these nodes we would save 2.9mio edges, so 11% of the total 25.9mio edges we create for this map (no ignored highways). But of course in reality we won't be able to merge them all, because not all of them are connecting ways with identical tags and sometimes they might use the same tags but we still don't really want to merge them, for example at country borders.
If we could merge every second connection node we would be able to save around 5% of edges (but not sure if this is realistic). We would also lose the ability to assign a single OSM way ID to each edge. Overall I don't think this optimization will be really worth the effort.
The text was updated successfully, but these errors were encountered:
Sometimes roads are split into multiple OSM ways for no real reason and with our current approach this means our routing graph will contain more edges. A possible optimization would be merging such neighboring ways if the corresponding tags are identical (or at least the subset of relevant tags is identical).
It is quite easy to count the OSM nodes that only connect two ways (rather than being 'real' junctions), see here: 10d1a19
For Germany I got:
which means there are 2.9mio 'connection nodes', which only connect two OSM ways. If we merged all these nodes we would save 2.9mio edges, so 11% of the total 25.9mio edges we create for this map (no ignored highways). But of course in reality we won't be able to merge them all, because not all of them are connecting ways with identical tags and sometimes they might use the same tags but we still don't really want to merge them, for example at country borders.
If we could merge every second connection node we would be able to save around 5% of edges (but not sure if this is realistic). We would also lose the ability to assign a single OSM way ID to each edge. Overall I don't think this optimization will be really worth the effort.
The text was updated successfully, but these errors were encountered: