My use case is simple; I have a country code and a postal code. I want lat/lon back. Take the following query:
This returns 5986 results, the first of which is a hit for Thomas, OK. I provided a postalCode explicitly, so I'm not sure why a fuzzy search is being performed. On top of that, I see no way to filter this result out as incorrect. I noticed the "fuzzyLevel" field in the "summary" section and thought I could perhaps use that. Unfortunately, the docs (useless autogenerated nonsense) have this to say about it:
fuzzyLevel integer FuzzyLevel property
`Well that's certainly helpful. I played around with it but, unfortunately, the query aboev comes back with "fuzzyLevel: 1", the same as an exact match. Using the postalCode "error" returns a 2, so that can be filtered, but not universally helpful. I also noticed that there is no postalCode included in the "address" response for postalCode: Thomas. I of course have no idea if I can count on this behavior though, so I am hesitant to rely upon it. Is there a simple way I can request that only an exact match on the field(s) I provide be used, otherwise return nothing? I have no use for these wild guesses.
Would filtering by result.entityType.PostalCodeArea be correct here?
Edit: Nope! Some responses don't have an entityType field at all! e.g. E6L 2H2, CA