Giter Site home page Giter Site logo

Comments (7)

patriciogonzalezvivo avatar patriciogonzalezvivo commented on June 24, 2024

maybe the server can return deltas from an average... in the previous demo I end up visualizing the delta over time https://github.com/mapzen/open-traffic-poc-data-demo/blob/gh-pages/scene.yaml#L76-L98

So will be blue (green in our case) when start moving... and red when start decelerating. Will be great to have date about the difference respect to an average: usually on this days ppl go at 30km today goes at 40km -> way faster!

from tangram-viz-experiments.

nvkelso avatar nvkelso commented on June 24, 2024

Can we do a proxy for that where we pretend like the average is:

  • highways: highway = motorway: 100 km/hr
  • major road: highway = primary, secondary, tertiary: 60 km/hr
  • minor road: highway = residential ... and most others: 30 km/hr

(I'm totally spit balling those numbers.)

And then we take the average on the way, subtract that from the expected average speed, and then do the coloring based on that?

from tangram-viz-experiments.

patriciogonzalezvivo avatar patriciogonzalezvivo commented on June 24, 2024

nice idea! we can pass those numbers as defines or uniforms

from tangram-viz-experiments.

patriciogonzalezvivo avatar patriciogonzalezvivo commented on June 24, 2024

or better, use the new custom attribute, @bcamper is working on

from tangram-viz-experiments.

nvkelso avatar nvkelso commented on June 24, 2024

from tangram-viz-experiments.

patriciogonzalezvivo avatar patriciogonzalezvivo commented on June 24, 2024

Working on it : )

from tangram-viz-experiments.

patriciogonzalezvivo avatar patriciogonzalezvivo commented on June 24, 2024

Ok... here is the branch for it https://github.com/opentraffic/tangram-viz-experiments/tree/deltas

screen shot 2017-03-24 at 10 19 46 am

Need some TLC on the numbers... I don't see residential geometry and I lower the average speeds to make it less RED.

Take a look to this coloring functions https://github.com/opentraffic/tangram-viz-experiments/blob/deltas/scene.yaml#L35-L49. The tweaking magic happens there... Instead of sending a flag for one_way y replace it with an average speed. The CPU filtering takes care of that. The arrows go at the speed of the speed : ) while de coloring is calculated against the deference with the road type "average". That's the magic number that needs to be tweak ultimately

from tangram-viz-experiments.

Related Issues (18)

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.