Datatypes › Geographic identifiers

Plus Code (Open Location Code)

ID plus_code

DatatypeNot 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).

Full Plus Code of the Open Location Code system published by Google, which encodes a WGS84 latitude and longitude as a grid cell. It uses 20 symbols (23456789CFGHJMPQRVWX): eight digits, the separator +, and usually two or more digits after it; a ten-digit code is a cell of about 14 by 14 metres. Shorter codes pad the eight positions before the separator with pairs of 0 and end with +. The first digit encodes latitude and the second longitude, which limits them to 2-9 and C, and to 2-9 and C-V. Codes are case-insensitive. Shortened codes that need a reference place are the pattern plus_code_short.

Categories
Geographic identifiers
Countries
Global (not tied to a country)
Languages
Common to most languages
Quality
85/100 · missing: mapping (Wikidata, Schema.org, ...), translation
Metacrafter rules
1 rule (0 by field name, 1 by value)
Supported by tools
metacrafter

Regular expression

^[2-9Cc][2-9CFGHJMPQRVcfghjmpqrv](?:000000\+|[2-9CFGHJMPQRVWXcfghjmpqrvwx]{2}(?:0000\+|[2-9CFGHJMPQRVWXcfghjmpqrvwx]{2}(?:00\+|[2-9CFGHJMPQRVWXcfghjmpqrvwx]{2}\+(?:[2-9CFGHJMPQRVWXcfghjmpqrvwx]{2,})?)))$

Python re syntax.

Test a value

Examples

ValueDescription
8FVC9G8F+6W Example from the specification, centre 47.365562,8.524813 (Zurich)
796RWF8Q+WF Example from the specification (Praia)
8FWCX400+ Padded code from the reference validity tests
849VGJQF+VX7QR3J Fifteen-digit code from the reference validity tests
8FWC2345+G invalid One digit after the separator
84900000+ invalid Padding must come in pairs
9G8F+6W invalid Short code: the pattern plus_code_short

Patterns

Specific representations of this datatype.

IDNameCategoriesCountriesDescription
plus_code_short Short Plus Code (Open Location Code) pattern geo global Plus Code with leading digits removed, which is decoded relative to a reference location, often a town written after it (WF8Q+WF Praia)....

Sources

Use this record