Closed ciatph closed 3 years ago
A sample API project livelihood-zones-api (for development mode only) that can serve GeoJSON data was created for testing.
It is good to use raw GeoJSON for smaller results, but larger results may need to be post-processed for more optimal serving over the web. As such, web mapping services with tiling and caching such as Mapbox or self-hosted GeoServer may be better alternate options.
The PostGIS enabled API looks fit to serve GeoJSON data for the purposes of the new livelihood zones web map, but was opted out because ways to host the shapefiles data on the now proprietary MapBox, while still availing its free-tier services have been found.
Test using a custom backend api that can serve GeoJSON from a PostGIS-enabled database, in case large file uploads is not allowed or may exceed the free-tier on mapbox.