osm2cr.converter_modules.graph_operations package

Subpackages

Submodules

osm2cr.converter_modules.graph_operations.intersection_merger module

osm2cr.converter_modules.graph_operations.lane_linker module

osm2cr.converter_modules.graph_operations.mapillary module

osm2cr.converter_modules.graph_operations.offsetter module

osm2cr.converter_modules.graph_operations.restrictions module

This Module provides a restriction class which can be used to parse OSM restrictions. These are used later in the lane linking step

class osm2cr.converter_modules.graph_operations.restrictions.Restriction(from_edge_id, via_element_id, via_element_type, to_edge_id, restriction)[source]

Bases: object

osm2cr.converter_modules.graph_operations.restrictions.parse_restriction(restriction)[source]

parses a restriction tag to a set of defined restrictions: {“no_right_turn”, “no_straight_on”, “no_left_turn”}

Parameters:

restriction (str) – the string of the restriction tag

Return type:

Optional[Set[str]]

Returns:

the restrictions in structured format

osm2cr.converter_modules.graph_operations.segment_clusters module

osm2cr.converter_modules.graph_operations.traffic_sign_parser module

Module contents