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

Geocode UBIDs using centroid #4610

Closed axelstudios closed 2 months ago

axelstudios commented 3 months ago

Any background context you want to provide?

Prior to this change, when importing a file with a UBID we were setting the PropertyState's latitude and longitude to the center of the UBID bounding box, which isn't necessarily representative of the footprint.

What's this PR do?

How should this be manually tested?

  1. Upload a file with a UBID like 85FPPRRC+XH9-7-8-3-6
  2. Confirm that the lat/long is 39.7424125, -105.178515625, NOT 39.7424625, -105.178484375

Screenshots (if appropriate)

The red dot represents the lat/long SEED was setting, the center the centroid (blue pin) is what is now used: image