-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Overpass Turbo API as a source #54
Comments
That's great Matin! I've seen you pushed to main the proposal. Does the above work already with overpass? |
Thanks @mnm-matin and sorry for the absent-related late reply. It should be fairly easy, as retrieving the data through overpass turbo yields the structure above. In the API call, you can already filter for the correct component, so each of those jsons can be "homogenous" in the sense that they only contain ways, nodes, etc. This is how I implemented it in pypsa-eur, I think we can transfer most of it into this:
https://github.com/PyPSA/pypsa-eur/blob/master/scripts/retrieve_osm_data.py |
We want to add overpass turbo as a source for retrieving OSM data.
The current approach downloads large pbf files from Geofabrik, however, in most cases only a <1% fraction of the data is required.
There are three parts to this:
Here is a snippet of the intermediate json file:
@davide-f, there is currently a region index file
./earth-osm/earth_osm/data/gfk_index.csv
which needs to align well with pypsa-earth regions as some of the regions are slightly complicated. The csv file is created bygfk_data.py
and could be extended.i have created a mock function in the new file
overpass.py
and added the relevant toggles. The command that needs to pass as a test is the following:@bobbyxng is it feasible to convert the overpass data into the snippet above and the arg provided in the mock function
get_overpass_data
?The text was updated successfully, but these errors were encountered: