Datatypes › plus_code

Short Plus Code (Open Location Code)

ID plus_code_short

Pattern of plus_codeNot PIIidentifierDraft

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

ValueDescription
9G8F+6W8FVC9G8F+6W shortened near Zurich (specification)
8F+6WThe same code shortened closer to its centre (specification)
WF8Q+WF796RWF8Q+WF shortened for Praia (specification)
WC2345+G6gMixed case, from the reference validity tests
+2VX9C3W9QCJ+2VX with all eight digits removed (reference short code tests)
WC2300+G6g invalidShort codes cannot contain padding
WC2345+G invalidOne digit after the separator
8FVC9G8F+6W invalidFull code: the datatype plus_code

Sources

Use this record