department-of-veterans-affairs / va.gov-team

Public resources for building on and in support of VA.gov. Visit complete Knowledge Hub:
https://depo-platform-documentation.scrollhelp.site/index.html
281 stars 197 forks source link

Validate 21a addresses #89995

Open gabezurita opened 1 month ago

gabezurita commented 1 month ago

ARM's Find a Rep (FAR) uses LH address validation before displaying Google Maps links to Representatives for 2122 requests. They do not display invalid addresses.

Given GCLAWS will not implement address validation until a few more quarters (per their estimate), it would be good to validate addresses on the vets-api side before sending them to the GCLAWS API.

AC

holdenhinkle commented 1 month ago

ARM Address validation using the Lighthouse Address Validation API - https://github.com/department-of-veterans-affairs/vets-api/blob/master/modules/veteran/app/sidekiq/representatives/update.rb#L39