autogestion / corruption_tracker Goto Github PK
View Code? Open in Web Editor NEWLicense: BSD 3-Clause "New" or "Revised" License
License: BSD 3-Clause "New" or "Revised" License
There could be predefined lists of violation types, grouped by organization types. For example the most common сlaims on schools or on Passport Offices. Such list could be added as select input (dropdown) to claim adding form, after user chose organization. Idea is linked to elections issue #21 and taken from Opora violation map adding form http://map.oporaua.org/dani-pro-porushennya
We could copy types from there, link them to organization type polling station and offer to choose one of them to user
There is no way to prevent user from sending ofencive and useless messages. Ways to prevent:
What do you think guys?
Organize e-mail letters auto sending to responsible goverment or municipal institution after verified claim incoming. These e-mails will be send to certain departments we can encrypt in polygons' ID in GEOjson.
We expect that on frontend there would be a lot of data, thousands of claims should be displayed, so there is an idea to use Angular.js instead of jQuery, because it works better with huge data.
Also, web-api created to work with angular client could be used by mobile client.
I think map is unnecessary for those who will work with big collected data arrays on web. So we need make scrollable (and hideable?) part with e.g. last 100 claims on the main page and possiblity to get all the data in the table on the separate page (without map). Export of selected data to exel/xml file also will help analyst.
Flow is:
@Dovbo offered concept named "centroids", which implies polygon-based organizations, which could be shown in pop-up by clicking on polygon. Organization's claims aggregated number will be shown inside element in center of polygon, with coordinates set in initial geojson in properties of polygon. This concept looks fine, especially in cases, when building have dozens of organizations (like Derzhprom), but creates a bottle neck, so that we can't proceed before polygons are drawn.
Another way, is to use polygon as decoration, and organization as independent entity. Organization would have its own coordinates and would be settled on map as point. It could be linked to polygon or layer, to have ability to be shown when user clicks on district and zoom in some area. In this case to play with organizations we would have just to set some points on the map, and after polygons would be ready, place them as backing.
Also, we could implement both concepts, by creating subclass of Organization, with coordinates. If organizations related to polygon are instances of base class, polygon will agregate their claims number, and will show it using centroid coordinates. Оtherwise, polygon do nothing, just is located on map, and claims is shown on organizations points.
Way of development should be unifyed and scalable as for 1-3 developers, and also as for 10-20.
This way we will get few goals:
Create some interface for users to draw and submit polygons to DB
We can try to use a framework Vulyk https://github.com/mrgambal/vulyk for this
There is an idea to create fork of ctracker (or branch), make a little changes to appearance and replace polygons of state institutions to polygons of polling station. Democratic Alliance party is ready to support this issue. We can make a good deed and real crash test for ctracker
We can use Tornado web-server to make corruption map a realtime app. User without reloading page will observe new coming claims (adjusting counters and color of buildings)
Preliminarily, API have to serve next calls:
A summary of the previous series:
There was an idea that service will consists of 2 parts - mobile app that don't need live internet connection and web-platform. First just gets claims, second shows them. GeoJSON was conceived as mediator beetwen them, it would contain a polygon id, by which web-platform would recognize which polygon was claimed. We could update GeoJSON, put it at server and in mobile app update and they would stay synced.
Main idea was to store in GeoJSON information which must be same in mobile app and web-platform. All ather atributes had to be stored in server db
If there are real benefits of kicking GeoJSON off the server, we have to know how common data would be stored in mobile app and how they would stay synchronized with server. We could not change something on server before it comes to mobile app which is offline
Or we should change the whole vision of service
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.