Skip to content
oslew
Get a free key

Learn

Address validation vs geocoding

Address validation and geocoding answer different questions about the same text. Validation asks whether the address is right — does it exist as written, which parts disagree with the record, what should it have said — and answers with a verdict. Geocoding asks where the text points, and answers with coordinates, ranked candidates and evidence of how far to trust them. Validate while a person can still correct the address; geocode when you need a position for addresses you already hold; use both when you need an address that is right and located.

Last reviewed

People searching for an address API often use “validation”, “verification” and “geocoding” as if they were one service. They are related — the same address data can sit under all three — but they answer different questions, return different kinds of answer, and fail in different ways. Choosing the wrong one produces errors that look like successes. This page sets the two side by side, without assuming any particular provider.

Two questions, two kinds of answer

Address validation Geocoding
The question Is this address right, and if not, what should it be? Where does this text point?
The answer A verdict, a grade for each part, a corrected form Coordinates and ranked candidates, with evidence
The unit of judgement Each component — number, street, town, postcode Each candidate as a whole
What “no” looks like An explicit verdict that the address was not confirmed An empty list, or a coarser match further away
A house number not in the data Reported as a disagreement Often estimated between its neighbours
Several equally good matches The record agreeing on the most parts is kept Broken by a secondary rule; a careful geocoder also reports the tie
Best moment to call it While the person who typed it can still fix it Whenever a position is needed

Both begin the same way. The text is normalised — case and accents folded, abbreviations expanded, the house number separated from the street — so that Av. Insurgentes and avenida insurgentes are the same words. After that the two diverge, because they want different things from the match.

Why a geocoder is not a validator

A geocoder is built to find something. Faced with messy input, it does what a helpful person would: it matches most of the words when not all of them fit, repairs a misspelling, drops a town it cannot recognise and searches without it, and places a missing house number between the numbers either side. Every one of those behaviours makes a geocoder better at placing real addresses written badly. Every one also means that an address which does not exist can come back with a sensible-looking position.

A careful geocoder labels each of those rescues — a repaired match, a fallback, an interpolated number, a tie — and those labels can be used to flag doubtful answers. That is exactly how a bulk clean-up of old data should work. It is still a different thing from asking, of each part of the address, whether it is right.

Why a validator is not a geocoder

A validator is built to check, so it declines to invent. A house number that is not recorded on the street is reported as a contradiction, not estimated. A street that shares only a generic word with the nearest record — calle, avenida, street — is treated as a mismatch rather than a partial success. When several records could match, it keeps the one that agrees on the most parts, because its question is agreement, not location.

That strictness is what makes a validation verdict actionable: it can point at the one field a person should look at again. It is also why a validator is the wrong tool for placing a list of addresses you already hold. It will tell you how many are wrong, but not where the approximately right ones are.

When you need validation

  • An address is being typed by a person who is still there — a checkout, a sign-up, an account’s address book. A verdict can become a specific question on the form, and the person can answer it.
  • You are about to rely on the exact address, not just the position: printing a label, creating a customer record that other systems will match against, sending a document to a legal address.
  • You want a consistent stored form. A validated address comes back as graded, normalised parts, which makes deduplication and later matching far easier than comparing strings people typed.

When you need geocoding

  • You need a position — for a map, a distance, a route, a territory, a nearest-branch calculation.
  • You already hold the addresses and nobody is present to correct them: a warehouse table, an import, a file from a partner.
  • The text is not a postal address at all — a landmark, a business name, a neighbourhood — which a validator has no verdict for.
  • You have coordinates and want an address, the reverse direction, which only a geocoder offers.

When you need both

The two are often used in sequence, and the order matters. In a form, validate on submit: a confirmed or corrected address already carries a position, so most orders need no separate geocode, and only an address the customer insisted on keeping as typed needs one — flagged as an estimate. The checkout form use case works through that flow and the action for each verdict.

For data you already hold, reverse the order. Geocode everything in one pass, because it is fast and returns evidence on every row, then validate only the rows whose evidence leaves them in doubt. Validating the whole table first would spend effort confirming addresses the geocoder had already placed without hesitation. The customer data clean-up is that workflow in full.

What neither tells you

  • Deliverability, unless the service checks against a postal operator’s delivery file. Open address data can say an address matches a record, not that a carrier serves it.
  • That anyone lives or trades there. Both work on addresses, not occupants.
  • Anything newer than their data. A new development can be unconfirmed by a validator and placed only at street level by a geocoder while being entirely real.
  • Precision beyond the record. A matched address point is wherever its source recorded it; geocoding precision levels explains what each level of a geocode locates.

For oslew’s implementation of each — the four verdicts and component grades on one side, ranked candidates with precision, confidence and tie counts on the other — see the address validation API and the geocoding API. Both are part of the Address product and draw on the same rate.

Bottom line

Validation answers “is it right?” and geocoding answers “where is it?”. Use validation where a person can act on a verdict, geocoding where you need positions for addresses you already have, and both — validation first in forms, geocoding first in bulk — when you need an address that is correct and located.

Questions

Is address validation the same as geocoding?

No. Geocoding turns text into a location and will do its best with incomplete or misspelt input. Validation judges whether the text is a correct address, part by part, and says which parts are wrong. They often run on the same address data, but a geocoder is built to find something and a validator is built to check something.

Can I use a geocoder to validate addresses?

Only loosely. A good geocoder reports what it matched and how confident it is, which catches many bad addresses. But it is designed to be forgiving — repairing typos, estimating missing house numbers, falling back when context fails — so a plausible position can come back for an address that does not exist. A validator’s job is to notice exactly those cases.

Does address validation return coordinates?

Usually, when the address matched a record: a confirmed or corrected address comes with the position of that record. What a validator will not do is estimate a position for an address it could not match. For that, geocode it, and treat the estimate as the geocoder labels it.

Does address validation prove an address is deliverable?

It depends on what the validator checks against. One built on a postal operator’s delivery file can speak to deliverability; one built on open address data says whether the address matches a recorded address, which is a different claim. Neither knows about a building finished last month, so an unconfirmed verdict is a question to ask, not proof the address is fake.

In a checkout, should I validate or geocode first?

Validate, when the customer submits. They are still present to fix a wrong part, and a confirmed or corrected result already carries a position. Geocode afterwards only for addresses the customer insisted on keeping as typed, and flag those positions as estimates.

Browse every page →