Standard Energy Efficiency Data (SEED) Platform™ is a web-based application that helps organizations easily manage data on the energy performance of large groups of buildings.
Adds a public geojosn endpoint using existing functionality from the inventory export endpoint.
Adds an org setting for public_geojson_enabled
Moves some tax_lot_property functions to a reusable util.
How should this be manually tested?
With properties that have geo data like lat/long,
Test with endpoints disabled. Go to org settings and unselect either "enable public endpoints" or "enable public geojson". Go to /api/v3/public/organizations/{org_id}/cycles/{cycle_id}/geo.json. The endpoints should return an error message
Test with endpoints enabled. Go to /api/v3/public/organizations/{org_id}/cycles/{cycle_id}/geo.json. Copy the json response and paste into geojson.io. Map should show your seed properties
Any background context you want to provide?
What's this PR do?
Adds a public geojosn endpoint using existing functionality from the inventory export endpoint. Adds an org setting for public_geojson_enabled Moves some tax_lot_property functions to a reusable util.
How should this be manually tested?
With properties that have geo data like lat/long,
Test with endpoints disabled. Go to org settings and unselect either "enable public endpoints" or "enable public geojson". Go to /api/v3/public/organizations/{org_id}/cycles/{cycle_id}/geo.json. The endpoints should return an error message
Test with endpoints enabled. Go to /api/v3/public/organizations/{org_id}/cycles/{cycle_id}/geo.json. Copy the json response and paste into geojson.io. Map should show your seed properties
What are the relevant tickets?
4635
Screenshots (if appropriate)