Data quality

Confidence scoring: what goes into the number

A confidence score presented as a single number between 0 and 1 can look deceptively simple, as if it were one direct measurement rather than the combined output of several distinct signals about how sure a match actually is. Understanding roughly what feeds into that number makes it far more useful than treating it as an opaque probability to be filtered above or below an arbitrary threshold picked without much thought.

One major input is how completely the original query matched the underlying reference data. An address that matched every component exactly, house number, street name, locality, postal code, all aligning cleanly with a single known record, produces higher confidence than one where some components were missing, misspelled, or had to be inferred through fuzzy matching to find the closest plausible candidate. The more the geocoder had to guess or fill in gaps, the more that uncertainty should reasonably be reflected downward in the score.

A second input is ambiguity in the match itself, specifically whether more than one plausible candidate existed for the same input. A street name that is unique within the specified city produces a more confident match than a street name that exists in several different areas within the same broader search region, forcing the geocoder to pick the most likely candidate among genuine alternatives rather than resolving to a single unambiguous result.

A third input is the underlying data quality and density for that specific location, tying directly back to patterns like the rural versus urban gap and the country-by-country variation in postal data quality covered elsewhere. A match against a sparse, less frequently verified area of the reference data reasonably carries lower confidence than an equivalent match against a densely mapped, frequently verified urban area, even when both matches technically found and returned a result.

Given all of this, the most useful way to work with confidence scores in your own application is empirical rather than theoretical. Run a representative sample of your own real queries, look at how confidence tends to distribute for results you can independently verify as correct versus incorrect, and set your own threshold based on that distribution rather than an assumed cutoff that sounds reasonable in the abstract. A threshold appropriate for validating shipping addresses, where a wrong result has a real cost, should reasonably be stricter than one appropriate for rough regional analytics, where an occasional imprecise match barely matters.

Both forward and reverse geocoding return confidence alongside precision specifically so you can build this kind of calibrated, use-case-specific threshold rather than treating every match above zero as equally trustworthy.