SEED-platform / seed

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.
Other
106 stars 55 forks source link

Add public geojson endpoint #4670

Closed perryr16 closed 2 days ago

perryr16 commented 1 month ago

Any background context you want to provide?

What's this PR do?

How should this be manually tested?

With properties that have geo data like lat/long,

  1. 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

  2. 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

  3. Add query_param "?taxlots=true" to return only taxlots

What are the relevant tickets?

4635

Screenshots (if appropriate)

Screenshot 2024-05-03 at 11 22 19 AM Screenshot 2024-05-14 at 2 08 16 PM

perryr16 commented 1 month ago

Updated help text Screenshot 2024-05-29 at 11 42 26 AM