Skip to content
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 Country-Specific Road Speeds from OSM #29

Open
andresfchamorro opened this issue Feb 8, 2021 · 2 comments
Open

Add Country-Specific Road Speeds from OSM #29

andresfchamorro opened this issue Feb 8, 2021 · 2 comments

Comments

@andresfchamorro
Copy link
Contributor

Looking into the methodology behind the friction surface (Malaria Atlas Project, Weiss et al), I found out that they created a table of country, road type, and speed limit based on OSM attributes.

Here is the paragraph describing their road data processing:

Firstly, OSM roads data were extracted in October 2019 and converted into a rasterized surface of road types whereby the fastest road type in each pixel took precedence. In a second processing step, the OSM data were analyzed to determine the median speed limit value for each road type in each country (Supplementary Table 1). These values were subsequently used to attribute road speeds to specific pixels using a lookup table. In cases where a road type was present in a country, but associated speed limit information was unavailable, a global average speed limit for that road type was used instead.
https://www.nature.com/articles/s41591-020-1059-1#MOESM2

I propose that we look into the quality/completeness of this table, and use it to replace default_speeds, or at least have it as an option. The table is available through the paper in the Supplementary Tables 1–3 link.

Thoughts?

@d3netxer @bpstewar

@d3netxer
Copy link
Contributor

I like this idea

@jobelanger
Copy link

It would be great to have country-specific speeds like this while preserving existing speed values for any given edge where maxspeed > or = 0 , for example, and user could choose to apply speeds to all or have an exception where speed exists already. I believe @d3netxer did something like this in the load_traffic2.py module to accept both a maxspeed and a Mapbox speed value.

Also, longer term, would love the ability to extract average speeds by road class (and surface?) for a given graph. This might not be trustworthy for small analysis, but country-level this would be great and would dynamically improve along with OSM data. Was looking into OSRM and saw their equivalent to speed dicts (routing profile for cars, written in Lua). I wonder if this kind of thing could be adapted for gostnets?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants