Lably
Skip to content

Geocode

Code that represents a geographic entity (location or object)

  • 12 min read
  • 5 chapters

Related on Lably

Through Code, Location and Geographical feature

Typical geocodes (in bold) 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 or BR for Brazil), and its subdivision conventions, such as AF subdivision codes (e.g. AF-GHO for Ghor province) or BR 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 6vd23gq at Brazil's centroid) or a Plus Code (e.g. ~0.0002 km2 cell 58Q8XXXX+XX within the same area).
  • Postal code. Polygon of a postal area: a CEP code (e.g. 70040 represents a Brazilian's central area for postal distribution).

In theoretical computer science a geocode system is a hash function, and, an important class of utilitarian geocode systems is described as 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 and of grids).
  • Hierarchy: geocode's syntax hierarchy corresponding to the spatial hierarchy of its represented entities. A geocode system can be hierarchical (name or grid) or non-hierarchical.
  • 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).
  • Scope of use: general use vs specialized (e.g. airport geocodes).

Sign in to keep reading

4 more chapters are free with a Lably account.

More in Cities