Product Code Database
Example Keywords: grand theft -hair $12-122
   » Wiki: Geocode
Tag Wiki 'Geocode'.
A geocode is a that represents a geographic entity ( or object). It is a unique identifier of the entity, to distinguish it from others in a of geographic entities. In general the geocode is a 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 or BR for ), and its subdivision conventions, such as (e.g. AF-GHO for ) or (e.g. BR-AM for Amazonas state).
  • DGG cell ID. Identifier of a cell of a discrete global grid: a code (e.g. ~0.023 km² cell 6vjyngd at the Brazilian's center) or an OLC code (e.g. ~0.004 km² cell 58PJ642P+4 at the same point).
  • Postal code. Polygon of a : a CEP 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 , , and spatial indexing.

In theoretical computer science a geocode system is locality-preserving hashing function.

[[File:Geocode-exemple1-MASP.png|thumb|420px| Geocode cells of , with 8 (blue) and 9 (yellow) digits, a typical hierarchical grid, comparing with latitude-longitude (12 or more digits). A museum is a typical location to be pointed by a geocode, its gate need ~20 meters of precision. ]]

There are some common aspects of many geocodes (or geocode systems) that can be used as classification criteria:

  • Formation: the geocode can be originated from a name (ex. abbreviation of official name the country) or from mathematical function ( algorithm to compress latitude-longitude). See geocode system types below (of names and of grids).

  • 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 ), 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 cellThe 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.For internet formats and protocols, the WGS84 is de facto and standard: see protocol, , GML and KML formats.

  • 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 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 (or any well-defined area like a country or the oceans), is a geocode system (also named geocode scheme). The syntax and semantic 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. /[A-Z]{2,2}/).
  • 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, 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:

A 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 (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. object) represented by the geocodes.

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.

In spatial indexing applications the geocode can also be translated between human-readable (e.g. ) and internal (e.g. binary 64-bit unsigned integer) representations.

Systems of standard names
Main article: toponym resolution.

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 , 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.

Hierarchical naming
Geocodes based on standard systems of hierarchical naming, mainly hierarchical administrative subdivision codes (HASC), are codes to represent names of subdivisions, such as , , . They are described in the book Administrative Subdivisions of Countries: A Comprehensive World Reference, 1900 Through 1998,
(2020). 9780786407293 .
and other sources.

The codes are alphabetic and have constant length for the first level subdivisions. Examples:

DE - . A simple geocode.
DE.NW - North Rhine-Westphalia. A two-level hierarchical geocode.
DE.NW.CE - Kreis Coesfeld. 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.

Systems of regular grids
Main article: DGG geocoding variants.

Inspired in the classic alphanumeric grids, a discrete global grid ( DGG) is a regular which covers the entire (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 . In the illustrated example, the cell TQ 2980 is a sub-cell of TQ 28, 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 commom prefix.

Hierarchical geocode can be split into keys. The 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 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 4 new rectangles, so, base4 is the encoding-expansion limit.Note: in practical use Geohash can use base2, but geometrically it is based on latitude and longitude (2+2) partitions, so base2 can result in loss of symmetry. Strictly Geohash base32 also need two-digit keys for base4 compatibility.

The uniformity of shape and area of cells in a grid can be important for other uses, like . 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."Topic 21: Discrete Global Grid Systems Abstract Specification" Https://< /ref> 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:

entrance to the elevator of the in Paris is FR-4J.Q2, where FR is the name-code
See formal use of ISO country codes in Mapcode at and 4J.Q2 is the grid-code. Semantically France is the context, to obtain its local grid.

For 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 of express a latitudinal/longitudinal coordinate. But more tham 6 digits geocode is difficult for remember. By other hand, a geocode based on standard name (or abbreviation or the complete name) is easy to remember.

So, this suggest that a "mixed code" can be solve the problem, reducing the number of digits when a name can be used as "context" of the grid-based geocode. For example in book where the author say "all geocodes here are contextualized by the chapter's country".

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 shortening by replacing the prefix to the associated context. The most usual context is an official name. Examples:

Grid OLC and country's official names796RWF8Q+WFCape Verde, Praia, WF8Q+WF
Grid ande6xkbgxedCV-PR, bgxed

The examples of the Mixed reference column are significantly easier than remembering DGG code Https://< /ref> and using naming conventions.But PlusCodes is not an open-source algorithm, it uses a /ref>

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 , 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
This section lists most of the geocodes cataloged on Wikipedia, and shows a summarized description of each, based on the classification section.

In use, general scope
Geocodes in use and with general scope:

polygonAdministrative divisions. Country codes and codes of their subdivisions. Two letters (alpha-2) or three letters (alpha-3).
polygonAdministrative divisions. Country codes expressed by serial numbers.

polygonAdministrative divisions. region codes, area code, continents, countries (re-using ISO 3166-1 numeric codes).

grid cell notation for locations. See also and its variants, like 's short-link The 's short link, documented in, was released in 2009, is near the same source-code 10 years after. It is strongly based on .

grid cell Https://< /ref>

grid cellpatent-restrictions system, converts 3x3 meter squares into 3 words. It is in use at .

pointA mapcode is a code consisting of two groups of letters and digits, separated by a dot.

In use, alternative address
Geocodes can be used in place of official street names and/or , 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.

grid cellOLC is used to provide postal services.(2016-09-08) "Correios de Cabo Verde testam novo sistema de endereçamento da Google" Https://< /ref>
Https://< /ref>grid cellIt is used officially as alternative address and as postal code. Limited database and algorithm access. It is a kind of fine-grained postal code.

In use, postal codes
Geocodes in use, as . A geocode recognized by Universal Postal Union and adopted as "official postal code" by a , 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:

(variable)... The CEP5 is geographic and CEP8 can be a city (polygon), a street (also street side or a fragment of street side) or a point (specific address).



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)

In use, others
Geocodes in use and with specific scope:

polygonAdministrative divisions. Geographical areas of the UK, for use in tabulating census.

polygonAdministrative divisions. Partially administrative, worldwide (countries) and Europe (country to community)

polygonAdministrative divisions. Country codes.

polygonAdministrative divisions, numeric codes. ... Statistical, like ONS.

polygonAdministrative divisions. codes for trade and transport locations.

polygonAdministrative divisions. area /point codes, airports and 3-letter city codes
polygonAdministrative divisions.area /point codes, airports

polygonAdministrative divisions. Similar to ISO 3166-1 alpha-2, see Country code top-level domain, List and Internationalized country codes.

polygonAdministrative divisions. Codes of IOC members; uses three-letter abbreviation country codes, like ISO 3166-1 alpha-3.
polygonAdministrative divisions. A set of four-letter codes used in ecological/geographic regions in oceanography.

polygonAdministrative divisions.

polygonAdministrative divisions. (FIPS 10-4) area code.

polygon(FIPS 55). Administrative divisions.

polygon(FIPS 6-4). Administrative divisions

polygon(FIPS 5-2). Administrative divisions

Historical or less used
polygonAdministrative divisions. HASC stands "Hierarchical Administrative Subdivision Codes".

grid cell?

grid cellbased on UTM Zones, and Latitude bands of MGRS..

grid cell... replaced by modern DGGS's ...

polygoncompact encoding of geographic coordinate bounds (latitude-longitude). Use WMO squares.

polygonWorld Geographic Reference System, a military / air navigation coordinate system for point and area identification
polygonreference system developed by the National Geospatial-Intelligence Agency (NGA)

grid cellMilitary Grid Reference System. Derived from UTM and UPS grids by NATO with a unique naming convention.

Other examples
Experimental geocodes or non-registered on Wikipedia:

  • S2: a geocoding scheme using spherical geometry and the space-filling , developed at

  • Munich Orientation Convention: converts lat/lon to metrical monopolar codes for targets, crossings, stations, stop points, bridges, tunnels, towns, islands, volcanoes, highway exits etc. / ESA

  • SALB (Second Administrative Level Boundaries), by UN [7]

  • OpenPostcode, opensource global algorithm (local adaptations as Irish & Hong Kong postcodes).

  • /ref>

  • NAC (patended), area codes (area can be indefinitely small)

  • GEOID, the name of United States Census Bureau geographic identifiers.

See also

Page 1 of 1
Page 1 of 1


Pages:  ..   .. 
Items:  .. 


General: Atom Feed Atom Feed  .. 
Help:  ..   .. 
Category:  ..   .. 
Media:  ..   .. 
Posts:  ..   ..   .. 


Page:  .. 
Summary:  .. 
1 Tags
10/10 Page Rank
5 Page Refs
2s Time