ConservationMetrics / guardianconnector-views

A Nuxt.js tool that reads data from a SQL database and renders it on different views (map, gallery, alerts dashboard)
MIT License
3 stars 0 forks source link

Add API endpoint and basic view for change detection alerts #18

Closed rudokemper closed 6 months ago

rudokemper commented 6 months ago

Initial scaffolding for https://github.com/ConservationMetrics/guardianconnector-views/issues/16.

This PR proposes to add a new API endpoint and route /alerts/ that returns a data table as a GeoJSON feature collection by applying a new transformToGeojson function. Additionally, an alerts component and View has been added to show the data on a basic Mapbox map.