bikeottawa / stressmodel Goto Github PK
View Code? Open in Web Editor NEWCycling Level of Stress Model
License: MIT License
Cycling Level of Stress Model
License: MIT License
Do we handle this somehow? I guess we should take into account the worse of the two.
For example, O'Connor South of 417 has cycleway=shared_lane
NB and cycleway=lane
SB: https://maps.bikeottawa.ca/lts-map/?&lat=45.40771305197882&lng=-75.68707579843912&id=way/591035923
It has LTS-1 but IMO should be LTS-2. Is it because the model thinks there is a dedicated lane on either side?
See some lanes around Rideau Hall, etc
The current model assigns LTS to road and path segments only, not intersections. This can have an impact on routing; for instance, when a low-stress side street crosses a major road without a traffic signal, the routing algorithm may consider this a valid route even though crossing the major road is high stress.
Nodes should be assigned a stress level according to the following logic:
I notice the BikeOttawa routing algorithm will use ways with access=no. In particular, it will often suggest taking the (closed) Sentier des Voyageurs pathway in Hull.
(From Danny on OSM Canada slack channel)
Using the suggested instructions in readme, stress level generation fails with:
/var/www/sub/maps/stressmodel/ltsanalyzer.js:161
return (latlong[latlong.length - 1] === '0') ? parseFloat(latlong).toString() : latlong
^
TypeError: Cannot read property 'length' of undefined
at ltsanalyzer.formatLatLong (/var/www/sub/maps/stressmodel/ltsanalyzer.js:161:29)
at ltsanalyzer.createLevelFiles (/var/www/sub/maps/stressmodel/ltsanalyzer.js:146:28)
at ltsanalyzer.onCompleteLoadNodes (/var/www/sub/maps/stressmodel/ltsanalyzer.js:104:15)
at emitNone (events.js:106:13)
at module.exports.emit (events.js:208:7)
at SAXStream.<anonymous> (/var/www/sub/maps/stressmodel/node_modules/xml2object/lib/xml2object.js:176:8)
at emitNone (events.js:106:13)
at SAXStream.emit (events.js:208:7)
at SAXParser.SAXStream._parser.onend (/var/www/sub/maps/stressmodel/node_modules/sax/lib/sax.js:190:10)
at emit (/var/www/sub/maps/stressmodel/node_modules/sax/lib/sax.js:624:35)
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.