![Plus Codes Logo](https://upload.wikimedia.org/wikipedia/commons/5/58/Plus_Codes_Logo.svg)
The Open Location Code (OLC) is a
geocode based in a system of regular grids for identifying an area anywhere on the Earth.
It was developed at Google's Zürich engineering office, and released late October 2014. Location codes created by the OLC system are referred to as "plus codes".
Open Location Code is a way of encoding location into a form that is easier to use than showing coordinates in the usual form of latitude and longitude. Plus codes are designed to be used like street addresses, and may be especially useful in places where there is no formal system to identify buildings, such as street names, house numbers, and post codes.
Plus codes are derived from latitude and longitude coordinates, so they already exist everywhere. They are similar in length to a telephone number – 849VCWC8+R9, for example – but can often be shortened to only four or six digits when combined with a locality (CWC8+R9, Mountain View). Locations close to each other have similar codes. They can be encoded or decoded offline. The character set avoids similar looking characters, to reduce confusion and errors, and avoids vowels to make it unlikely that a code spells existing words. Plus codes are not case-sensitive, and can therefore be easily exchanged over the phone.
Since August 2015, Google Maps supports plus codes in its search engine. The algorithm is licensed under the Apache License 2.0. and available on GitHub.
Google has shown practical usage of plus codes for addressing purposes in
Cape Verde, parts of
Kolkata
Kolkata (, or , ; also known as Calcutta , the official name until 2001) is the capital of the Indian state of West Bengal, on the eastern bank of the Hooghly River west of the border with Bangladesh. It is the primary business, comme ...
, and the
Navajo Nation
The Navajo Nation ( nv, Naabeehó Bináhásdzo), also known as Navajoland, is a Native American reservation in the United States. It occupies portions of northeastern Arizona, northwestern New Mexico, and southeastern Utah; at roughly , the ...
. Since the
COVID-19 pandemic
The COVID-19 pandemic, also known as the coronavirus pandemic, is an ongoing global pandemic of coronavirus disease 2019 (COVID-19) caused by severe acute respiratory syndrome coronavirus 2 (SARS-CoV-2). The novel virus was first identi ...
the usage of Plus Codes as government recognized identification of housing in India has grown significantly.
Specification
The Open Location Code system is based on latitudes and longitudes in
WGS84
The World Geodetic System (WGS) is a standard used in cartography, geodesy, and satellite navigation including GPS. The current version, WGS 84, defines an Earth-centered, Earth-fixed coordinate system and a geodetic datum, and also describ ...
coordinates. Each code describes an area bounded by two parallels and two meridians out of a fixed grid, identified by the South-West corner and its size. The largest grid has blocks of 20 by 20 degrees (9 rows and 18 columns), and is divided in 20 by 20 subblocks up to four times. From that level onwards division is in 5 by 4 subblocks. The table shows the various block sizes at their maximum near the equator. The block width decreases with distance from the equator.
The full grid uses offsets from the
South Pole
The South Pole, also known as the Geographic South Pole, Terrestrial South Pole or 90th Parallel South, is one of the two points where Earth's axis of rotation intersects its surface. It is the southernmost point on Earth and lies antipod ...
(–90°) and the
antimeridian
The 180th meridian or antimeridian is the meridian 180° both east and west of the prime meridian in a geographical coordinate system. The longitude at this line can be given as either east or west.
On Earth, these two meridians form a ...
(–180°) expressed in
base 20
vigesimal () or base-20 (base-score) numeral system is based on twenty (in the same way in which the decimal numeral system is based on ten). ''Vigesimal'' is derived from the Latin adjective '' vicesimus'', meaning 'twentieth'.
Places
In ...
representation. To avoid misreading or spelling objectionable words, the encoding excludes vowels and symbols that may be easily confused with each other. The following table shows the mapping.
The code begins with up to five pairs of digits, each consisting of one digit representing latitude and one representing longitude. The biggest blocks have just two digits. After 8 digits, a plus sign "+" is inserted in the code as a delimiter to aid with visual parsing. After 10 digits at each subdivision, subblocks are coded in a single code digit as follows:
Areas larger than an 8-digit block can be specified by replacing an even number of trailing digits before the + sign with the digit 0, with nothing after the + sign.
Example
Consider, for example, zooming in on
the Merlion (N 1.286785, E 103.854503) in
Singapore
Singapore (), officially the Republic of Singapore, is a sovereign island country and city-state in maritime Southeast Asia. It lies about one degree of latitude () north of the equator, off the southern tip of the Malay Peninsula, bor ...
. It lies in the block around the equator bounded by -10° South and +10° North, and between 100° and 120° East. It has offsets 80° from the South Pole, and 280° from the anti-meridian; or, 4 and 14 as first base-20 digits, coded as "6" and "P". Thus, the code is "6P". This may be padded a
6P000000+
Now, refine this block to a subblock between 1° and 2° N and 103° and 104° E. This adds 11° and 3° to the SW corner. So the base-20 coordinate codes added are "H" and "5". The result is padded t
6PH50000+
After four further refinements, one lands on Merlion park as
6PH57VP3+PR
The next step requires us to divide the square so far used, to refine the position into a 4-by-5 grid, and finding the cell to which the coordinates are pointing. This is the cell named "6". Therefore, the resulting Open Location Code is
6PH57VP3+PR6
Common usage and shortening
It is common to omit the first 4 characters from the code and add an approximate location, such as a city, state, or country. The above example, then, become
7VP3+PR6 Singapore This is supported by the Google Maps app and the https://plus.codes website, and also by non-Google apps. These short forms of Plus Codes can be used in lieu of a house number in a neighborhood.
Shortened codes can no longer be unambiguously encoded or decoded offline without context. The specification doesn't rely on any specific database of contextual reference location place names and their exact locations. But the software requires access to some other information which clearly narrows the possibilities to within about 40 km of the referenced location. That could be done for example via a named reference location which can somehow be mapped to a nearby geolocation. Or if it is known that the plus code is sufficiently nearby, and the coordinates of the current location is available to the decoding software, that can be used.
References
External links
* with a video explanation
*
{{Geocoding-systems
Geographic coordinate systems
Geocodes
2014 introductions