realtwin.func_lib.OSMRoad

class realtwin.func_lib.OSMRoad(output_dir: str = 'RT_Network')[source]

The OSMRoad class to generate network from OpenStreetMap

__init__(output_dir: str = 'RT_Network')[source]

Methods

__init__([output_dir])

add_missing_value()

Add missing values to the edges

add_num_lane()

Add number of lanes to the edges

add_spread()

Add spread to the edges

generate_edges()

Generate edges from the graph

generate_nodes()

Generate nodes from the graph

get_graph(NetworkVertices)

Get the graph from OpenStreetMap using osmnx

line_str(line)

Convert line to string

split_lane_no(str_digit)

Split the lane number