Skip to content
oslew
Get a free key

Learn

Geocoding precision levels: rooftop, interpolated and coarser

Rooftop and interpolated are two precision levels a geocoder can report. A rooftop answer is a recorded address point that carries the exact house number asked for; an interpolated answer places a number the data does not hold between the two recorded numbers either side of it on the same street. Below them sit street, postcode and locality answers, each locating something larger. The level says what matched, a radius in metres says how far off the position can be, and together they decide what a result is fit for.

Last reviewed

Two geocoding answers can carry the same pair of coordinates and mean very different things. One is a recorded address point for the exact number asked for. The other is a street row the geocoder fell back to because the number was not there. Unless the answer says which, both look like a pin on a map, and an application treats them alike. Precision levels exist to tell them apart, and a geocoder is only as useful as it is honest about them.

The levels, finest first

Vendors name their levels differently, but many distinguish something like the following. The values in the middle column are oslew’s, as they appear in the precision field of each result.

Level Value What the position is
Address point rooftop A recorded address point that carries the house number asked for, where its source put it.
Interpolated interpolated A number the data lacks, placed between the recorded numbers either side of it on the same street.
Address row address An address record, without a house number to confirm.
Street street A row on the right street, with no number placed along it.
Place poi A named place — a museum, a shop — rather than an address.
Postcode postcode The mean position of a postcode’s address points.
Locality, region, country locality, region, country An administrative area. Reserved in oslew’s list of levels rather than returned by its native routes today, and used when a compatibility format maps to a vendor’s coarsest level.

The level is reported from what actually matched, never from what the query asked for. A query with a full street address can come back at street level, and the answer saying so is the point: an application can then decide to ask for a better address instead of sending a courier to the middle of a long avenue.

What “rooftop” does and does not mean

The word suggests a pin on a particular roof. What it actually means, here and in most of the industry, is that the address matched a point record carrying that house number. Where on the property that point sits is the choice of whoever published the address file: some sources record the entrance, some the middle of the building, some the middle of the plot. For most uses the difference is a few metres. For a large site — a hospital, a campus, an industrial estate — it can be the difference between one gate and another.

oslew adds one rule of its own. A rooftop position is always the address point as its source recorded it, and never a position snapped to a building outline taken from another dataset. Many building outlines in open data come from share-alike sources such as OpenStreetMap, and snapping to one would quietly change the licence of an otherwise permissive answer.

The radius in metres

Alongside every level comes precision_m, an estimate of how far the position can be from the thing it names. The level says what matched; the radius says how wrong the coordinates can be. The two are separate because the same level can mean very different things. An interpolated position between two numbers a few doors apart is nearly as good as an address point. An interpolated position between two numbers at opposite ends of a long block is not, and its radius — at least half the gap between the bracketing numbers — says so. A postcode’s radius is half the diagonal of the area its addresses span, which is a few hundred metres for a dense city code and kilometres for a rural one. A street answer’s radius describes the row that matched, not where along the street your number would be.

No position is finer than the storage grid, whose cells are a few metres across, so even an address point carries that much uncertainty. Read the radius when you decide what to accept; read the level when you decide what to say to a person.

How interpolation works, and where it refuses

Most addresses a geocoder is asked about exist. Many are simply missing from the address file — a new house, an incomplete source — while their neighbours are present. Because numbers usually run in order along a block, the missing one can be placed between them. The danger is that interpolation, done carelessly, invents positions: a number beyond the end of a street placed in a field, or a number bridging two separate stretches of a road that shares a name. oslew’s rules are strict for that reason:

  • Only the top result is interpolated, and only when the query carries a house number, the top result is an address or street row, and its own number is not already the one asked for.
  • Same street, same context. The two bracketing numbers are looked up on the same street within the same area.
  • Same side first. Numbers of the same parity are tried first — odd and even numbers usually face each other across the road — and mixed parity only if that finds nothing.
  • No extrapolation. A number above the highest recorded or below the lowest is not placed at all.
  • A maximum span. Two recorded numbers further apart than 1 km are treated as separate runs of the same street name, not one block, and nothing is placed between them.

When interpolation happens, the answer says so in four places: a top-level interpolated flag, a precision of interpolated, a between field naming the two recorded numbers, and a radius derived from their distance. A request can switch it off with interpolate=false and receive the nearest recorded row instead, which is the simplest way to see what it changed.

The effect on accuracy is measurable. On Mexico City held-out numbered addresses, postcode-scoped queries had a median error of 93 m with interpolation off and 19 m with it on; city-scoped queries went from 673 m to 162 m. The accuracy page has the full table and the method.

Which level should each use accept

There is no single right threshold. The level a result must reach depends on what happens next:

Use Accept Review or reject
Delivering to a door Address points; interpolated answers with a small radius Street, postcode and locality answers
A field visit where the worker can call ahead Address points and interpolated answers; a street answer with a small radius Postcode and coarser
Choosing the nearest branch or store Anything down to street or postcode level Locality answers where branches are close together
Sales territories and area reporting Postcode level or finer Locality answers, for territories smaller than a town
A pin on a map for browsing Any level, with coarse answers drawn as areas —
Jurisdiction, tax or regulatory questions Not a point-precision question at all Use the administrative areas containing the point

For jurisdiction in particular, the answer is not a finer geocode but the administrative divisions around the position, which reverse geocoding returns as a chain — and administrative areas are not tax districts, so a tax decision should not rest on them alone.

Reading precision in a pipeline

In code, read the tie count first, then the level, then the radius, then the confidence. A tied answer has no single right level to read. A coarse level makes the confidence of little interest, because even a certainly-right street does not locate a door. Batch geocoding returns the level and radius on every row, so the same checks become columns, and the customer data clean-up sorts rows on exactly these fields. Store the level and radius with the coordinates, always: a coordinate without them cannot later be told apart from a better one. For why an answer lands on the wrong street even at address-point level, see why geocoders pick the wrong street.

Bottom line

Rooftop means a recorded address point for the exact number; interpolated means a well-bounded estimate between two recorded neighbours; street, postcode and locality locate progressively larger things. Decide per use which levels to accept, read the radius in metres rather than the label alone, and keep both beside every coordinate you store.

Questions

What is rooftop geocoding?

A result located at a recorded address point that carries the house number you asked for. The point is wherever the address’s source put it — an entrance, the middle of a building, the middle of a plot — so the label describes what matched, not a surveyed spot on a roof. In oslew it is never a position snapped to a building outline.

What is interpolated geocoding?

Placing a house number the data does not contain by estimating its position between the two recorded numbers either side of it on the same street, in proportion to the numbers. It is often close, because numbers usually run in order along a block, and it is clearly labelled, with the two numbers it was placed between.

Is an interpolated result good enough for deliveries?

Often, when its radius is small: a number placed between two neighbours a few doors apart is close to the right building. When the recorded numbers either side are far apart, the radius grows to match, and the position is only good for finding the right part of the street. Accept interpolated answers below a radius you choose and review the rest.

What does the precision radius in metres mean?

It is how far the position can be from the thing it names. For an interpolated answer it is at least half the distance between the two recorded numbers it was placed between; for a postcode it is half the diagonal of the area its addresses span. The label says what matched, and the radius says how much to trust the coordinates.

Why did my address come back at street level?

Because the house number did not match a recorded address point and could not be interpolated — the number was missing from the query, lay beyond the highest or lowest recorded number, or the numbers either side were too far apart. The answer then locates a row on the street, not your door, and says so rather than pretending otherwise.

Browse every page →