turn_restrictions: Vec<String, Global>
Turn indications specific to this lane, from
https://wiki.openstreetmap.org/wiki/Key:turn. Turns for specific vehicle types
turn:bus:lanes and such) are not yet captured.
Returns the index where the new lane was inserted
Convert the driving lanes of a road between one-way forwards, one-way backwards, and bidirectional. It should be idempotent to apply this 3 times in a row. Even when an existing one-way street is narrow, it can be made bidirectional by splitting into two very narrow lanes.
Transforms a string describing lane types and directions, like “spddps” and “vv^^^^^”, into a list of LaneSpecs. Useful for unit tests.
This is meant for table-driven unit tests. Call this on the transformed / output lanes. If
the lanes don’t match,
ok will be set to false and appropriate errors will be printed.
For a given lane type, returns some likely widths. This may depend on the OSM highway type of the road. The first value returned will be used as a default.
Pick a reasonable default for a lane width, without any context on locale or tags.
None if bidirectional. If it’s one-way, which direction is that relative to the road? (Usually forwards)
Returns the argument unchanged.