Utilities

Global configuration settings can be changed using the settings object.

osmnet.config.settings

A set of configuration variables to initiate the configuration settings for osmnet.

Parameters:
logs_folderstr

location to write log files

log_filebool

if true, save log output to a log file in logs_folder

log_consolebool

if true, print log output to the console

log_namestr

name of the logger

log_filenamestr

name of the log file

keep_osm_tagslist

list of OpenStreetMap tags to save from way elements and preserve in network edge table

By default the global configuration settings are already set, however they can be changed by using the functions in the osmnet_config class:

class osmnet.config.osmnet_config(logs_folder='logs', log_file=True, log_console=False, log_name='osmnet', log_filename='osmnet', keep_osm_tags=['name', 'ref', 'highway', 'service', 'bridge', 'tunnel', 'access', 'oneway', 'toll', 'lanes', 'maxspeed', 'hgv', 'hov', 'area', 'width', 'est_width', 'junction'])

A set of configuration variables to initiate the configuration settings for osmnet.

Parameters:
logs_folderstr

location to write log files

log_filebool

if true, save log output to a log file in logs_folder

log_consolebool

if true, print log output to the console

log_namestr

name of the logger

log_filenamestr

name of the log file

keep_osm_tagslist

list of OpenStreetMap tags to save from way elements and preserve in network edge table

to_dict()

Return a dict representation of an osmnet osmnet_config instance.