Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Open Location Code

From Wikipedia, the free encyclopedia
Short text encoding of geographic coordinates
Plus Codes logo

TheOpen Location Code (OLC) is ageocode based on a system of regular grids for identifying an area anywhere on the Earth.[1]It was developed at Google'sZürich engineering office,[2] and released late October 2014.[3] Location codes created by the OLC system are referred to asPlus 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 oflatitude 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.[4]

Plus Codes are differently expressed latitude and longitude coordinates, so they can be assigned to any location.[5] They are similar in length to a telephone number (e.g.,849VCWC8+R9) but can often be shortened to only four or six digits when combined with a locality (e.g.,CWC8+R9, Mountain View, California). 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.[6]Since August 2015, Google Maps has supported Plus Codes in its search engine.[7] The shortened Plus Code is displayed for a location, may becopied, clicked, or transcribed, and can be entered into the address box (followed by the town or city name if not local and using shortened code) to display the location on the map. The algorithm is licensed under the Apache License 2.0 and is available on GitHub.[8]

Applications

[edit]

Plus Codes are increasingly being used for addressing purposes in places that aren't well-served by the traditional street address system. This includes the many unnamed streets inCape Verde,[9] multipleslums inIndia,[10][11][12] and even someNative American reservations in the United States.[13] InLaxmi Nagar, Pune, the nonprofit Shelter Associates used codes to bring delivery services to specific homes and businesses in the slum for the first time in 2020-21.[11] Plus Codes are also being used by theInternational Rescue Committee inSomalia forimmunization andfamily planning programs.[11]

Specification

[edit]

The Open Location Code system[8] is based on latitudes and longitudes inWGS84 coordinates. Each code describes an area bounded by two parallels and two meridians out of a fixed grid, identified by the southwest corner and its size. The largest grid has blocks of 20 by 20 degrees, 18 columns from West to East and 9 rows from the South to the North poles. Those large blocks are then divided into 20 by 20 subblocks up to four times. Near the equator, those subblocks are square both in degrees and in meters. At midlatitudes, while still square in terms of degrees, in terms of meters the blocks are not as wide as they are tall.

After four rounds of 20x20 subdivision (via two code characters), further subdivisions break each block into 20 subblocks (via one code character), 4 blocks W-E by 5 blocks S-N. That leaves the subblocks wider than they are tall in terms of degrees, but at midlatitudes, this keeps them closer to square in terms of meters. The table shows the various block sizes near the equator, where the widths are maximum (listing width x height where those differ). The block widths decrease with distance from the equator.

Block sizes of Plus Codes[14]
Code length2468+101112131415
Block size20°0.05° (3′)0.0025° (9″)0.000125° (0.45″)0.1125″0.0281″0.0070″0.0018″0.0004″
Real size2,200 km110 km5.6 km280 m14 m3.5 m × 2.8 m0.8 m × 0.5 m20 cm × 10 cm5 cm × 2 cm14 mm × 4 mm

The full grid uses offsets from theSouth Pole (−90°) and theantimeridian (−180°) expressed inbase 20 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.

Mapping of Plus Codes
Base 10 digit012345678910111213141516171819
Base 20 digit0123456789ABCDEFGHIJ
Code digit23456789CFGHJMPQRVWX

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 eight digits, a plus sign "+" is inserted in the code as a delimiter to aid with visual parsing. After a final pair immediately following the "+" delimiter, any subblocks thereafter are coded in a single code digit as follows:

Division of subblocks in Plus Codes
longitude →
latitude →
RVWX
JMPQ
CFGH
6789
2345

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

[edit]

Consider, for example, zooming in onthe Merlion fountain (1°17′12″N103°51′16″E / 1.286785°N 103.854503°E /1.286785; 103.854503) inSingapore, which has Plus Code6PH57VP3+PR6. 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 (=80/20) and 14 (=280/20) as the first base-20 digits, coded as "6" and "P". Thus, the code is "6P". This may be padded as6P000000+.

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 to6PH50000+.

After four further refinements, one lands on Merlion Park as6PH57VP3+PR.

The next step requires dividing 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".

BASE20 Formula

[edit]

Alternatively, use formula BASE(Degrees from South or West * power(20, 4) , 20) in any Spreadsheet or Calculator to compute the Plus Code. For the coordinates1°17′12″N103°51′16″E / 1.286785°N 103.854503°E /1.286785; 103.854503 from the previous example:

  • 1.286785N = 91.286785 from South Pole, in Base20 = 4B.5EE(5) in alphanumeric = which is 6H.7PP in OLC digits.
  • 103.854503E = 283.854503 from Anti-Meridian, in Base20 = E3.H1G(0) in alphanumeric = which is P5.V3R in OLC digits.
  • Combining latitude and longitude alternatively, 6P H5 7V P3 PR.
  • The last leftover in Base20, (5)/20 latitude and (0)/20 longitude gives 6 in the 4-by-5 grid.

Therefore, the resulting Plus Code is6PH57VP3+PR6.

Common usage and shortening

[edit]

It is common to omit the first four characters from the code and add an approximate location, such as a city, state, or country. The above example then becomes7VP3+PR6 Singapore. This is supported by the Google Maps app and the 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 cannot be unambiguously encoded or decoded without context. The specification does not rely on any specific database of contextual reference location place names and their exact locations, but there are a variety ofgeocoding databases which map names to latitude and longitude. Disambiguation requires narrowing the possibilities to within about 40 km of the referenced location. The coordinates of the user's current location can be also used for context, if applicable.[15][16]

Comparison
Ex.Plus CodesValid
digits
Shortened codesPrecisionPoint of interestStreet addressLat/long of centroid
187C4VXQ7+QV10VXQ7+QV, Washington, District of Columbia, USA6 digits

(14 m)

Washington Monument2 15th St NW, Washington, DC 20024, United States38.889437, −77.035313
29C3XGV3C+8X10GV3C+8X, London, United Kingdom6 digits

(14 m)

10 Downing Street10 Downing St, London SW1A 2AA, United Kingdom51.503312, −0.127562
37GHXG559+4VQ11G559+4VQ, Al-Baghdadiyah Al-Gharbiyah, Jeddah, Saudi Arabia7 digits

(3.5 m)

Jeddah FlagpoleKing Abdullah Bin Abdulaziz Square, Al-Baghdadiyah Al-Gharbiyah, Jeddah 22231, Saudi Arabia21.507813, 39.169688
48FWMQRCQ+JRV11QRCQ+JRV, Schwarzenberg am Böhmerwald, Austria7 digits

(3.5 m)

Tri-Border Czechia/Austria/GermanyTri-Border, 4164 Schwarzenberg am Böhmerwald, Austria48.771613, 13.839547
58Q7XMP52+J7CC12MP52+J7CC, Shibuya, Tokyo, Japan8 digits

(87 cm)

Hachikō Memorial Statue2 Chome-1 Dogenzaka, Shibuya, Tokyo 150-0043, Japan35.659063, 139.700688
637QH5M6Q+54X3X135M6Q+54XYX, Ushuaia, Tierra del Fuego Province, Argentina9 digits

(22 cm)

−54.83952050, −68.31214160
76G8RJMMW+9V9V9V14JMMW+9V9V9V, Arusha, Tanzania10 digits

(5 cm)

−3.36657810, 36.69723315
86P58QRJ3+H25FGFG15QRJ3+H25FGFG, Jakarta, Indonesia11 digits

(14 mm)

−6.21861250, 106.80260626

References

[edit]
  1. ^"Plus Codes". Retrieved3 November 2018.
  2. ^"Open Location Code".Openlocationcode.com. Archived fromthe original on 1 March 2018.
  3. ^SeeOpen Location Code GitHub andOpen Location Code forum.
  4. ^TheOpen Location Code website provides an overview. The document"An Evaluation of Location Encoding Systems" provides a rationale.
  5. ^Rinckes, Doug; Bunge, Philipp (30 September 2014).Open Location Code: An Open Source Standard for Addresses, Independent of Building Numbers And Street Names (Report). GitHub.
  6. ^Rinckes, Doug (30 April 2015)."Open Location Code: Addresses for everything, everywhere".Google-opensource.blogspot.ch.
  7. ^Šrámek, Rasťo (12 August 2015)."Plus codes: A new way to help pinpoint places on the map".Google-latlong.blogspot.in.
  8. ^ab"google/open-location-code".GitHub.com. Retrieved3 November 2018.
  9. ^"Delivering mail where the streets have no name".Google Africa Blog. December 1, 2016.
  10. ^"Plus Codes | Addressing in Kolkata". 28 August 2018 – via YouTube.
  11. ^abcShoma Abhyankar.""Addressing India's Slums"".MIT Technology Review. Vol. 124, no. 3, May/June 2021. p. 25.
  12. ^Pathak, Sushmita (July 15, 2022)."The Address of the Future".Reasons to be Cheerful.
  13. ^Podmore, Zak (2019-10-25)."The Navajo Nation is getting addresses, thanks to an open-source mapping program used in urban India".The Salt Lake Tribune.
  14. ^"open-location-code/Documentation/Specification/specification.md at main · google/open-location-code".GitHub. Retrieved2025-01-08.
  15. ^Kegel, Mark (2019-09-24)."What's Wrong with Open Location Code? - QA Locate". Retrieved2022-11-07.
  16. ^"Open Location Code: An Open Source Standard for Addresses, Independent of Building Numbers And Street Names".GitHub. 2019-04-21. Retrieved2022-11-25.

External links

[edit]
Country codes
Administrative codes
and country subdivisions
Airport codes
Geodesic
place codes
Global
Regional
Postal codes
Telephony
Amateur radio
Retrieved from "https://en.wikipedia.org/w/index.php?title=Open_Location_Code&oldid=1333571518"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2026 Movatter.jp