Giter VIP home page Giter VIP logo

stressmodel's People

Contributors

dependabot[bot] avatar james2432 avatar rcmc2020 avatar shawngettler avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

stressmodel's Issues

Add capability for intersection LTS

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:

  • in the absence of a stop sign or traffic signal, node stress is the highest stress of neighbouring edges
  • a stop sign or traffic signal reduces an LTS 3 or 4 node to LTS 2
  • a stop sign or traffic signal reduces an LTS 2 intersection to LTS 1

TypeError: Cannot read property 'length' of undefined

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.