pivot_road2_to_graph_road2.constants module#
Static objects and variables.
- class pivot_road2_to_graph_road2.constants.AvailableTypes(value)#
Bases :
Enum
Graph Types list accepted to be converted
- OSRM = 2#
- PGR = 1#
- VALHALLA = 3#
- pivot_road2_to_graph_road2.constants.arg_type_path_folder(input_path: pathlib.Path | str) Path #
Check an argparse argument type, expecting a valid folder path.
- Paramètres:
input_path (Union[Path, str]) – path to check as string or pathlib.Path
- Lève:
ArgumentTypeError – if the input path is not a valid type or not a folder or
doesn't exist. –
- Renvoie:
_description_
- Type renvoyé:
Union[Path, ArgumentTypeError]
- pivot_road2_to_graph_road2.constants.r2gg_graph_conf() dict #
Return r2gg graph configuration dict
- Renvoie:
r2gg graph configuration dict
- Type renvoyé:
dict