This ports over the name search and chamber search calls to use the Pro Publica Congress API.
The name search was previously done server-side, and only by a last name filter. The search is now more expensive and done client-side, after fetching both chambers' worth of members using 2 API calls, but the name search is also now more flexible, and will match on any fragment in the first, middle, or last names.
This ports over the name search and chamber search calls to use the Pro Publica Congress API.
The name search was previously done server-side, and only by a last name filter. The search is now more expensive and done client-side, after fetching both chambers' worth of members using 2 API calls, but the name search is also now more flexible, and will match on any fragment in the first, middle, or last names.