GeocodingResult
Geocoding result
The result of geocoding one address. The address is datamodels.jp's JapaneseAddress and the coordinates are a point. On top of that it records how much of the input matched (matchLevel), which part of the address the coordinates belong to (coordinateLevel), and which geocoder and which version of the data were used. Every geocoder writes its match levels differently, so they are mapped to shared values, and the geocoder's own wording stays in matchLevelLabel.
- Stage
- experimental
- Kind
- entity
- Type IRI
- https://models.geolonia.com/ns/geocoding#GeocodingResult
- JSON Schema
- https://models.geolonia.com/schema/geocoding/GeocodingResult/v0.1.0.json
- @context
- https://models.geolonia.com/context/geocoding/v0.jsonld
- Example
- https://models.geolonia.com/examples/geocoding/GeocodingResult/example.json
- Download
- CSV template Table Schema Structured output for AI PostgreSQL / PostGIS table About these files
Attributes
query
The address text given to the geocoder, unchanged
string, required. IRI: https://models.geolonia.com/ns/geocoding#query
address
The matched address, as datamodels.jp's JapaneseAddress. The geocoder's normalised one-line address goes in addressText
object. IRI: https://schema.org/address
unmatchedParts
Parts of the input that did not match, in input order, such as a building name or a floor
array. IRI: https://models.geolonia.com/ns/geocoding#unmatchedParts
matchLevel
The most detailed part of the address that matched: prefecture, city (county or municipality), machiaza (大字・町), machiazaDetail (丁目・小字), residentialBlock (街区符号, block number), residentialNumber (住居番号, residence number), parcel (地番, lot number). parcel is an alternative to the two residential levels (residentialBlock, residentialNumber), not more detailed than them. Left out when no value fits; the geocoder's own value goes in matchLevelLabel
string. IRI: https://models.geolonia.com/ns/geocoding#matchLevel
coordinateLevel
Which part of the address the coordinates belong to, with the same values as matchLevel. It can be less detailed than matchLevel: the address may match down to the residence number while the geocoder only has a point for the town
string. IRI: https://models.geolonia.com/ns/geocoding#coordinateLevel
matchLevelLabel
The match level as the geocoder returns it, unchanged, as text: a geocoder that returns a number gives it as text (for example rsdtdsp_rsdt, or "3")
string. IRI: https://models.geolonia.com/ns/geocoding#matchLevelLabel
geocoder
Name of the geocoder that made the result
string. IRI: https://models.geolonia.com/ns/geocoding#geocoder
geocoderVersion
Version of the geocoder
string. IRI: https://models.geolonia.com/ns/geocoding#geocoderVersion
datasetVersion
Version of the address data the geocoder used
string. IRI: https://models.geolonia.com/ns/geocoding#datasetVersion
dateGeocoded
When the address was geocoded
string, date-time. IRI: https://models.geolonia.com/ns/geocoding#dateGeocoded
location
The point the geocoder found, as a GeoJSON Point
object. IRI: https://uri.etsi.org/ngsi-ld/location
Standards referenced
Notes
- The address part is not defined again: it is datamodels.jp's JapaneseAddress, which is based on the Digital Agency's GIF core data model for addresses. This model only adds what the geocoding did (2026-10-29).
- The match level values are based on match_level of the Digital Agency's abr-geocoder (v3): its seven values other than unknown, one to one, with readable names (table in mapping/abr-geocoder.yaml). Other geocoders map their own levels to these values. The number of levels and how they are written (numbers, names) differ between geocoders, and an application that reads them directly stops working when the geocoder is replaced.
- When nothing matched (unknown in abr-geocoder), matchLevel is left out rather than forced to the nearest value; the geocoder's value stays in matchLevelLabel.
- abr-geocoder's score is not included: abr-geocoder describes it as a value for ordering candidates that does not say whether the match is right, and it cannot be compared with other geocoders' scores.
- Not included yet: extra information such as the grid square code (JIS X 0410) or a postal code lookup. Geocoders differ in what they offer, so these are added when needed, or in an extension (extend).
- Considered: GeocodeJSON (a GeoJSON extension used by Pelias, Photon and others). It is international, but it has no levels for Japanese addresses (machiaza, block number, residence number, lot number) and few tools use it, so it is not used here.
- Experimental, tried in this node first.