Comments (7)
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.
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.
nice idea! we can pass those numbers as defines
or uniforms
from tangram-viz-experiments.
or better, use the new custom attribute, @bcamper is working on
from tangram-viz-experiments.
from tangram-viz-experiments.
Working on it : )
from tangram-viz-experiments.
Ok... here is the branch for it https://github.com/opentraffic/tangram-viz-experiments/tree/deltas
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)
- Add github.io preview HOT 3
- Overlapping traffic lines should be offset HOT 6
- Road animation is going wrong way HOT 6
- Speed and color breaks HOT 15
- Add legend image to map
- Document time range on the map HOT 2
- Add basic time query slider GUI HOT 2
- Query server for dynamic time range HOT 5
- Thicken traffic lines at low an medium zooms
- Don't animate traffic lines at low and medium zooms HOT 2
- Add "loading data" indicator HOT 1
- Default date range to 2016-01-01 HOT 2
- Add dynamic time query slider GUI HOT 1
- Remove color gaps in lines HOT 1
- Refill baseman doesn't draw in Chrome HOT 5
- Allow url params for start/end date/time HOT 2
- instructions and/or script to pre-fetch GeoJSON for a canned/offline demo HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tangram-viz-experiments.