Skip to content
oslew
Get a free key

Learn

How to choose a geocoding API

Choose a geocoding API on three things before its price: whether you may keep what it returns, how accurate it is on a sample of your own addresses, and how its bill behaves at your real volume, retries and spikes included. After those come the questions that separate finalists — which map results may be shown on, whether each answer says how far to trust it, what happens when you send too fast, and how much code you would have to change to leave.

Last reviewed

Most geocoder evaluations come down to a price per thousand requests and a few addresses typed into a demo box, and neither predicts much: the price says nothing about what a retry loop or a backfill will cost, and a demo address is usually one every provider places correctly. The questions below decide whether a geocoder still suits you a year after the integration ships, in roughly the order in which they rule candidates out.

Start from the job the geocoder will do

The checklist weighs differently depending on where the requests come from. An interactive integration — an address form, a search box — cares about latency, about how many requests a person generates before they finish typing, and about showing a doubtful answer as a choice rather than a guess. A back-office integration — cleaning a customer table, geocoding orders overnight — cares about throughput, about what a million-row job costs, and above all about whether the coordinates may be kept. An analytical one — joining points to boundaries, enriching records for reporting — cares most about licences, because what it produces is a database that may later be shared. Know which you are, and your busiest minute, before opening any price list.

How the bill behaves at your volume

Geocoders are sold per request in volume bands, as a daily allowance inside a monthly plan, as a subscription, or as capacity — a sustained rate for a flat price. The model matters more than the headline figure, because it decides what unplanned traffic costs: autocomplete keystrokes, retries through an incident, a one-off backfill, a bug that geocodes the same address on every page view. Per-request pricing bills all of it; a daily allowance can run out on it; capacity pricing bills none of it, but refuses anything faster than the rate you bought until you slow down.

So model three numbers, not one: the requests in a normal month, the requests in your busiest minute, and the size of your largest one-off job. How geocoding API pricing works sets the models side by side with each vendor’s published figures. oslew is priced as capacity — the Address plan is $99 a month for 20 requests a second sustained, burst 100 — and the pricing page lists the other plans.

What you may keep, and for how long

If you intend to store coordinates — on a customer record, in a warehouse, in a dispatch system — read the storage terms before the accuracy claims, because they can rule a provider out on their own, and they vary widely. Google’s caching clause shows how narrow a term can be: Latitude and longitude from the Geocoding API may be cached for up to 30 consecutive calendar days and must then be deleted; indefinite caching is allowed only to support the end-user feature that made the request, kept per end user and not as a replacement for further calls. (Google Maps Platform, read 24 Sep 2026) Mapbox ties the right to keep results to which of its two geocoding products you call: Temporary geocoding results may not be cached; Permanent results may be cached and stored indefinitely, which requires a valid credit card on file or an active enterprise contract. Requests are Temporary by default. (Mapbox, read 24 Sep 2026) OpenCage sits at the other end of the range: Results may be cached or stored for as long as you like, on the free trial or a paid plan and after you stop being a customer; there is no separate price for permanent storage. (OpenCage, read 24 Sep 2026)

Ask four things of every candidate: may coordinates be stored at all; for how long; whether that right survives the end of your contract; and whether a database built from them may be shared with anyone else. Can you store geocoding results? works through the providers one by one. On oslew the answer depends on the layer behind each result: address and place answers are permissively licensed and may be kept, while boundary, time-zone and road answers are ODbL, storable but carrying share-alike into any database you share. The licensing page is the layer-by-layer statement.

Which map the results may appear on

A less obvious term decides where results may be displayed. If your application already draws its own map — MapLibre over your own tiles, a GIS package, a printed report — check whether the geocoder’s terms let its output sit beside a map from someone else. Google’s display clause settles it for Google: Geocoding API content may be used without a map, but must not be used in conjunction with a non-Google map. (Google Maps Platform, read 24 Sep 2026) HERE draws its line around combining its results with other data: HERE Content or Results may not be used with non-HERE datasets in end-user applications, except that customer and third-party content may be layered or combined with them where the origin of each can be distinguished and attributed. (HERE Technologies, read 24 Sep 2026)

oslew attaches no condition about the map. Its results may be drawn on any map, or on none, provided the attribution for the underlying data goes with them.

Accuracy on your own addresses

Published accuracy figures are measured on somebody else’s addresses, in somebody else’s city, against somebody else’s idea of a correct answer. The only figure that transfers to your application is one measured on your own data, and the method for getting it — a hold-out evaluation — is not difficult to run:

  1. Collect addresses whose true position you know from something other than a geocoder: delivery confirmations with a driver’s GPS fix at the door, surveyed sites, meter locations. A few hundred shows the shape of the error; a couple of thousand makes the tail trustworthy.
  2. Keep the sample honest. Do not draw it from a public address file the provider has probably ingested, because a geocoder graded on data it already holds is being tested on memory.
  3. Send each address as production will, with the same fields, the same formatting and the same missing parts your real traffic has. Clean, complete test addresses flatter every provider and tell you little.
  4. Measure distance, not match rate. For each answer, compute the distance from the returned point to the known one, then report the median, the ninetieth percentile and the share inside a distance your application cares about — a doorstep, a block, a delivery zone.
  5. Break the errors down by the precision and confidence the provider claimed. A useful geocoder’s own signals separate its good answers from its bad ones; if its most confident answers are as wrong as its least, the confidence is decoration.
  6. Count the non-answers separately: empty results, answers only at locality level, and answers where several candidates tied.

Give the ninetieth percentile most of your attention. A median hides the addresses that land on a same-named street across town, and those are the ones customers ring about. The accuracy page publishes oslew’s own hold-out with its seed and every configuration measured, including the unflattering ones, and it shows why step three matters: measured on Mexico City held-out numbered addresses, queries carrying a postcode land a median 19 m from the true point, while the same addresses sent with only the city land a median 162 m away. No head-to-head test of oslew against another provider has been published, so run yours against every candidate on the same sample.

Whether each answer says how far to trust it

A coordinate alone cannot tell you whether it marks the front door or the middle of a city. Look for three things in a response. Precision should say what actually matched — an address point, a position interpolated between house numbers, a street, a locality — and it should be derived from what matched rather than from what was asked. Confidence should be checkable: a calibrated figure says how often answers of this kind have been right, whereas a similarity score only says how alike two strings were. And the response should say when the text named several places equally well, so the application can ask the person instead of choosing for them.

Those fields are what let an integration send a doubtful answer to review instead of into a delivery van. Geocoding precision levels covers how to act on each precision level, and why geocoders pick the wrong street explains where confidently wrong answers come from.

The licence underneath the provider

A provider’s terms are a contract with you; the data’s licence travels with the data, and it can bind a database you build long after the contract ends. Many geocoders are built wholly or partly on OpenStreetMap, whose ODbL is a share-alike licence; others use permissively licensed sources or data of their own. Ask which licence applies to each kind of result, and whether the response states it per record, because one answer can mix layers. Overture Maps versus OpenStreetMap explains where the open licences come from.

What happens when you send too fast

Every provider limits speed, and how the limit is enforced matters as much as where it is set. A refusal may arrive as HTTP 429 with a Retry-After header, as overage on the next invoice, or as a status field inside an otherwise successful response that a client checking only the HTTP status will miss. At the far end sits the public Nominatim instance, whose policy sets the ceiling low and plainly: The public nominatim.openstreetmap.org instance allows no heavy use, with an absolute maximum of 1 request per second, counted across all users of an application together. (Nominatim (OpenStreetMap Foundation public instance), read 24 Sep 2026)

Ask what the default rate is, whether it applies per key or per account, what a refusal looks like on the wire, and whether retried requests are billed. oslew refuses with HTTP 429 and a Retry-After header, and because nothing is billed per request a retry costs only time. Rate limits versus quotas covers writing a client that behaves well under either kind of limit.

What arriving and leaving cost

The cost of a switch sits mostly in code already written — call sites, response parsers, test fixtures — and in identifiers you stored. Those are the trap: a place ID from one provider means nothing to another, so a table keyed on them has to be geocoded again rather than translated.

Ask whether a candidate offers a compatibility route for your current provider’s request and response shape. oslew serves the Google Geocoding, Mapbox Geocoding v5, Nominatim and LocationIQ shapes at their own paths with its own data inside, so a first test is a change of base URL and credential. Parameters with no equivalent — language, components, bbox, country — are accepted and ignored rather than refused, and the switching guides list them provider by provider. The migration checker needs no key: give it one of your existing request URLs and it says what that request becomes.

Where your queries go

An address is usually personal data, and a geocoding request pairs it with a moment: who was looked up, and when. Ask what the provider logs, for how long and where requests are processed. For some buyers — public bodies, health providers, anyone bound by a residency clause — the real question is whether queries may leave their jurisdiction at all, and the only full answer is a deployment they control.

oslew’s hosted service answers the logging question by construction: The query log’s event has no field for an IP address, an API key, the text of a query or a precise coordinate, so none of them can be written. Where that is not enough, dedicated, in-region and on-premises deployments are available on request, as sovereign hosting describes, and what a geocoding request reveals covers the privacy question in full.

A scoring sheet

Question Why it matters Warning sign
How is it priced? It decides what spikes, retries and backfills cost You cannot say what your busiest day would cost
May I keep results? It decides whether a geocoded table can exist A time limit on coordinates you need to keep
Which map may I use? It decides your mapping stack Results tied to one vendor’s map
How accurate is it on my data? It is the only accuracy figure that transfers A published figure with no stated method or place
Does each answer carry precision and confidence? It lets doubtful answers go to review Every answer looks equally certain
Which licence does the data carry? It binds databases you build and share Nobody can say which licence a result carries
What happens under load? It decides behaviour in an incident Refusals you cannot tell apart from errors
What would leaving cost? It decides your exit and your entry Stored identifiers only one provider understands
Where do queries go? It decides whether you may send the data at all No statement of what is logged or where

Where oslew is the wrong choice

Some requirements rule oslew out today, and they are better known before a test than after one:

  • Geocoding has no language, bbox, country or types parameters. Context after the last comma narrows a search, and near is a hard filter to a cell of about 10 km, not a preference for nearby answers.
  • Its places come from open data. For named points of interest — shops, venues, landmarks — the large commercial databases hold names that open data does not.
  • The API is pre-release, and it carries no SLA outside a negotiated Enterprise agreement.
  • Keys are server-side only. The service sends no CORS headers, so a browser page cannot call it directly.
  • Autocomplete suggestions carry no confidence score, because a half-typed query has no right answer yet.

Bottom line

Choose a geocoder by its terms first and a test second, and by its price only once both have passed. Read what you may keep and where you may show it; run a hold-out test on your own addresses and judge it by the ninetieth percentile, not the median; then price your busiest minute and your largest one-off job under each model. The remaining questions — behaviour under load, the cost of leaving, and where the queries go — are what separate the finalists.

Questions

What matters most when choosing a geocoding API?

For most buyers it is whether the results may be kept, then accuracy on their own addresses, then how the bill behaves at their real volume. A storage clause can rule a provider out on its own if you need coordinates on customer records, and no discount or accuracy figure fixes that. Price comes last because it only compares providers that have passed the first two tests.

How do I test a geocoder’s accuracy on my own data?

Take a sample of addresses whose true positions you know from something other than a geocoder, such as GPS fixes from completed deliveries. Send them exactly as production would, measure the distance from each answer to the true point, and compare the median and ninetieth-percentile errors across providers, broken down by the precision and confidence each answer claimed.

Is a more expensive geocoding API more accurate?

Not necessarily, and price is a poor proxy for it. Accuracy depends mostly on what address data a provider holds for the places your customers are, and on how much context your queries carry. A provider can be strong in one country and weak in the next, which is why a hold-out test on your own sample is the comparison worth trusting.

How hard is it to switch geocoding providers?

It depends on how much of the old provider’s request and response shape your code relies on, and on what you stored. A compatibility route that accepts your current requests turns the first step into a base-URL change. Stored provider identifiers are harder: one provider’s place ID means nothing to another, so those rows have to be geocoded again.

Should geocoding queries be treated as personal data?

Usually, yes. An address identifies a household, and a query ties it to a time and an account. Ask any provider what it logs, for how long and where requests are processed, and whether it can run in your own region or infrastructure if a contract or a regulator requires that.

Browse every page →