Short Plus Code (Open Location Code)
ID plus_code_short
This record is a draft: it has not been reviewed yet and may be incomplete or wrong. Do not rely on it for compliance decisions. Help improve it (see CONTRIBUTING.md).
Plus Code with leading digits removed, which is decoded relative to a reference location, often a town written after it (WF8Q+WF Praia). Digits are removed in pairs and only while the reference is close enough to recover the full code (plus_code). The specification describes removing two to six digits; the test data of the reference implementations also removes all eight (+2VX). Short codes keep the separator + and cannot contain padding. Short codes with nothing after the separator, such as 22+, are valid but not covered, because they look like ordinary text.
- Pattern of
- Plus Code (Open Location Code)
plus_code - Categories
- Geographic identifiers
- Countries
- Global (not tied to a country)
- Languages
- Common to most languages
- Quality
- 75/100 · missing: mapping (Wikidata, Schema.org, ...), translation, detector coverage
- Metacrafter rules
- no detection rule yet
- Supported by tools
- no tool record lists this type yet
Regular expression
^(?:[2-9CFGHJMPQRVWXcfghjmpqrvwx]{2}){0,3}\+[2-9CFGHJMPQRVWXcfghjmpqrvwx]{2,}$
Python re syntax.
Examples
| Value | Description |
|---|---|
| 9G8F+6W | 8FVC9G8F+6W shortened near Zurich (specification) |
| 8F+6W | The same code shortened closer to its centre (specification) |
| WF8Q+WF | 796RWF8Q+WF shortened for Praia (specification) |
| WC2345+G6g | Mixed case, from the reference validity tests |
| +2VX | 9C3W9QCJ+2VX with all eight digits removed (reference short code tests) |
| WC2300+G6g invalid | Short codes cannot contain padding |
| WC2345+G invalid | One digit after the separator |
| 8FVC9G8F+6W invalid | Full code: the datatype plus_code |
Sources
- doc: https://github.com/google/open-location-code/blob/main/Documentation/Specification/specification.md
- other: https://github.com/google/open-location-code/blob/main/test_data/validityTests.csv
- other: https://github.com/google/open-location-code/blob/main/test_data/shortCodeTests.csv
Use this record
- Page URL:
http://registry.apicrafter.io/datatype/plus_code_short - JSON: API v1 · legacy shape (used by metacrafter) · Markdown (for LLMs)
- Improve it: edit
data/datatypes/any/geo/plus_code_short.yamlon GitHub