0% found this document useful (0 votes)
73 views

Open Location Converter

Open Location codes are a geocoding system that uses alphanumeric codes to identify geographic locations, providing an alternative to GPS coordinates. The document explains how Open Location codes are structured and mapped to geographic grids, and provides methods for converting between codes and GPS coordinates.

Uploaded by

piok
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
73 views

Open Location Converter

Open Location codes are a geocoding system that uses alphanumeric codes to identify geographic locations, providing an alternative to GPS coordinates. The document explains how Open Location codes are structured and mapped to geographic grids, and provides methods for converting between codes and GPS coordinates.

Uploaded by

piok
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Open Location (Plus Code)

Geography › Open Location (Plus Code)

Open Location Converter


Search for a tool
From a Plus Code
SEARCH A TOOL ON DCODE BY KEYWORDS:

OPEN LOCATION CODE/PLUS CODE V75V+8Q

e.g. type 'random' ⏎

BROWSE THE FULL DCODE TOOLS' LIST


▶ CONVERT

Open Location (Plus Code) Converter From GPS Coordinates


Tool to convert open location codes to GPS GPS COORDINATES (LAT, LONG) 48.8583, 2.2923

coordinates on a map. Open Location is a geocoding


system created by Google (sometimes renamed ▶ CONVERT
'plus codes') and displayed, among others, on
See also: Coordinates Geolocalization
Google Maps.
Open Location (Plus Code) - dCode
Answers to Questions (FAQ)
Tag(s) : Geography
What is an Open Location code OLC?
Share Open Location codes (sometimes calles Plus Codes) are a geocoding
system locating a geographic area on Earth in the manner of GPS
coordinates. They have the advantage of being shorter and concise thanks
dCode and more to an alphanumeric code.
Example: AABBCCDD+EEF is an Open Location code
dCode is free and its tools are a valuable help in
games, maths, geocaching, puzzles and problems to Example: AABB+CC is s short code
solve every day!

A suggestion ? a feedback ? a bug ? an idea ? Write to Each pair of letters therefore represents an area, and the more pairs of
dCode!
letters, the more precise the area (up to an area of 3.5m² with the best
precision)

The Earth is first divided into geographic areas according to a grid of 18x9
(every 20°) which can be identified by 2 coordinates ( AA ), then each area
is divided into sub-areas (a 20x20 grid) identified by the sub-coordinates ( B
B ) etc, themselves redrawn in 20x20 up to 4 times.

Optionally, one last time, the area is cut into a 4x5 grid (4 wide, 5 high)
identifying 20 boxes, numbered from left to right and from bottom to top.
A code is made up of 2 parts separated by a plus sign + of the form AABB
CCDD+EEF or even AABB+CC . The first part is made up of 1 to 4
alphanumeric pairs ( BB,CC,DD are optional), the second part is also
optional, but the fewer letters there are, the less precise the location.
The plus sign is also optional, but it is part of the signature of the code
and makes it easier to read.

The 20 characters allowed to encode the zones are 23456789CFGHJMPQ


RVWX (they are used as a base 20 writing)
How to convert an Open Location code into GPS?
Separate the pairs of characters and for each, note the first character
(latitude coordinate) and the second character (longitude coordinate) to
locate in the grid.
To reconstruct GPS coordinates (latitude, longitude), it is first necessary
to convert the characters 23456789CFGHJMPQRVWX according to the
correspondence table:
2 3 4 5 6 7 8 9 C F G H J M P Q R V W X
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19

Then for each value, multiply it by the precision of each couple according
to the table
#1 AA 20°
#2 BB 1°
#3 CC 0.05°
#4 DD 0.0025°
#5 EE 0.000125°
#6 F 0.00003125°

Add all latitude values and subtract 90° on one side and all longitude
values and subtract 180° on the other to obtain GPS coordinates.
Example: The code 8FW4V75R+8W is cut into pairs 8F,W4,V7,5R,8W

The first pair 8F consists of latitude 8 → 6 × 20° = 120° and longitude


F → 9 × 20° = 180°

The second pair is' W4' either latitude +18° and longitude +2° etc.

The sums respect give the latitude ≈ 138.8583 − 90 = 48.8583° and


the longitude ≈ 182.2923 − 180 = 2.2923° so the GPS coordinates
(48.8583, 2.2923)

How to convert GPS coordinates to Open Location codes?


From GPS coordinates:
Example: (lat, long) = 48.8583,2.2923

1- add 90° to the latitude and 180° to the longitude


Example: 48.8583 + 90 = 138.8583 , 2.2923 + 180 = 182.2923

2- multiply the values by 8000 (= 20 ^ 3)


Example: 138.8583 × 8000 = 1110866.4 ,
182.2923 × 8000 = 1458338.4

3- convert the values obtained to base 20 (with the alphabet 23456789C


FGHJMPQRVWX ) by limiting yourself to the whole part and supplementing
with initial zeros if the result has less than 5 digits.
Example: 1110866(10) = [6, 18, 17, 3, 6](20) = 8WV58 ,
1458338(10) = [9, 2, 5, 16, 18](20) = F47RW

4- insert the 2 × 5 characters obtained by alternating latitude then


longitude and write the result in the form 'XXXXXXXX + XX'
Example: 8WV58 and F47RW give 8F,W4,V7,5R,8W or the plus code
8FW4V75R+8W

How to recognize Open Location codes?


The Open Location (OLC) codes are in the format XXXXXXXX+XX or
sometimes XXXX+XX Place (the first 4 characters are deleted) this
second form requires a database in order to know the place which allows to
find the 4 first characters.
Codes have a + hence their nickname plus codes
The Google company created these codes which are used more and more,
thanks to Google Maps, any reference to the search engine is a clue.
Where to insert the + sign?
The plus sign + has no coding function, it is useless for the calculation,
but in practice, it is positioned 2 characters before the end for codes with
an even number of characters AABBCCDD+EE or AABB+CC , or 3 characters
before the end for codes with an odd number of characters
AABBCCDD+EEF .
ASK A NEW

QUESTION

Source code
dCode retains ownership of the "Open Location (Plus Code)" source
code. Except explicit open source licence (indicated Creative Commons /
free), the "Open Location (Plus Code)" algorithm, the applet or snippet
(converter, solver, encryption / decryption, encoding / decoding,
ciphering / deciphering, translator), or the "Open Location (Plus Code)"
functions (calculate, convert, solve, decrypt / encrypt, decipher / cipher,
decode / encode, translate) written in any informatic language (Python,
Java, PHP, C#, Javascript, Matlab, etc.) and all data download, script, or
API access for "Open Location (Plus Code)" are not public, same for offline
use on PC, tablet, iPhone or Android !

The copy-paste of the page "Open Location (Plus Code)" or any of its
results, is allowed as long as you cite the online source
https://www.dcode.fr/open-location-code

Reminder : dCode is free to use.


Source : https://www.dcode.fr/open-location-code
© 2022 dCode — The ultimate 'toolkit' to solve every games / riddles / geocaching / CTF.

You might also like