Queria

Queria Geocoder

Converts Japanese addresses into latitude, longitude, municipality codes, census small-area codes and postal codes.The results can be joined directly with population, land price and other statistics. Free to use, no sign-up required.

Correct municipality
98.5%
Lot or block level or finer
91.4%
Median error
40 m

Measured on 1,420 Japanese addresses (November 2026). See Accuracy below for the comparison.

Area codes

Along with latitude and longitude, each response includes area codes for joining statistics. You don't need to overlay the coordinates on boundary data to determine the codes.

  • Municipality code (local government code): join statistics by municipality
  • Census small area code: join population and households by chome
  • Grid square code (1km, 500m, 250m): join grid statistics
  • Postal code, and the town, block and building IDs of the Address Base Registry

Queria's datasets use the same codes, so converted addresses join directly with population and land price tables. When an address is matched only to the town level, the small area and grid square codes are also determined from the town's representative point, so in a large town they may not match the actual location.

Example: add chome population and households to addresses

In DuckDB, get the census small-area code from each address and join it with Queria's e_stat table. Set up geocode.sql as described in the DuckDB tab below.

.read geocode.sql
INSTALL ducklake;
LOAD ducklake;
ATTACH 'ducklake:https://data.queria.io/e_stat/ducklake.duckdb' AS e_stat (READ_ONLY);

SELECT g.address, g.small_area_code, s.area_name, s.jinko AS population, s.setai AS households
FROM geocode(['東京都千代田区丸の内1-9-1', '東京都千代田区千代田1-1']) g
LEFT JOIN e_stat.boundary.small_area s ON s.key_code = g.small_area_code;

The result is the 2020 census population and household count of the chome the address point falls in. Tables such as population by age join on the same small-area code.

Use cases

  • Map a list of facilities

    Lists published by municipalities, such as shelters, nurseries or care providers, often have addresses but no latitude and longitude. Geocoding the CSV adds latitude, longitude and area code columns, so you can load it into GIS software.

  • Count customers or members by chome

    Count addresses by small-area code and join the population of each chome on the same code to compare users per resident across chome.

  • Normalize address notation

    Variations such as “1-3” and “1丁目3番” are normalized to the notation used in the Address Base Registry.

  • Reverse geocode a location

    Get the address, municipality code and small area code from a location recorded on site or from a photo's location data.

How it works

The Digital Agency's Address Base Registry (Japan's national address data) is imported every month into tables for address matching. For each address, the geocoder first identifies the prefecture and municipality, then matches the rest against only that municipality's town and number tables. It returns the latitude and longitude of the representative point of the matched town or number.

Writing variations such as “1-3” versus “1丁目3番”, or old and new kanji forms, are normalized before matching. Reverse geocoding returns the address point nearest to the selected location.

About the data

  • Built on the national address data

    The Digital Agency's Address Base Registry is imported every month. Every response includes its sources and the date of the data.

  • Matching rules and code are open

    The rules for normalizing and matching addresses are based on abr-geocoder, published by the Digital Agency. The code is open so anyone can check it.

Source code

Accuracy

We geocoded 1,420 Japanese addresses (official land price points, designated shelters, schools, long-term care facilities and disability welfare facilities) with four free geocoders under the same conditions and compared the results with the published municipalities and coordinates (November 2026). Addresses were sampled by writing pattern, such as no municipality name, 甲乙丙丁 prefixes and 地割. The method and results by pattern are in BENCHMARK.md.

GeocoderResponse rateCorrect municipalityLot-level or finerMedian errorError within 100 mError over 1 km
Queria Geocoder100%98.5%91.4%40 m72.8%6.5%
jageocoder100%96.2%86.0%47 m66.8%9.9%
abr-geocoder (Digital Agency)100%98.0%49.5%93 m50.8%17.1%
normalize-japanese-addresses (Geolonia)96.9%95.2%54.4%156 m42.7%16.9%
Breakdown of errors (1,420 addresses)
  • Within 100 m
  • 100 m to 1 km
  • Over 1 km
  • No result
Queria Geocoder
Within 100 m: 72.8%100 m to 1 km: 20.7%Over 1 km: 6.5%
jageocoder
Within 100 m: 66.8%100 m to 1 km: 23.4%Over 1 km: 9.9%
abr-geocoder
Within 100 m: 50.8%100 m to 1 km: 32.0%Over 1 km: 17.1%
normalize-japanese-addresses
Within 100 m: 42.7%100 m to 1 km: 37.9%Over 1 km: 16.3%No result: 3.1%

Breakdown of the same measurement as the table above. The shares are of all 1,420 addresses, including those with no result, so they differ from the table's error over 1 km, which counts only addresses that returned coordinates. Most addresses over 1 km off are ones for which only the town's representative point is available.

Matching up to the municipality is based on abr-geocoder. After that, a small set of rules matches the town and number, such as taking the longest town and number that match from the start of the address. We combine points from the Address Base Registry and MLIT's location reference data, and for each address return the point from the source measured to have the smallest error. Lots without their own point are placed at the point of their parent lot (○番地).

  • Down to block and building number

    For addresses in the residential address system (○丁目○番○号), the point near the building is returned.

  • Lot-number addresses

    The point of the lot, or of its parent lot number (○番地), is returned. Lots with neither get the representative point of the town.

  • Down to town or chome

    When the number cannot be matched or has no point, the representative point of the town or chome is returned. It can be off by a few hundred meters. Towns without a point get the point of the larger district (ōaza) or the municipality.

Reverse geocoding returns the address of the nearest representative point. Near town boundaries, the result may be the adjacent town.

Use it from the API and tools

The same features are available as an API, with no sign-up or API key. Fields are described in the API reference, and the code is on GitHub.

Send one address and get latitude, longitude and area codes back as JSON.

curl -s -G https://geocoder.queria.io/v1/forward \
  --data-urlencode "address=東京都千代田区紀尾井町1-3" \
  --data-urlencode "include=codes,small_area"

The first result is the most likely candidate.

import requests

r = requests.get(
    "https://geocoder.queria.io/v1/forward",
    params={"address": "東京都千代田区紀尾井町1-3", "include": "codes,small_area"},
)
top = r.json()["results"][0]
print(top["lat"], top["lng"], top["lg_code"], top["estat_small_area_code"])

Download and read geocode.sql to get a geocode function that takes a list of addresses, including the addresses in a table column.

.read geocode.sql
SELECT * FROM geocode(['東京都千代田区紀尾井町1-3', '東京都千代田区千代田1-1']);

Paste geocode.gs into Apps Script to use a GEOCODE function that returns latitude, longitude and area codes for a range of address cells.

=GEOCODE(A2:A100)

Paste geocode.pq into a blank Power Query query to add latitude, longitude and area code columns to a table with an address column. Works in Microsoft 365 Excel on Windows and Mac.

Self-hosting

You can run the geocoder as a Worker on your own Cloudflare account. With Node.js and pnpm, these commands deploy it.

git clone https://github.com/queria-io/geocoder.git
cd geocoder/worker
pnpm install
npx wrangler login
pnpm self-host

The address tables and boundary data are read from files Queria publishes, so you don't need to copy any data. There is no request limit. To import the data into your own R2 and run without depending on Queria, see the README.

Requests and wrong results

Tell us about wrong results (this address matched here, but the right place is there) or features you need. Reports of wrong results are used to check changes to the matching rules. Leave your email address in case we need to reply.

Pricing and terms

The geocoder is free. To keep load down, it allows up to 300 requests per minute per IP address and up to 1,000 rows per file conversion. You can also run it on your own Cloudflare account by following Self-hosting above. To discuss converting tens of thousands of addresses or more, building it into your systems, or analyzing converted addresses together with population, land price and other statistics, please contact us.

Why it is free

The address and boundary data used for matching come from the following public datasets, which Queria already collects and maintains with automatic monthly updates. No one has to collect or update data just for the geocoder, so maintaining the data costs nothing extra. The matching tables themselves are published as the geocoder dataset.

The matching tables are built in advance during the monthly update. Each API request only looks up those tables, so no database server needs to run all the time and the cost per request stays low.

The area codes in the results can be joined with Queria datasets on population, land prices, facilities and more. We offer the geocoder for free as a way into the rest of Queria's data.

Sources

When you publish results, include the sources listed in each response.

  • Processed from the Address Base Registry (Digital Agency)
  • Processed from the Block-level and Oaza/Chome-level Location Reference Information (MLIT)
  • Processed from the Postal Code Data (Japan Post)
  • Processed from the Census boundary data (small areas) (Statistics Bureau, e-Stat)
  • Processed from the National Land Numerical Information (administrative areas) (MLIT)
  • Address matching rules: based on abr-geocoder (Digital Agency, MIT License)