Written and maintained by CASRAI Editorial Board
Published
On this page
Geocoding addresses means converting street addresses in a dataset into geographic coordinates (latitude and longitude) so each record can be placed on a map and analysed spatially. In research the work is never finished once the file comes back: you must report the match rate (the share of addresses that received coordinates), judge whether that share is enough for the spatial unit you analyse, and understand that a matched address can still sit in the wrong place.
What is geocoding?
Andresen and colleagues (2020) describe geocoding as placing geographically referenced data, most often addresses, on a map. It underpins spatial epidemiology, crime analysis, accessibility studies and any design that needs distance, area or neighbourhood context for a person, patient, school or event. Two distinct things can go wrong: the address may not be geocoded at all (a missing coordinate), or it may be geocoded to a position that is displaced from the true one (a positional error). Those two failures are measured differently, and mixing them up is the most common reporting mistake. Address records that identify people also raise privacy duties; see the 18 HIPAA identifiers and the HIPAA limited data set before sending patient addresses to any external service.
How address geocoding works
A geocoder compares each input address with a reference dataset and returns a location for the best match. With the US Census Bureau Geocoder, the required input is a structure number and street name, with city, state and ZIP code optional, and the returned latitude and longitude is calculated along an address range, that is, interpolated along a street segment. The Census service covers addresses in the United States, Puerto Rico and the US Island Areas, and it matches against benchmark reference files that are updated twice a year (named, for example, Public_AR_Current). Because the reference file changes, the benchmark and vintage you used are part of the method.
Nominatim, the geocoder built on OpenStreetMap data, accepts either a free-form query or a structured query with separate fields for house number and street, city, county, state, country and postal code. The two forms cannot be combined in one request, and the service may return fewer results than requested when the match is poor. The data behind it come from OpenStreetMap contributors, so coverage depends on where and how thoroughly an area has been mapped.
Match rate and positional accuracy
What is a geocoding match rate?
The match rate (also called hit rate) is the number of addresses that received a coordinate divided by the total number submitted, expressed as a percentage: match rate = matched / submitted × 100. It says nothing about whether the coordinates are correct.
Worked example
Suppose a hypothetical study submits 2,000 home addresses and the geocoder returns a coordinate for 1,690 of them (the figures are invented to show the arithmetic). The match rate is 1,690 / 2,000 = 0.845, or 84.5%. The unmatched share is 2,000 − 1,690 = 310 records, or 15.5%. If the analysis uses very small areal units, this is a hair under the 85% that has been widely cited as a minimum, so the researcher should look at why the 310 failed rather than only report the figure. The Census batch tool accepts at most 10,000 records per file, so a 25,000-record list would be split into three files (10,000 + 10,000 + 5,000), and the match rate is computed over the combined output.
Positional accuracy and the squeeze effect
Zandbergen (2008) points out that positional error in street geocoding is not random in direction. Because of incorrect address ranges, points are often displaced along the segment and to one side of the street, so errors are systematic rather than noise. How large they are varies with the quality of the street data, and they matter most for exposure measures such as distance to a major road. His recommendation is to assess misclassification with the actual geocoded locations rather than with simulated random displacement.
How many addresses must match?
Ratcliffe (2004) proposed a minimum acceptable match rate of about 85% for crime analysis, a figure with more than 300 citations. Andresen et al. (2020) tested that rule on crime point data from several cities, including Vancouver and Leeds, assuming unmatched records are missing at random and requiring a spatial similarity index (S-Index) of at least 0.90. They found the required rate depends on the number of points and on the size of the areal units: roughly 85% for the smallest units such as street segments, 50 to 70% for medium units and 10 to 30% for large units. Their rates are generally lower than earlier research suggested. The data table below sets the figures side by side. Their results come from crime data, so treat them as guidance for similar spatial point data, not as a universal threshold, and say which threshold you applied and why.
Interpreting a geocoding result
| What you see | What it tells you | What to do |
|---|---|---|
| Record returned with a coordinate (Census output: Match) | The geocoder found a candidate in its reference file; it does not prove the point is correct | Count it as matched; assess positional accuracy separately |
| Record returned without a coordinate (Census output: No_Match) | No candidate was found for the address as written | Inspect for spelling, street-type, missing-component and impossible-address problems; re-run after cleaning |
| Match rate below the threshold for your areal unit | Aggregated counts may be biased if failures are not random | Compare matched and unmatched records on key attributes before analysing |
| Points cluster on one side of streets | Possible address-range displacement | Use the real geocoded positions to test exposure misclassification |
Assumptions and common mistakes
- Treating match rate as accuracy. A 95% match rate can still hide large displacement.
- Ignoring why records failed. Andresen et al. (2020), citing Ratcliffe (2004), list spelling mistakes, wrong street-type abbreviations, impossible addresses and missing information as typical causes. Cleaning these first usually raises the match rate more cheaply than switching geocoder.
- Assuming failures are random. The minimum-rate results assume data missing at random; if unmatched addresses concentrate in rural or newly built areas, the sample is biased.
- Not recording the reference data. The benchmark, vintage and run date change results; without them the work cannot be reproduced.
- Uploading identifiable addresses without a data-handling check. Sensitive crime and health data raise privacy concerns when geocoded or reverse geocoded (Kounadi et al., 2013, as cited by Andresen et al.).
How to report geocoding in a paper
State the geocoder and its version or benchmark, the reference data and vintage, the date of the run, the input fields supplied, the number of records submitted and matched, the match rate, how unmatched records were handled (dropped, manually corrected or re-geocoded with another service), and any accuracy assessment. A template: “Addresses (N = 2,000) were geocoded with the US Census Bureau Geocoder (benchmark Public_AR_Current, run 14 November 2026). A coordinate was returned for 1,690 records (84.5%); the 310 unmatched records were reviewed, and 120 were corrected and re-submitted.” Replace every figure with your own; the numbers in this template are placeholders. APA 7 does not prescribe a geocoding format, so the rule is to give enough detail for replication. For related practice, see data management plans, which are the natural place to record where address data are stored and who can see them.
How to geocode addresses: Census batch, Python, R, Excel and Nominatim
The Census batch endpoint takes a headerless CSV whose columns are unique ID, street address, city, state and ZIP; the ID and street address are required, and fields containing commas must be quoted. The upper limit is 10,000 records per file. Locations are requested from https://geocoding.geo.census.gov/geocoder/locations/addressbatch; use geographies in place of locations to also return state, county, tract and block.
Command line
curl --form [email protected] --form benchmark=Public_AR_Current
https://geocoding.geo.census.gov/geocoder/locations/addressbatch --output result.csv
Python
import csv, io, requests
url = "https://geocoding.geo.census.gov/geocoder/locations/addressbatch"
with open("addresses.csv", "rb") as f:
r = requests.post(url, files={"addressFile": f}, data={"benchmark": "Public_AR_Current"})
rows = list(csv.reader(io.StringIO(r.text)))
matched = sum(1 for x in rows if x[2] == "Match")
print(matched, len(rows), round(100 * matched / len(rows), 1))
# matched rows: x[5] is "longitude,latitude" (longitude first)
R
res = read.csv("result.csv", header = FALSE, stringsAsFactors = FALSE)
mean(res$V3 == "Match") * 100 # match rate in percent
Excel
Open result.csv; the match indicator is in column C. With data in rows 1 to 2000, =COUNTIF(C1:C2000,"Match")/COUNTA(A1:A2000) returns the match rate as a proportion. Split the coordinate column with the Text to Columns command on the Data tab using a comma delimiter; the first value is longitude.
Nominatim
For small jobs, call https://nominatim.openstreetmap.org/search with q (free-form) or structured parameters such as street, city and postalcode, plus format=json and optionally addressdetails=1. Default limit is 10 results and the maximum is 40. Check the service’s usage policy before any bulk use. For working with the resulting points in Python, see GeoPandas; for sampling spatial units, see cluster sampling.
Frequently asked questions
What is the difference between geocoding and reverse geocoding?
Geocoding turns an address into coordinates; reverse geocoding turns coordinates into an address or place description. Reverse geocoding of sensitive data raises its own privacy concerns (Kounadi et al., 2013, cited in Andresen et al., 2020).
What match rate is good enough?
About 85% is the figure most often cited for small spatial units (Ratcliffe, 2004); Andresen et al. (2020) found lower rates can suffice for larger areal units. The right threshold depends on your units, point count and whether failures are random.
Why do some addresses fail to geocode?
Typical causes are spelling mistakes, wrong street-type abbreviations, impossible addresses and missing information.
Does the Census geocoder work outside the United States?
No. It only geocodes addresses in the United States, Puerto Rico and the US Island Areas.
Is a matched address always in the right place?
No. Interpolating along address ranges can displace points, often to one side of the street, so positional accuracy has to be assessed separately from the match rate.
Sources
- US Census Bureau, Geocoding Services API documentation, https://geocoding.geo.census.gov/geocoder/Geocoding_Services_API.pdf (read 2026-11-14); batch endpoint behaviour confirmed with a test request on the same date.
- Nominatim 5.3.3 manual, Search API, https://nominatim.org/release-docs/latest/api/Search/ (read 2026-11-14).
- Andresen, M. A., Malleson, N., Steenbeek, W., et al. (2020). Minimum geocoding match rates: an international study of the impact of data and areal unit sizes. International Journal of Geographical Information Science, 34(7), 1306-1322. https://doi.org/10.1080/13658816.2020.1725015 (read 2026-11-14).
- Zandbergen, P. A. (2008). Geocoding school and student’s home addresses: Zandbergen responds. Environmental Health Perspectives, 116(8), A330-A331. https://pmc.ncbi.nlm.nih.gov/articles/PMC2516583/ (read 2026-11-14).
Data: Geocoding match-rate guidance by areal unit size
Minimum geocoding match rates reported in the research literature, by size of areal unit, compiled from Andresen et al. (2020), which also reports the Ratcliffe (2004) rule of thumb. Rates apply to crime point data assuming missing-at-random failures and S-Index of at least 0.90.
| Areal unit scale | Minimum match rate (percent) | Source |
|---|---|---|
| Smallest units (street segments, mesh blocks) | about 85 | Andresen et al. (2020) |
| Medium units | 50 to 70 | Andresen et al. (2020) |
| Large units | 10 to 30 | Andresen et al. (2020) |
| General rule of thumb for crime analysis | about 85 | Ratcliffe (2004), as cited in Andresen et al. (2020) |
Sources
- Minimum geocoding match rates: an international study of the impact of data and areal unit sizes (accessed 2026-11-14)
Compiled by CASRAI from the sources above. Free to reuse under CC BY 4.0 with attribution.







