climate-cooperative / home-energy-assessment-database

Documentation, conversions, and data supporting Climate Cooperative's home energy audit and calculation tools.
Apache License 2.0
3 stars 4 forks source link

Better Zipcode Endpoint #48

Open rgraue opened 1 month ago

rgraue commented 1 month ago

Description

We need the zipcode endpoint to not act as a simple CRUD endpoint. It needs to be able to always return zipcode info within a degree of input.

When a request to the zipcode endpoint given the zipcode is a valid entry then return the 1) the exact zipcode info if a 1:1 match, 2) the next closest available zipcode data if not 1:1 match.

If zipcode is invalid return [].

Technical Notes

How zipcodes works = https://en.wikipedia.org/wiki/ZIP_Code#:~:text=ZIP%20Codes%20are%20numbered%20with,delivery%20addresses%20within%20that%20region.

Risks

[Add Risks]

Related Issues Or Discussions

[...Issues]