Closed dagvogeltje closed 1 year ago
Thanks @dagvogeltje, this is related to the dependency package OSMnet here: https://github.com/UDST/osmnet and is not an issue with UrbanAccess. This issue for OSMnet has been fixed on the dev branch of the OSMnet package but has not yet been released on conda or pip so Id suggest installing the latest version of OSMnet from the dev branch manually by:
dev
branchclosing this issue since its related to OSMnet
Description of the bug
Hello everyone,
I am trying to follow the urbanaccess example code, but it returns an error at the OSM data download part, something related to geopandas...
GTFS feed or OSM data (optional)
GTFS data is for Belgian transit agency De Lijn. OSM bounding box is 4.6109,50.5534,6.1737,51.5273 (Basically Belgian Limburg and Dutch Limburg, with Eindhoven, Aachen, and Liege included.)
Environment
Operating system: Windows 10
Python version: 3.9.13
UrbanAccess version: 0.2.2
UrbanAccess required packages versions (optional): requests 2.28.1 / six 1.16.0 / pandas 1.4.4 / geopandas 0.12.2 / numpy 1.21.5 / osmnet 0.1.6 / pandana 0.6.1 / matplotlib 3.5.2 / geopy 2.3.0 / pyyaml 6.0 / scikit-learn 1.0.2 (I just installed it using conda install urbanaccess -c conda-forge)
Paste the code that reproduces the issue here:
Everything else is exactly same as the example code, except:
Loading GTFS instead of downloading first. Downloading GTFS instead of loading from PC did not change anything with the error.
Converted date column from int64 to object. Removing this didn't change anything with the error.
loaded_feeds.calendar_dates.head()
ua.gtfs.network.create_transit_net(gtfsfeeds_dfs=loaded_feeds, day='thursday', timerange=['07:30:00', '09:30:00'], calendar_dates_lookup={'date':'20211007'})