openoakland / woeip

A platform for impacted communities to understand their local air quality and advocate for environmental justice.
https://woaq.org
MIT License
29 stars 16 forks source link

As a developer, I would like APIs to provide data in GeoJSON format #171

Open jayqi opened 4 years ago

jayqi commented 4 years ago

Is your feature request related to a problem? Please describe.

GeoJSON is a widely-used format standard for encoding GIS data. Many GIS and mapping libraries natively handle GeoJSON data. For example, geojson is a data type that Mapbox GL JS natively understands.

Describe the solution you'd like

Create endpoints for use cases needed by frontend that return data in GeoJSON format. For specific endpoints, see (forthcoming) discussion in #170.

Django has a built-in GeoJSON Serializer that should make this reasonably straightforward: https://docs.djangoproject.com/en/3.0/ref/contrib/gis/serializers/

jayqi commented 4 years ago

@lukehtravis FYI: I think this would make #159 easier. Thoughts?

theecrit commented 4 years ago

Related to #186