mosstool.map.osm._wayutil

Module Contents

Functions

parse_osm_way_tags

tags: tags field for OSM units whose type==way default_settings: default # of lanes, the max speed(max_speed), and turns within a junction(turn), etc.

merge_way_nodes

Merge two groups of nodes, it is required that at least one pair of endpoints of the two groups of nodes are the same, otherwise an error will be reported. eg: [1,2,3], [3,4,5] -> [1,2,3,4,5] [3,2,1], [3,4,5] -> [3,2,1,4,5]

Data

API

mosstool.map.osm._wayutil.__all__

[‘parse_osm_way_tags’, ‘merge_way_nodes’]

mosstool.map.osm._wayutil.parse_osm_way_tags(tags: dict[str, str], default_settings: dict[str, Any]) dict[str, Any]

tags: tags field for OSM units whose type==way default_settings: default # of lanes, the max speed(max_speed), and turns within a junction(turn), etc.

mosstool.map.osm._wayutil.merge_way_nodes(a_nodes: list[int], b_nodes: list[int]) list[int]

Merge two groups of nodes, it is required that at least one pair of endpoints of the two groups of nodes are the same, otherwise an error will be reported. eg: [1,2,3], [3,4,5] -> [1,2,3,4,5] [3,2,1], [3,4,5] -> [3,2,1,4,5]