/osm-edit-report

Editing activity on OSM - https://www.mapbox.com/osm-edit-report/

Primary LanguageJavaScript

OSM Edit Report

Reports editing activity of the Mapbox Data Team on OpenStreetMap.

Setup

  • To setup osm-edit-report make sure you have node and npm installed.
  • clone the repository and run npm install.
  • run npm start to run the application in dev mode.(Note: this will automatically open a browser for you)

Deploying

  • To deploy changes make sure you first commit.
  • run npm deploy to deploy on hey-pages
  • run npm run deploy-mb to deploy it on mb-pages (aka mapbox.com).

API and architecture

This project makes use of react, redux and ramda . It hits the osm-comments-api/stats end point for the data.

Few things to note.

  • The codebase doesn't hit the api for user filtering. It does it on the front-end.
  • The codebase also doesn't hit the api for tags filtering and does the filtering itself.
  • It relies on http code 304 for caching identical requests.