HOME

TheInfoList



OR:

A geocode is a
code In communications and information processing, code is a system of rules to convert information—such as a letter, word, sound, image, or gesture—into another form, sometimes shortened or secret, for communication through a communicati ...
that represents a geographic entity ( location or
object Object may refer to: General meanings * Object (philosophy), a thing, being, or concept ** Object (abstract), an object which does not exist at any particular time or place ** Physical object, an identifiable collection of matter * Goal, an ...
). It is a unique identifier of the entity, to distinguish it from others in a finite set of geographic entities. In general the ''geocode'' is a
human-readable A human-readable medium or human-readable format is any encoding of data or information that can be naturally read by humans. In computing, ''human-readable'' data is often encoded as ASCII or Unicode text, rather than as binary data. In m ...
and short identifier. Typical geocodes and entities represented by it: * ''Country code'' and subdivision code. Polygon of the administrative boundaries of a country or a subdivision.
The main examples are ISO codes: ISO 3166-1 alpha-2 code (e.g. AF for
Afghanistan Afghanistan, officially the Islamic Emirate of Afghanistan,; prs, امارت اسلامی افغانستان is a landlocked country located at the crossroads of Central Asia and South Asia. Referred to as the Heart of Asia, it is borde ...
or BR for
Brazil Brazil ( pt, Brasil; ), officially the Federative Republic of Brazil (Portuguese: ), is the largest country in both South America and Latin America. At and with over 217 million people, Brazil is the world's fifth-largest country by area ...
), and its subdivision conventions, such as subdivision codes (e.g. AF-GHO for Ghor province) or subdivision codes (e.g. BR-AM for Amazonas state). * ''DGG cell ID''. Identifier of a cell of a discrete global grid: a Geohash code (e.g. ~0.023 km2 cell 6vjyngd at the Brazilian's center) or an
OLC OLC is a three-letter initialism (TLA) that may refer to: * Oak leaf cluster, a military decoration * Office of Legal Counsel in the U.S. Department of Justice * Ohio Library Council, professional association for librarians in Ohio * Online Cont ...
code (e.g. ~0.004 km2 cell 58PJ642P+4 at the same point). * ''Postal code''. Polygon of a postal area: a
CEP ''Boletus edulis'' (English: cep, penny bun, porcino or porcini) is a basidiomycete fungus, and the type species of the genus ''Boletus''. Widely distributed in the Northern Hemisphere across Europe, Asia, and North America, it does not occu ...
code (e.g. 70040 represents a Brazilian's central area for postal distribution). Geocodes are mainly used (in general as an atomic data type) for labelling, data integrity, geotagging and spatial indexing. In
theoretical computer science computer science (TCS) is a subset of general computer science and mathematics that focuses on mathematical aspects of computer science such as the theory of computation, lambda calculus, and type theory. It is difficult to circumscribe the ...
a ''geocode system'' is a locality-preserving hashing function.


Classification

There are some common aspects of many geocodes (or geocode systems) that can be used as classification criteria: * ''Ownership'': proprietary or free, differing by its licences. * ''Formation'': the geocode can be originated from a name (ex. abbreviation of official name the country) or from mathematical function ( encoding algorithm to compress latitude-longitude). See ''geocode system'' types below (of
names A name is a term used for identification by an external observer. They can identify a class or category of things, or a single thing, either uniquely, or within a given context. The entity identified by a name is called its referent. A persona ...
and of
grids AIDS is caused by a human immunodeficiency virus (HIV), which originated in non-human primates in Central and West Africa. While various sub-groups of the virus acquired human infectivity at different times, the present pandemic had its origins i ...
). * ''Covering'': global or partial. The entities (represented by the geocodes) are in all globe (e. g. geographical points) or is delimited the theme (e.g. only terrestrial areas) or by the ownership's jurisdiction (e.g. only into a country). * ''Type of the represented entity'': type of geometry. Point (the geocode can be translated to a Geo URI), grid cell (the geocode system is related with a DGG) or polygon (typically administrative boundaries delimitations). ** special hierarchical grids, with global covering and equal-area cells, can be classified as ''DGGS cell''The OGS's standard
Discrete Global Grid Systems
definition.
** some non-standard geographic entities, can be classified also by its coordinate system and elipsoid of reference (e.g. UTM). The ''de facto'' standard is the
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 desc ...
. * ''Scope of use'': general use vs specialized (e.g. airport geocodes). * ''Hierarchy'': geocode's syntax hierarchy corresponding to the spatial hierarchy of its represented entities. A geocode system can hierarchical (
name A name is a term used for identification by an external observer. They can identify a class or category of things, or a single thing, either uniquely, or within a given context. The entity identified by a name is called its referent. A persona ...
or grid) or non-hierarchical.


Geocode system

The set of all geocodes used as unique identifiers of the cells of a full-coverage of the geographic surface (or any well-defined area like a country or the oceans), is a geocode system (also named ''geocode scheme''). The
syntax In linguistics, syntax () is the study of how words and morphemes combine to form larger units such as phrases and sentences. Central concerns of syntax include word order, grammatical relations, hierarchical sentence structure ( constituenc ...
and
semantic Semantics (from grc, σημαντικός ''sēmantikós'', "significant") is the study of reference, meaning, or truth. The term can be used to refer to subfields of several distinct disciplines, including philosophy, linguistics and comput ...
of the geocodes are also components of the system definition: * geocode syntax: the characters that can be used, blocks of characters and its size and order. Example: country codes use two letters of the alphabet (chacacter set A-Z). The most commom way to describe formally is by regular expression (e.g. / -Z). * geocode semantic: the meaning of the geocode, usually expressed by associating the code with a geographical entity type. Can be described formally is by an
ontology In metaphysics, ontology is the philosophy, philosophical study of being, as well as related concepts such as existence, Becoming (philosophy), becoming, and reality. Ontology addresses questions like how entities are grouped into Category ...
, an UML class diagram or any Entity-relationship model.
In general the semantic can be deduced by its formation or encoding/decoding process. Example: each Geohash code can be expressed by a rectangular area in the map, and the rectangle coordinates is obtained by its decoding process. Many syntax and semantic characteristics are also summarized by classification.


Encode and decode

Any geocode can be translated from a formal (and expanded) expression of the geographical entity, or vice versa, the geocode translated to entity. The first is named encode process, the second decode. The actors and process involved, as defined by OGC,Definitions of the OGC's
Glossary of Terms
.
are: ;geocoder: A software agent that transforms the description of a geographic entity (e.g. location name or latitude/longitude coordinates), into a normalized data and encodes it as a geocode. ;geocoder service: A geocoder implemented as web service (or similar service interface), that accepts a set of geographic entity descriptors as input. The request is "sent" to the Geocoder Service, which processes the request and returns the resulting geocodes. More general services can also return geographic features (e.g. GeoJSON object) represented by the geocodes. ;geocoding: Geocoding refers to the assignment of geocodes or coordinates to geographically reference data provided in a textual format. Examples are the two letter country codes and coordinates computed from addresses.
Note: when a physical addressing schemes (street name and house number) is expressed in a standardized and simplified way, it can be conceived as geocode. So, the term geocoding (used for addresses) sometimes is generalized for geocodes. In spatial indexing applications the geocode can also be translated between human-readable (e.g.
hexadecimal In mathematics and computing, the hexadecimal (also base-16 or simply hex) numeral system is a positional numeral system that represents numbers using a radix (base) of 16. Unlike the decimal system representing numbers using 10 symbols, he ...
) and internal (e.g. binary 64-bit unsigned integer) representations.


Systems of standard names

Geocodes like ''country codes'', city codes, etc. comes from a table of official names, and the corresponding official codes and geometries (typically polygon of administrative areas). "Official" in the context of control and consensus, typically a table controlled by a standards organization or governmental authority. So, the most general case is a table of ''standard names'' and the corresponding ''standard codes'' (and its official geometries). Strictly speaking, the "name" related to a geocode is a
toponym Toponymy, toponymics, or toponomastics is the study of ''toponyms'' ( proper names of places, also known as place names and geographic names), including their origins, meanings, usage and types. Toponym is the general term for a proper name of ...
, and the table (e.g. toponym to standard code) is the resource for toponym resolution: is the relationship process, usually effectuated by a software agent, between a toponym and "an unambiguous spatial footprint of the same place". Any standardized system of toponym resolution, having codes or encoded abbreviations, can be used as ''geocode system''. The "resolver" agent in this context is also a ''geocoder''. Sometimes names are translated into numeric codes, to be compact or machine-readable. Since numbers, in this case, are name identifiers, we can consider "numeric names" — so this set of codes will be a kind of "system of standard names".


Hierarchical naming

In the geocode context, space partitioning is the process of dividing a
geographical space Space is the boundless three-dimensional extent in which objects and events have relative position and direction. In classical physics, physical space is often conceived in three linear dimensions, although modern physicists usually conside ...
into two or more disjoint
subset In mathematics, set ''A'' is a subset of a set ''B'' if all elements of ''A'' are also elements of ''B''; ''B'' is then a superset of ''A''. It is possible for ''A'' and ''B'' to be equal; if they are unequal, then ''A'' is a proper subset of ...
s, resulting in a
mosaic A mosaic is a pattern or image made of small regular or irregular pieces of colored stone, glass or ceramic, held in place by plaster/mortar, and covering a surface. Mosaics are often used as floor and wall decoration, and were particularly pop ...
of subdivisions. Each subdivision can be partitioned again, recursively, resulting in an hierarchical mosaic. When subdivisions's names are expressed as codes, and code syntax can be decomposed into a parent-child relations, through a well-defined syntactic scheme, the geocode set configures a hierarchical system. A geocode fragment (associated to a subdivision name) can be an abbreviation, numeric or alphanumeric code. A popular example is the ISO 3166-2 geocode system, representing country names and the names of respective
administrative subdivisions Administrative division, administrative unit,Article 3(1). country subdivision, administrative region, subnational entity, constituent state, as well as many similar terms, are generic names for geographical areas into which a particular, ind ...
separated by hyphen. For example DE is
Germany Germany,, officially the Federal Republic of Germany, is a country in Central Europe. It is the second most populous country in Europe after Russia, and the most populous member state of the European Union. Germany is situated betwee ...
, a simple geocode, and its subdivisions (illustrated) are DE-BW for
Baden-Württemberg Baden-Württemberg (; ), commonly shortened to BW or BaWü, is a German state () in Southwest Germany, east of the Rhine, which forms the southern part of Germany's western border with France. With more than 11.07 million inhabitants across a ...
, DE-BY for Bayern, ..., DE-NW for Nordrhein-Westfalen, etc. The scope is only the first level of the hierarchy. For more levels there are other conventions, like HASC code. The HASC codes are alphabetic and its fragments have constant length (2 letters). Examples: :DE.NW -
North Rhine-Westphalia North Rhine-Westphalia (german: Nordrhein-Westfalen, ; li, Noordrien-Wesfale ; nds, Noordrhien-Westfalen; ksh, Noodrhing-Wäßßfaale), commonly shortened to NRW (), is a state (''Land'') in Western Germany. With more than 18 million inha ...
. A two-level hierarchical geocode. :DE.NW.CE - Kreis
Coesfeld Coesfeld (; Westphalian: ''Koosfeld'') is the capital of the district of Coesfeld in the German state of North Rhine-Westphalia. History Coesfeld received its city rights in 1197, but was first recorded earlier than that in the biography of St ...
. A 3-level hierarchical geocode. Two geocodes of a ''hierarchical geocode system'' with same prefix represents different parts of the same location. For instance DE.NW.CE and DE.NW.BN represents geographically interior parts of DE.NW, the common prefix. Changing the ''subdivision criteria'' we can obtain other hierarchical systems. For example, for hydrological criteria there is a geocode system, the US's
hydrologic unit code A hydrological code or hydrologic unit code is a sequence of numbers or letters (a '' geocode'') that identify a hydrological unit or feature, such as a river, river reach, lake, or area like a drainage basin (also called watershed in North Ame ...
(HUC), that is a numeric representation of ''basin names'' in a hierarchical syntax schema (first level illustred). For example, the HUC 17 is the identifier of " Pacific Northwest Columbia basin"; HUC 1706 of " Lower Snake basin", a spatial
subset In mathematics, set ''A'' is a subset of a set ''B'' if all elements of ''A'' are also elements of ''B''; ''B'' is then a superset of ''A''. It is possible for ''A'' and ''B'' to be equal; if they are unequal, then ''A'' is a proper subset of ...
of HUC 17 and a superset of 17060102 ("Imnaha River").


Systems of regular grids

file:Ordnance_Survey_National_Grid.svg, 420px, Each cell of a regular grid represents a geocode. The non-global grids were the most used before the 2000s.
This ''hierarchical system of local grids'', used since the 1930s as Ordnance Survey National Grid, British National Grid, generates hierarchical geocodes. Each cell subdivides recurrently its area into a new 10x10 grid. Inspired in the classic alphanumeric grids, a discrete global grid (DGG) is a regular
mosaic A mosaic is a pattern or image made of small regular or irregular pieces of colored stone, glass or ceramic, held in place by plaster/mortar, and covering a surface. Mosaics are often used as floor and wall decoration, and were particularly pop ...
which covers the entire Earth's surface (the globe). The regularity of the mosaic is defined by the use of cells of same shape in all the grid, or "near the same shape and near same area" in a region of interest, like a country. All cells of the grid have an identifier (DGG's cell ID), and the center of the cell can be used as reference for cell ID conversion into geographical point. When a compact human-readable expression of the cell ID is standardized, it becomes a geocode. Geocodes of different ''geocode systems'' can represent the same position in the globe, with same shape and precision, but differ in string-length, digit-alphabet, separators, etc. Non-global grids also differ by scope, and in general are geometrically optimized (avoid overlaps, gaps or loss of uniformity) for the local use.


Hierarchical grids

Each cell of a grid can be transformed into a new local grid, in a recurring process. In the illustrated example, the cell TQ 2980 is a sub-cell of TQ 29, that is a sub-cell of TQ. A system of geographic regular grid references is the base of a ''hierarchical geocode system''. Two geocodes of a ''hierarchical geocode grid system'' can use the prefix rule: geocodes with same prefix represents different parts of the same broader location. Using again the side illustration: TQ 28 and TQ 61 represents geographically interior parts of TQ, the common prefix. Hierarchical geocode can be split into keys. The Geohash 6vd23gq is the key q of the cell 6vd23g, that is a cell of 6vd23 (key g), and so on, per-digit keys. The
OLC OLC is a three-letter initialism (TLA) that may refer to: * Oak leaf cluster, a military decoration * Office of Legal Counsel in the U.S. Department of Justice * Ohio Library Council, professional association for librarians in Ohio * Online Cont ...
58PJ642P is the key 48 of the cell 58PJ64, that is a cell of 58Q8 (key 48), and so on, two-digit keys. In the case of OLC there is a second key schema, after the + separator: 58PJ642P+48 is the key 2 of the cell 58PJ642P+4. It uses two key schemas. Some geocodes systems (e.g. S2 geometry) also use initial prefix with non-hierarchical key schema. In general, as technical and non-compact optional representation, geocode systems (based on hierarchical grids) also offer the possibility of expressing their cell identifier with a fine-grained schema, by longer path of keys. For example, the Geohash 6vd2, which is a base32 code, can be expanded to base4 0312312002, which is also a schema with per-digit keys. Geometrically, each Geohash cell is a rectangle that subdivides space recurrently into 32 new rectangles, so, base4 subdividing into 4, is the encoding-expansion limit. The uniformity of shape and area of cells in a grid can be important for other uses, like
spatial statistics Spatial analysis or spatial statistics includes any of the formal techniques which studies entities using their topological, geometric, or geographic properties. Spatial analysis includes a variety of techniques, many still in their early devel ...
. There are standard ways to build a grid covering the entire globe with cells of equal area, regular shape and other properties: Discrete Global Grid System (DGGS) is a series of discrete global grids satisfying all standardized requirements defined in 2017 by the OGC. When human-readable codes obtained from cell identifiers of a DGGS are also standardized, it can be classified as ''DGGS based geocode system''.


Name-and-grid systems

There are also mixed systems, using a syntactical partition, where for example the first part (code prefix) is a name-code and the other part (code suffix) is a grid-code. Example: : Mapcode entrance to the elevator of the
Eiffel Tower The Eiffel Tower ( ; french: links=yes, tour Eiffel ) is a wrought-iron lattice tower on the Champ de Mars in Paris, France. It is named after the engineer Gustave Eiffel, whose company designed and built the tower. Locally nicknamed ...
in Paris is FR-4J.Q2, where FR is the name-code and 4J.Q2 is the grid-code. Semantically France is the context, to obtain its local grid. For
mnemonic A mnemonic ( ) device, or memory device, is any learning technique that aids information retention or retrieval (remembering) in the human memory for better understanding. Mnemonics make use of elaborative encoding, retrieval cues, and image ...
coherent semantics, in fine-grained geocode applications, the mixed solutions are most suitable.


Shortening grid-based codes by context

Any ''geocode system'' based on regular grid, in general is also a shorter way to express a latitudinal/longitudinal coordinate. But geocode of over 6 characters is difficult for remember. On the other hand, a geocode based on standard name (or abbreviation or the complete name) is easier to remember. So, this suggests that a "mixed code" can solve the problem, reducing the number of characters when a name can be used as "context" of the grid-based geocode. For example, in a book where the author says "all geocodes here are contextualized by the chapter's city". In the chapter about Paris, where all places have Geohash with prefix u09, it can be removed — for instance Geohash u09tut can be reduced to tut, or, by an explicit code for context "FR-Paris tut". It is only possible when the context resolution (e.g. translation from "FR-Paris" to the prefix u09) is well-known. In fact a methodology exists for hierarchical grid-based geocodes with non-variable size, where the code prefix describes a broader area, which can be associated with a name. So, it is possible to shorten by replacing the prefix to the associated context. The most usual context is an official name. Examples: The examples of the ''Mixed reference'' column are significantly easier than remembering ''DGG code'' column. The methods vary, for example OLC can be shortened by elimination of its first four digits and using Plus Codes naming conventions. When the mixed reference is also short (9 characters in the second example) and there are a syntax convention to express it (suppose CP‑PR~bgxed), this convention is generating a new name-and-grid geocode system. This is not the case of the first example because, strictly speaking, "Cape Verde, Praia" is not a code. To be both, a name-and-grid system and also a mixed reference convention, the system must be reversible. Pure name-and-grid systems, like Mapcode, with no way to transform it into a global code, is not a mixed reference, because there is no algorithm to transform the mixed geocode into a grid-based geocode.


Cataloged examples


In use, general scope

Geocodes in use and with general scope:


In use, alternative address

Geocodes can be used in place of official
street names A street name is an identifying name given to a street or road. In toponymic terminology, names of streets and roads are referred to as hodonyms (from Greek ‘road’, and ‘name’). The street name usually forms part of the address (th ...
and/or house numbers, particularly when a given location has not been assigned an address by authorities. They can also be used as an "alternative address" if it can be converted to a Geo URI. Even if the geocode is not the official designation for a location, it can be used as a "local standard" to allow homes to receive deliveries, access emergency services, register to vote, etc.


In use, postal codes

Geocodes in use, as
postal codes A postal code (also known locally in various English-speaking countries throughout the world as a postcode, post code, PIN or ZIP Code) is a series of letters or digits or both, sometimes including spaces or punctuation, included in a postal a ...
. A geocode recognized by
Universal Postal Union The Universal Postal Union (UPU, french: link=no, Union postale universelle), established by the Treaty of Bern of 1874, is a specialized agency of the United Nations (UN) that coordinates postal policies among member nations, in addition to ...
and adopted as "official postal code" by a
country A country is a distinct part of the world, such as a state, nation, or other political entity. It may be a sovereign state or make up one part of a larger state. For example, the country of Japan is an independent, sovereign state, whi ...
, is also a valid postal code. Not all postal codes are geographic, and for some postal code systems, there are codes that are not geocodes (e.g. in UK system). Samples, not a complete list:


In use, telephony and radio

Geocodes in use for telephony or radio broadcasting scope: * ITU-R country codes * ITU-T country calling codes * ITU-T mobile calling codes * Maidenhead Locator System (used by amateur radio operators) * Marsden Squares


In use, others

Geocodes in use and with specific scope:


Historical or less widely used


Other examples

Other geocodes: * ''S2'': a geocoding scheme using spherical geometry and the space-filling Hilbert curve, developed at
Google Google LLC () is an American Multinational corporation, multinational technology company focusing on Search Engine, search engine technology, online advertising, cloud computing, software, computer software, quantum computing, e-commerce, ar ...
* ''Munich Orientation Convention'': converts lat/lon to metrical monopolar codes for targets, crossings, stations, stop points, bridges, tunnels, towns, islands, volcanoes, highway exits etc. * ''SALB'' (Second Administrative Level Boundaries), by U

* Postal addresses in the Republic of Ireland#OpenPostcode, OpenPostcode, opensource global algorithm (local adaptations as Irish & Hong Kong postcodes). * WOEID * OpenStreetMap shortlink, used as a short permanent link to map locations * Quarter Degree Grid Cells * NAC (patended), area codes (area can be indefinitely small) * GEOID, the name of
United States Census Bureau The United States Census Bureau (USCB), officially the Bureau of the Census, is a principal agency of the U.S. Federal Statistical System, responsible for producing data about the American people and economy. The Census Bureau is part of th ...
geographic identifiers. * In the United States, the American National Standards Institute (ANSI) Codes are often used. ANSI INCITS 446-2008 is entitled "Identifying Attributes for Named Physical and Cultural Geographic Features (Except Roads and Highways) of the United States, Its Territories, Outlying Areas, and Freely Associated Areas, and the Waters of the Same to the Limit of the Twelve-Mile Statutory Zone". * National Topographic System in Canada


Other standards

Some standards and name servers include: ISO 3166, FIPS, INSEE, Geonames, IATA and
ICAO The International Civil Aviation Organization (ICAO, ) is a specialized agency of the United Nations that coordinates the principles and techniques of international air navigation, and fosters the planning and development of international a ...
. A number of commercial solutions have also been proposed: * WOEID (Where on Earth IDentifier) is a unique 32-bit reference identifier that identifies any feature on Earth. * NAC Locator provides a universal geocoding address for all locations on the planet.


See also

*
Census tract A census tract, census area, census district or meshblock is a geographic region defined for the purpose of taking a census. Sometimes these coincide with the limits of cities, towns or other administrative areas and several tracts commonly exis ...
* Geolocation * Geotagging * Geographic information retrieval * Global Navigation Grid Code (China geocode?) * ISO 6709, standard representation of geographic point location by coordinates *
Place code A P-code, short for place code, is a kind of geocode used mostly by emergency response teams. It provides unique identifiers to thousands of locations and administrative units in a humanitarian operation. The p-codes are represented by combinations ...
* Unique Property Reference Number * Unique Street Reference Number


References


External links

* {{Geocoding-systems