This project collect everyday data coming from ICMBio and National Agency of Mining institutions searching for irregular licenses granted into Amazon Forest protected areas. Once they're found, a tweet is sent from @amazonia_minada warning the crime. Also, all the activities can be visualised on this map.
Every month, about 20 irregular licenses are granted without any explanation and without no one knows. Alerting those acts on Twitter and make it visual on a map is an attempt to let people know about the neglect of involved institutions to have a chance to complain and protest about it.
Everyday, the license's application make a request to ANM's (Agência Nacional de Mineração) site looking for the shapefile which contains all the licenses granted by the institution. After the files are downloaded, our app start to read and import into database every data collected about those licenses (geolocations and properties). Once all licenses are persisted into the database, the application start to query for irregular licenses granted into protected areas (imported as seed manually) and register them in a specific collection. The brand news are scheduled to be tweeted. If there's no licenses found, the app also has alternative tweets schedule for all days in a week. Finally, the app provides four endpoints for downloading unities geoJSON and CSV files and invasions (illegal licenses) geoJSON and CSV files.
This is a simple applications using NodeJs and MongoDB. To make run everything, we're using here Docker with Docker Compose. Then:
$ docker-compose up --build -d
To get all protected areas (unities), you should run the project seeds:
$ docker-compose exec licenses npm run seeds
It's possible to *(re)*generate files without having to process everything. Once the database is updated, you only need to run:
$ docker-compose exec licenses npm run make-files
Starting from version 2.0.0, this project is licensed under the GNU AGPLv3.
Previous versions (<= 1.x) remain available under the MIT License.