Better Zipcode Endpoint
Closed this issue · 0 comments
rgraue commented
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.
- simple return next closest data. let client handle if not exact zipcode
Risks
[Add Risks]
Related Issues Or Discussions
[...Issues]