itinero / routing2

The next version of the Itinero route planner.
Apache License 2.0
7 stars 1 forks source link

Handle route relations #4

Open xivk opened 4 years ago

xivk commented 4 years ago

Problem

We need to be able to handle route relations and networks:

Other case this could apply to:

These are usually not modeled as part of the edge attributes and have the following issues:

Workarounds

Copying the attributes:

This could be done using a namespace prefix set1_(key)=(value) for example. This is problematic because these semantics will have to be taken over and used everywhere:

Suggested solution:

We add another layer on top of the current attributes and edge has in the form of 'edge sets'. These sets could be used to express general properties about edges that are generally not part of the their attributes. This includes but is not limited to: cycling|foot|transit networks, low emissions zones, country ids

Advantages

Disadvantages