data-for-change / anyway

ANYWAY - Car accidents map
http://www.anyway.co.il
MIT License
77 stars 244 forks source link

Add rules / thresholds to each Widget #1483

Open atalyaalon opened 4 years ago

atalyaalon commented 4 years ago

This is a task for a BackEnd programmer together with a Data Scientist. For the existing infographics API - set a threshold or a rule (can be unique per widget) to decide wether to send the widget for the specific newsflash. The decision can be made using both data from the newsflash and CBS data regarding the location of the news flash.

Arrange the API rank field accordingly.

atalyaalon commented 3 years ago

@assafdayan and @dinasv I suggest with starting with rules that use only the data itself and NOT the newsflash tags. Later on we'll add the newsflash tags information and decide how this affects us.

atalyaalon commented 3 years ago

Also - we can start by dividing the widgets to urban / non urben / both - the newsflash resolution that already exists can help us which choosing the relevant widgets - which can be an initial good filtering that does not relate to the accidents data itself yet (road resolution vs street resolution)

atalyaalon commented 3 years ago

Technical question - @ziv17 we discussed on removing the rank field and just sort the widgets by importance order (that's how FE is sorting widgets nowadays - by order rather than the rank field) @assafdayan and @dinasv is this acceptable with you?

dinasv commented 3 years ago

We decided to leave the rank field - the widgets will be sorted by importance in the backend, but the rank field is useful if the widgets will be sorted in the frontend in the future.