TheDarkFlame / housingEnricherNL

1 stars 0 forks source link

Enhancement - Improve edge case eponline searches #8

Open TheDarkFlame opened 1 year ago

TheDarkFlame commented 1 year ago

Problem: certain search queries on eponline fail when the address is correctly listed. This happens for one of two reasons:

  1. The address is not properly matching the eponline format
  2. There are multiple pages of results, at the moment only the first page is being processed

Goals:

  1. Detect when the page indicates "Er is geen registratie gevonden." and distinguish this from when there are results which didn't match
  2. handle a broader set of matches.
  3. if match fails, offer set of buttons containing all possible matches/ or just list all matches densely in the enrichment

Initial test cases: 3051GK 89a -> fails 1314CG 1 1404 -> fails (but 1314CG 1 works) 3012EG 119D -> no reg 1354AC 100 4.03 -> weird listing address, but exists 9743AA 141 267 -> 512 results 2245BH 25 Type D -> weird listing address, many results, likely exists