Content deleted Content added
Added H3 built by uber |
m v2.05b - Bot T20 CW#61 - Fix errors for CW project (Reference before punctuation) |
||
(37 intermediate revisions by 27 users not shown) | |||
Line 1:
{{short description|Code that represents a geographic entity (___location or object)}}
{{distinguish|Address geocoding}}
A '''geocode''' is a [[code]] that represents a geographic entity ([[___location]] or [[Geographical feature|object]]). 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]] and short identifier.▼
▲A '''geocode''' is
Typical geocodes and entities represented by it:▼
▲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. <br />The main examples are ISO codes: [[ISO 3166-1 alpha-2]] code (e.g. '''<code>AF</code>''' for [[Afghanistan]] or '''<code>BR</code>''' for [[Brazil]]), and its subdivision conventions, such as [[ISO 3166-2:AF|{{mono|1=AF}} subdivision codes]] (e.g. '''<code>AF-GHO</code>''' for [[Ghor province]]) or [[ISO 3166-2:BR|{{mono|1=BR}} subdivision codes]] (e.g. '''<code>BR-AM</code>''' for [[Amazonas (Brazilian state)|Amazonas state]]).
* ''DGG cell ID''. Identifier of a cell of a [[discrete global grid]]: a [[Geohash]] code (e.g. ~0.023
* ''Postal code''. Polygon of a [[postal code|postal area]]: a [[Código de Endereçamento Postal|CEP]] code (e.g. '''<code>70040</code>''' represents a Brazilian's central area for postal distribution).
The ISO 19112:2019 standard<ref>"ISO 19112:2019 — Geographic information — Spatial referencing by geographic identifiers", "Section 3.1.2 — Geographic identifier", https://www.iso.org/standard/70742.html</ref> (section 3.1.2) adopted the term "geographic identifier" instead ''geocode'', to encompass long labels: ''spatial reference in the form of a label or code that identifies a ___location''. For example, for ISO, the country name “People's Republic of China” is a label. Some authors, such as the United States Census Bureau,<ref>"Understanding Geographic Identifiers (GEOIDs)", https://www.census.gov/programs-surveys/geography/guidance/geo-identifiers.html</ref> use the abbreviation "GEOID" as a synonym for ''geocode''.
Geocodes are mainly used (in general as an [[Primitive data type|atomic data type]]) for [[labelling]], [[data integrity]], [[geotagging]] and [[Spatial database#Spatial index|spatial indexing]].
Line 14 ⟶ 20:
== Classification ==
[[File:Geocode-exemple1-MASP.png|thumb|420px|
Geocode cells of [[Geohash]], with 8 (blue) and 9 (yellow) digits, a
]]
Line 20 ⟶ 26:
* ''Ownership'': proprietary or [[public ___domain|free]], differing by its [[licence]]s.
* ''Formation'': the geocode can be originated from a name (ex. abbreviation of official name the country) or from mathematical function ([[data compression|encoding]] algorithm to compress [[latitude-longitude]]). See ''geocode system'' types below (of [[#Systems of standard names|names]] and of [[#Systems of regular grids|grids]]).
* ''Hierarchy'': geocode's syntax hierarchy corresponding to the spatial hierarchy of its represented entities. A geocode system can hierarchical ([[#Hierarchical_naming|name]] or [[#Hierarchical_grids|grid]]) or non-hierarchical.▼
* ''Covering'':
* ''Type of the represented entity'': [[Well-known text representation of geometry|type of geometry]]. Point (the geocode can be translated to a [[Geo URI]]), grid cell (the geocode system is related with a [[discrete global grid|DGG]]) or polygon (typically administrative boundaries delimitations).
<!-- ** grids can be also classified as [[Discrete global grid#Hierarchical grids|''hierarchical'']] or [[Discrete global grid#Non-hierarchical grids|''non-hierarchical'']]-->
Line 26 ⟶ 33:
** some non-standard geographic entities, can be classified also by its [[Coordinate system|coordinate system and elipsoid of reference]] (e.g. [[Universal Transverse Mercator coordinate system|UTM]]). The [[de facto standard|''de facto'' standard]] is the [[WGS84]].<ref>For internet formats and protocols, the [[WGS84]] is ''de facto'' and [[De jure|''de juri'']] standard: see [[geo URI]] protocol, [[GeoJSON]], [[Geography Markup Language|GML]] and [[Keyhole Markup Language|KML]] formats.</ref>
* ''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 ([[#Hierarchical_naming|name]] or [[#Hierarchical_grids|grid]]) or non-hierarchical.
<!-- add or move the part to a final observation:
Grids have also some tradition in more specific classifying: DGGS is (hierarchical+grid+global+equalArea) ... DGG is (grid+global) ...
-->
==
The set of all geocodes used as unique identifiers of the cells of a [[Tessellation#Voronoi tilings|full-coverage]] of the [[Terrain|geographic surface]] (or any well-defined area like a country or the oceans), is a '''geocode system''' (also named ''geocode scheme''). The [[Syntax (programming languages)|syntax]] and [[Semantics (computer science)|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
* geocode '''semantic''': the meaning of the geocode, usually expressed by associating the code with a geographical entity type.
Many syntax and semantic characteristics are also summarized by classification.
Line 43 ⟶ 49:
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 [[Open Geospatial Consortium|OGC]],<ref name="OGC">Definitions of the [[Open Geospatial Consortium|OGC]]'s "[https://www.opengeospatial.org/ogc/glossary/g Glossary of Terms]".</ref> 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
;geocoder service: A geocoder implemented as [[web service]] (or similar service interface), that accepts a set of
;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.<br /> Note: when a [[Address#Current addressing schemes|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.
Line 58 ⟶ 64:
[[File:States of Germany coded.svg|thumb|200px|right|Germany (<code>DE</code>) with each [[States of Germany|first-level administrative subdivision]] labelled with the second part of its ISO 3166-2 code.]]
[[File:Huc region-edit.png|thumb|right|200px|The 21 top-level 2-digit "region" of hydrologic unit boundaries, using the
Strictly speaking, the "name" related to
type=PhD
|last1=DeLozier|first1=Jochen L.
|date=2007|title=Toponym resolution in text: annotation, evaluation and applications of spatial grounding
|url=
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".
Line 74 ⟶ 80:
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 division|administrative subdivisions]] separated by hyphen. For example <code>DE</code> is [[Germany]], a simple geocode, and its subdivisions (illustrated) are <code>DE-BW</code> for [[Baden-Württemberg]], <code>DE-BY</code> for [[Bayern]], ..., <code>DE-NW</code> for [[Nordrhein-Westfalen]], etc. The scope is only the first level of the hierarchy. For more levels there are other conventions, like HASC
:<code>DE.NW</code> - [[North Rhine-Westphalia]]. A two-level hierarchical geocode.
Line 84 ⟶ 90:
=== Systems of regular grids ===
[[file:Ordnance_Survey_National_Grid.svg|thumb|420px|Each cell of a regular grid
{{main|Discrete global grid#Geocoding variants{{!}}DGG geocoding variants}}
Line 92 ⟶ 98:
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,
==== Hierarchical grids ====
Line 99 ⟶ 105:
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: <code>TQ 28</code> and <code>TQ 61</code> represents geographically [[Interior (topology)|interior parts]] of <code>TQ</code>, the common prefix.
Hierarchical geocode can be split into keys. The [[Geohash]] <code>6vd23gq</code> is the key <code>q</code> of the cell <code>6vd23g</code>, that is a cell of <code>6vd23</code> (key <code>g</code>), and so on,
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.
The uniformity of shape and area of cells in a grid can be important for other uses, like [[Spatial analysis|spatial statistics]]. 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 [[Open Geospatial Consortium|OGC]].<ref>"Topic 21: Discrete Global Grid Systems Abstract Specification", [[Open Geospatial Consortium]] (2017). https://docs.opengeospatial.org/as/15-104r5/15-104r5.html</ref>
Line 110 ⟶ 116:
: [[Mapcode]] entrance to the elevator of the [[Eiffel Tower]] in Paris is <code>FR-4J.Q2</code>, where <code>FR</code> is the name-code<ref>
See formal use of ISO country codes in Mapcode
</ref> and <code>4J.Q2</code> is the grid-code. Semantically France is the context, to obtain its local grid.<!-- can be expanded to “France 4J.Q2”-->
Line 117 ⟶ 123:
== Shortening grid-based codes by context ==
Any ''geocode system'' [[#Systems of regular grids|based on regular grid]], in general is also a shorter way to express a latitudinal/longitudinal coordinate. But a geocode
In fact a methodology exists for [[#Hierarchical grids|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:
Line 137 ⟶ 143:
|}
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 attaching a suitable sufficiently close locality.<ref>{{Cite web|url=https://github.com/google/open-___location-code/wiki/Guidance-for-shortening-codes|title = Guidance for shortening codes · google/Open-___location-code Wiki|website = [[GitHub]]}}
When the mixed reference is also short (9 characters in the second example) and there are a syntax convention to express it (suppose <code>CP‑PR~bgxed</code>), this convention is generating a new [[#Name-and-grid systems|name-and-grid geocode system]]. This is not the case of the first example because, strictly speaking, "Cape Verde, Praia" is not a code.
Line 144 ⟶ 150:
== Cataloged examples ==
{{
=== In use, general scope ===
Geocodes in use and with general scope:
Line 173 ⟶ 179:
|-
| [[What3words]]|| 2013 || globe || encode(latLon) || '''patented''' || grid cell
| patent-restrictions system, converts 3x3 meter squares into 3 words.<ref>{{cite web|title=What3words: Find and share very precise locations via Google Maps with just 3 words|date=2 July 2013|url=https://thenextweb.com/apps/2013/07/02/what3words-a-new-way-to-search-for-and-share-locations-via-google-maps-with-just-3-words-universal-address-system/|access-date=8 July 2014}}</ref> It is in use at [[Mongol Post]].<ref>{{Cite web|url=
|-
| [[Mapcode]] || 2001 || globe || encode(latLon) || '''patented''' || point
| A mapcode is a code consisting of two groups of letters and digits, separated by a dot.
|-
| Geopeg || 2020 || globe/only nations || encode(latLon) || '''open standard''' || grid cell
| Geopeg is word-based GPS address, using simple words like London.RedFish. It is a combination of a city and two simple words. It is an open standard geocoding of Earth, currently in development. [https://geopeg.com/demo Geopeg]
|
|}
Line 187 ⟶ 198:
|-
|[[Open Location Code|Local OLC]] (Cape Verde)|| 2016 || globe || encode(latLon,precision) || free || grid cell
| OLC is used to provide postal services.<ref>(2016-09-08) "Correios de Cabo Verde testam novo sistema de endereçamento da Google",
|-
|[[Postal addresses in the Republic of Ireland#Eircode|Eircode]] (Ireland)|| 2014<ref>{{cite news|author=Dept of Communications |url=http://www.dcenr.gov.ie/news-and-media/en-ie/Pages/PressRelease/Minister-Rabbitte-launches-Eircode-the-new-___location-codes-for-Irish-addresses.aspx |title=Minister Rabbitte launches Eircode the new ___location codes for Irish addresses |publisher=[[DCENR]] |date=28 April 2014 |access-date=2015-07-15}}</ref> || Ireland || encode(latLon,precision) || copyrighted<ref>{{Cite web|url=https://www.eircode.ie/legal|title = Eircode Terms of Use}}</ref> || grid cell
Line 195 ⟶ 206:
=== In use, postal codes ===
Geocodes in use, as [[postal codes]]. A geocode recognized by [[Universal Postal Union]] and adopted as "official postal code" by a [[country]], is also a valid postal code.
{|class="wikitable"|
Line 325 ⟶ 336:
== Other examples ==
Other geocodes:
* ''S2'':
* ''H3'':
* ''Munich Orientation Convention'': converts lat/lon to metrical monopolar codes for targets, crossings, stations, stop points, bridges, tunnels, towns, islands, volcanoes, highway exits etc.<ref>[https://gssc.esa.int/navipedia/index.php/Step_By_Step_Navigation|Navipedia / ESA]{{dead link|date=December 2017 |bot=InternetArchiveBot |fix-attempted=yes }}</ref>
* ''SALB'' (Second Administrative Level Boundaries), by UN
* [[Postal addresses in the Republic of Ireland#OpenPostcode|OpenPostcode]], opensource global algorithm (local adaptations as Irish & Hong Kong postcodes).<ref>{{cite web|title=OpenPostcode.org|url=http://www.openpostcode.org|access-date=10 June 2012}}</ref>
* [[WOEID]]
Line 337 ⟶ 348:
* 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
* [[ONS coding system]] (hierarchical code used in the UK for tabulating census)
===Other standards===
Some standards and name servers include:
A number of commercial solutions have also been proposed:
Line 362 ⟶ 374:
==External links==
*{{
{{Geocoding-systems}}
[[Category:Geocodes| for all types of data and information that is used to make a decision about a specific set of information and the information it provides for it]]
|