aequilibrae.project.network.osm.osm_downloader#

” Large portions of this code were adopted from OSMNx, by Geoff Boeing.

Although attempts to use OSMNx were made (including refactoring its entire code base as a contribution to that package), it became clear that its integration with libraries not available with QGIS’ Python distribution was too tight, and was therefore not practical to detach them in order to use OSMNx as a dependency or submodule

For the original work, please see gboeing/osmnx

Classes

OSMDownloader(polygons, modes[, logger])

class aequilibrae.project.network.osm.osm_downloader.OSMDownloader(polygons: List[Polygon], modes, logger: Logger | None = None)[source]#
doWork()[source]#
get_osm_filter(modes: list) str[source]#

loosely adapted from http://www.github.com/gboeing/osmnx

overpass_request(data, pause_duration=None, timeout=180, error_pause_duration=None)[source]#

Send a request to the Overpass API via HTTP POST and return the JSON response.

Arguments:

data**(:obj:`dict` or `OrderedDict`): key-value pairs of parameters to post to the API **pause_duration (int): how long to pause in seconds before requests, if None, will query API status endpoint to find when next slot is available timeout (int): the timeout interval for the requests library **error_pause_duration**(int): how long to pause in seconds before re-trying requests if error

Returns:

dict

signal = <aequilibrae.utils.python_signal.PythonSignal object>#