DDonnyy / IduEdu

Creation and manipulation of city networks from OpenStreetMap.
3 stars 0 forks source link
drive graphs networks opens openstree pedestrian public-transport pypi-package python

IduEdu

Code style: black PyPI version

IduEdu is an open-source Python library for the creation and manipulation of complex city networks from OpenStreetMap.

Features and how to use

  1. Graphs from OSM/Polygon/Name - Functions for building a graph of roads, pedestrians and public transport based on OpenStreetMap (OSM), as well as creating an intermodal (public transport + pedestrians) graph.
  2. Adjacency matrix - Calculate adjacency matrix based on the provided graph and edge weight type (_timemin or _lengthmeter).

Installation

IduEdu can be installed with pip:

pip install IduEdu

Configuration changes

from iduedu import config

config.set_timeout(10)  # Timeout for overpass queries
config.change_logger_lvl('INFO')  # To mute all debug msgs
config.set_enable_tqdm(False)  # To mute all tqdm's progress bars
config.set_overpass_url('http://your.overpass-api.de/interpreter/URL')