unbrother / traffic-major-minor Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU General Public License v3.0
License: GNU General Public License v3.0
I have managed to create some of the variables except for the aadt of closest major road, mentioned in the original methodology. I know there this would be something similar to what was done in the original code shared with me by @mem48 but can't find the correct steps to do it.
@Robinlovelace
The original model based the classification of roads as urban or rural from the settlement Ordnance Survey Meridian 2, the paper does not mention how (I assume it can be reverse-engineered from the .sql files), but I am not sure on how to do this with R. I can't find the Meridian 2 files online but from the Strategi files, I found there's a layer named urban_region, which I could intersect with roads. I know this process would be very similar to the one that assigns AADT to roads but I'm unsure on how to do it.
In osm the maxspeed
tag is in kph so 60
means 60 kph
while 60 mph
means 60 mph
. But in the UK people sometime forget this and miss the mph.
Two issues from this:
You should clean the tags by adding mph
so that dodgr
treats them correctly
In the UK roads are 60 mph unless otherwise specified. This means that there are narrow windy country roads that are 60 mph legally but are practically more like 30 - 40 mph. If you can think of an easy way to detect these and lower the maxspeed
it might improve results. But this is low priority at the moment.
The road importance part of the postGRE code first makes subdivisions enclosed by the major roads. I am not sure how to do this in R, I believe I would just need to draw a polygon between those lines but do not know how to make R select the enclosed areas.
After that they made something different for roads outside of these areas, which they name coastal roads. I have not checked this in full but I am sure it will be a challenge for me.
Until now, I used dodgr with weight_streetnet() to get some kind of relative weighting and I was considering that as the road importance. But this is not the process originally used.
@mem48 and @Robinlovelace, do you have any pointers or ideas on how to attack this part?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.