Skip to content

feat(cep): add external CEP lookup and normalization functionality#320

Open
vini-sousa wants to merge 1 commit intomainfrom
feature/adiciona-dne-alternativo
Open

feat(cep): add external CEP lookup and normalization functionality#320
vini-sousa wants to merge 1 commit intomainfrom
feature/adiciona-dne-alternativo

Conversation

@vini-sousa
Copy link
Copy Markdown
Contributor

  • Implemented fetchCepFromExternalProviders to retrieve postal code data from external APIs (BrasilAPI, OpenCEP, ViaCEP) with fallback logic.
  • Added caching mechanisms for CEP lookups to improve performance and reduce external calls.
  • Introduced normalization functions for Brazilian postal codes and mapping responses from external services.
  • Created unit tests for the new functionality, ensuring robust validation of external lookups and data normalization processes.
  • Updated the main DNE_CEP_List function to utilize the new external lookup capabilities when local data is unavailable.

- Implemented `fetchCepFromExternalProviders` to retrieve postal code data from external APIs (BrasilAPI, OpenCEP, ViaCEP) with fallback logic.
- Added caching mechanisms for CEP lookups to improve performance and reduce external calls.
- Introduced normalization functions for Brazilian postal codes and mapping responses from external services.
- Created unit tests for the new functionality, ensuring robust validation of external lookups and data normalization processes.
- Updated the main DNE_CEP_List function to utilize the new external lookup capabilities when local data is unavailable.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant