Plus Code (Open Location Code)
ID plus_code
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
- 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-9Cc][2-9CFGHJMPQRVcfghjmpqrv](?:000000\+|[2-9CFGHJMPQRVWXcfghjmpqrvwx]{2}(?:0000\+|[2-9CFGHJMPQRVWXcfghjmpqrvwx]{2}(?:00\+|[2-9CFGHJMPQRVWXcfghjmpqrvwx]{2}\+(?:[2-9CFGHJMPQRVWXcfghjmpqrvwx]{2,})?)))$
Python re syntax.
Examples
| Value | Description |
|---|---|
| 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.
| ID | Name | Categories | Countries | Description |
|---|---|---|---|---|
| plus_code_short | Short Plus Code (Open Location Code) pattern draft | 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
- 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
- wikipedia: https://en.wikipedia.org/wiki/Open_Location_Code
Use this record
- Page URL:
http://registry.apicrafter.io/datatype/plus_code - JSON: API v1 · legacy shape (used by metacrafter) · Markdown (for LLMs)
- Improve it: edit
data/datatypes/any/geo/plus_code.yamlon GitHub