Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Geocode

From Wikipedia, the free encyclopedia
Code that represents a geographic entity (location or object)
Not to be confused withAddress geocoding.

Ageocode is acode that represents a geographic entity (location orobject). It is aunique identifier of the entity, to distinguish it from others in afinite set of geographic entities. In general thegeocode is ahuman-readable and short identifier.

Typical geocodes (in bold) and entities represented by it:

  • Postal code. Polygon of apostal area: aCEP code (e.g.70040 represents a Brazilian's central area for postal distribution).

The ISO 19112:2019 standard[1] (section 3.1.2) adopted the term "geographic identifier" insteadgeocode, 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,[2] use the abbreviation "GEOID" as a synonym forgeocode.

Geocodes are mainly used (in general as anatomic data type) forlabelling,data integrity,geotagging andspatial indexing.

Intheoretical computer science ageocode system is alocality-preserving hashing function.

Classification

[edit]
Geocode cells ofGeohash, with 8 (blue) and 9 (yellow) digits, a typicalhierarchical grid, comparing withlatitude-longitude (12 or more digits). Amuseum 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 (orgeocode systems) that can be used as classification criteria:

  • Ownership: proprietary orfree, differing by itslicences.
  • Formation: the geocode can be originated from a name (ex. abbreviation of official name the country) or from mathematical function (encoding algorithm to compresslatitude-longitude). Seegeocode system types below (ofnames and ofgrids).
  • Hierarchy: geocode's syntax hierarchy corresponding to the spatial hierarchy of its represented entities. A geocode system can hierarchical (name orgrid) 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 aGeo URI), grid cell (the geocode system is related with aDGG) or polygon (typically administrative boundaries delimitations).
  • Scope of use: general use vs specialized (e.g. airport geocodes).

System

[edit]

The set of all geocodes used as unique identifiers of the cells of afull-coverage of thegeographic surface (or any well-defined area like a country or the oceans), is ageocode system (also namedgeocode scheme). Thesyntax andsemantic of the geocodes are also components of the system definition:

  • geocodesyntax: 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 common way to describe formally is byregular expression (e.g./[A-Z]{2,2}/).
  • geocodesemantic: the meaning of the geocode, usually expressed by associating the code with a geographical entity type. Can be described formally is by anontology, anUML class diagram or anyEntity-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

[edit]

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 namedencode process, the seconddecode. The actors and process involved, as defined byOGC,[5] are:

geocoder
Asoftware 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 asweb 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 aphysical addressing schemes (street name and house number) is expressed in a standardized and simplified way, it can be conceived as geocode. So, the termgeocoding (used for addresses) sometimes is generalized for geocodes.

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

Systems of standard names

[edit]
Main article:Toponym resolution

Geocodes likecountry 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 astandards organization or governmental authority. So, the most general case is a table ofstandard names and the correspondingstandard codes (and its official geometries).

Germany (DE) with eachfirst-level administrative subdivision labelled with the second part of its ISO 3166-2 code
The 21 top-level 2-digit "region" of hydrologic unit boundaries, using the HUC geocode conventions

Strictly speaking, the "name" related to a geocode is atoponym, and the table (e.g. toponym to standard code) is the resource fortoponym resolution: is therelationship process, usually effectuated by a software agent, between a toponym and "an unambiguous spatial footprint of the same place".[6] Any standardized system of toponym resolution, having codes or encoded abbreviations, can be used asgeocode system. The "resolver" agent in this context is also ageocoder.

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

[edit]

In the geocode context,space partitioning is the process of dividing ageographical space into two or moredisjointsubsets, resulting in amosaic 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 theISO 3166-2 geocode system, representing country names and the names of respectiveadministrative subdivisions separated by hyphen. For exampleDE isGermany, a simple geocode, and its subdivisions (illustrated) areDE-BW forBaden-Württemberg,DE-BY forBayern, ...,DE-NW forNordrhein-Westfalen, etc. The scope is only the first level of the hierarchy. For more levels there are other conventions, like HASC – Hierarchical Administrative Subdivision Codes.[7][8] The HASC codes are alphabetic and its fragments have constant length (2 letters). Examples:

DE.NW -North Rhine-Westphalia. A two-level hierarchical geocode.
DE.NW.CE - KreisCoesfeld. A 3-level hierarchical geocode.

Two geocodes of ahierarchical geocode system with same prefix represents different parts of the same location. For instanceDE.NW.CE andDE.NW.BN represents geographically interior parts ofDE.NW, the common prefix.

Changing thesubdivision criteria we can obtain other hierarchical systems. For example, forhydrological criteria there is a geocode system, the US'shydrologic unit code (HUC), that is a numeric representation ofbasin names in a hierarchical syntax schema (first level illustred). For example, the HUC17 is the identifier of "Pacific Northwest Columbia basin"; HUC1706 of "Lower Snake basin", a spatialsubset of HUC17 and a superset of17060102 ("Imnaha River").

Systems of regular grids

[edit]
Each cell of a regular grid islabeled by a geocode. The non-global grids were the most used before the 2000s.
Thishierarchical system of local grids, used since the 1930s asBritish National Grid, generates hierarchical geocodes. Each cell subdivides recurrently its area into a new 10x10 grid.
Main article:DGG geocoding variants

Inspired in the classicalphanumeric grids, adiscrete global grid (DGG) is a regularmosaic which covers the entireEarth's surface (the globe). Theregularity 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 differentgeocode systems can represent the same position in the globe, with same shape and precision, but differ instring-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

[edit]

Each cell of a grid can be transformed into a new local grid, in arecurring process. In the illustrated example, the cellTQ 2980 is a sub-cell ofTQ 29, that is a sub-cell ofTQ. A system of geographic regulargrid references is the base of ahierarchical geocode system.

Two geocodes of ahierarchical geocode grid system can use the prefix rule: geocodes withsame prefix represents different parts of thesame broader location. Using again the side illustration:TQ 28 andTQ 61 represents geographicallyinterior parts ofTQ, the common prefix.

Hierarchical geocode can be split into keys. TheGeohash6vd23gq is the keyq of the cell6vd23g, that is a cell of6vd23 (keyg), and so on, per-digit keys. TheOLC58PJ642P is the key48 of the cell58PJ64, that is a cell of58Q8 (key48), and so on, two-digit keys. In the case of OLC there is a second key schema, after the+ separator:58PJ642P+48 is the key2 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 Geohash6vd2, which is abase32 code, can be expanded tobase40312312002, 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.[9]

The uniformity of shape and area of cells in a grid can be important for other uses, likespatial 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 theOGC.[10]When human-readable codes obtained from cell identifiers of a DGGS are also standardized, it can be classified asDGGS based geocode system.

Name-and-grid systems

[edit]

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 theEiffel Tower in Paris isFR-4J.Q2, whereFR is the name-code[11] and4J.Q2 is the grid-code. Semantically France is the context, to obtain its local grid.

Formnemonic coherent semantics, in fine-grained geocode applications, the mixed solutions are most suitable.

Shortening grid-based codes by context

[edit]

Anygeocode systembased on regular grid, in general is also a shorter way to express a latitudinal/longitudinal coordinate. But a geocode with more than 6 characters is difficult for remember. On the other hand, ageocode based on standard name (or abbreviation or the complete name) is easier to remember.

This suggests that a "mixed code" can solve the problem, reducing the number of characters when a name can be used as the "context" for 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 a Geohash with prefixu09, that code can be removed —. For instance Geohashu09tut can be reduced totut, or, by an explicit code for context "FR-Paristut". This is only possible when the context resolution (e.g. translation from "FR-Paris" to the prefixu09) is well-known.

In fact a methodology exists forhierarchical 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:

Standards mixedGrid-basedMixed reference
GridOLC and country's official names796RWF8Q+WFCape Verde, Praia,WF8Q+WF
GridGeohash andISO 3166-2 hierarchical abbreviationse6xkbgxedCV-PR,bgxed

The examples of theMixed reference column are significantly easier than rememberingDGG 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.[12]

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 newname-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, likeMapcode, 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

[edit]
This sectionneeds additional citations forverification. Please helpimprove this article byadding citations to reliable sources in this section. Unsourced material may be challenged and removed.
Find sources: "Geocode" – news ·newspapers ·books ·scholar ·JSTOR
(May 2024) (Learn how and when to remove this message)

In use, general scope

[edit]

Geocodes in use and with general scope:

GeocodeInceptionCoverageFormationOwnershipRep. entityContext and description
ISO 3166 (alpha-2 andalpha-3)1974globe/only nationsName abbreviationfreepolygonAdministrative divisions. Country codes and codes of their subdivisions. Two letters (alpha-2) or three letters (alpha-3).
ISO 3166-1 numeric1970globe/only nationsSerial numberfreepolygonAdministrative divisions. Country codes expressed by serial numbers.
UN M.49~1970globe/only nationsSerial numberfreepolygonAdministrative divisions. region codes, area code, continents, countries (re-using ISO 3166-1 numeric codes).
Geohash2008globeencode(latLon,precision)freegrid cellHash notation for locations. See alsoGeohash and its variants, likeOpenStreetMap'sshort-link[13]
Open Location Code (OLC)2014globeencode(latLon,precision)freegrid cellSee alsoPlusCodes.[14]
What3words2013globeencode(latLon)patentedgrid cellpatent-restrictions system, converts 3x3 meter squares into 3 words.[15] It is in use atMongol Post.[16]
Mapcode2001globeencode(latLon)patentedpointA mapcode is a code consisting of two groups of letters and digits, separated by a dot.
Geopeg2020globe/only nationsencode(latLon)open standardgrid cellGeopeg 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.Geopeg

In use, alternative address

[edit]

Geocodes can be used in place of officialstreet names and/orhouse 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 aGeo 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.

GeocodeInceptionCoverageFormationOwnershipRep. entityContext and description
Local OLC (Cape Verde)2016globeencode(latLon,precision)freegrid cellOLC is used to provide postal services.[17]
Eircode (Ireland)2014[18]Irelandencode(latLon,precision)copyrighted[19]grid cellIt is used officially asalternative address and aspostal code. Limited database and algorithm access. It is a kind offine-grained postal code.

In use, postal codes

[edit]

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

GeocodeInceptionCoverageFormationOwnershipRep. entityContext and description
CEP (Brazil)1970?cities or streetsHierarchical serial numberproprietary(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).
Postal Index Number (India)?postal regionsHierarchical serial number?proprietary?(undefined?)...
ZIP Code (United States)?postal regionsHierarchical serial number?proprietary?(undefined?)...

In use, telephony and radio

[edit]

Geocodes in use for telephony or radio broadcasting scope:

In use, others

[edit]

Geocodes in use and with specific scope:

GeocodeInceptionScopeCoverageFormationOwnershipRep. entityContext and description
ONS code2001UK onlyUK/themesSerial numberfreepolygonAdministrative divisions. Geographical areas of the UK, for use in tabulating census.
NUTS area code2003EU onlyEuropeHierarchicalfreepolygonAdministrative divisions. Partially administrative, worldwide (countries) and Europe (country to community)
MARC country codes1971USA only?globe/only nationsName abbreviationfreepolygonAdministrative divisions. Country codes.
SGC codes?Canada only?Serial numberfreepolygonAdministrative divisions, numeric codes. ... Statistical, like ONS.
UN/LOCODE?trade and transportglobeSerial numberfreepolygonAdministrative divisions.UN codes for trade and transport locations.
IATA airport codes1930sairportglobe?freepolygonAdministrative divisions. area /point codes, airports and 3-letter city codes
ICAO airport codes1950sairportglobe?freepolygonAdministrative divisions.area /point codes, airports
IANA country codes1994Internetglobe?freepolygonAdministrative divisions. Similar toISO 3166-1 alpha-2, seeCountry code top-level domain,List andInternationalized country codes.
IOC country codes~1960SportglobeabbreviationfreepolygonAdministrative divisions. Codes ofIOC members; uses three-letter abbreviation country codes, like ISO 3166-1 alpha-3.
Longhurst code?Environmentglobe?freepolygonAdministrative divisions. A set of four-letter codes used in ecological/geographic regions in oceanography.
FIFA country code?sport/footballglobal?freepolygonAdministrative divisions.
FIPS country codes1994?scopeU.S.?freepolygonAdministrative divisions. (FIPS 10-4) area code.
FIPS place codes?U.S.place?freepolygon(FIPS 55). Administrative divisions.
FIPS country codes?U.S.globe/nations?freepolygon(FIPS 6-4). Administrative divisions
FIPS state codes?U.S.??freepolygon(FIPS 5-2). Administrative divisions

Historical or less widely used

[edit]
GeocodeInceptionScopeCoverageFormationOwnershipRep. entityContext and description
HASC?generalnations and subdivs.Name abbreviationfreepolygonAdministrative divisions. HASC stands "Hierarchical Administrative Subdivision Codes".
UTM Zone?general??freegrid cell?
UTM Grid Zones?general??freegrid cellbased on UTM Zones, and Latitude bands ofMGRS..
WMO squares~2005?Meteorologyglobegridfreegrid cell... replaced by modern DGGS's ...
C-squares2002generalglobe?freegrid cellcompact encoding of geographic coordinate bounds (latitude-longitude). UsesWMO squares as starting point for hierarchical subdivision.
GEOREF?general??freepolygonWorld Geographic Reference System, a military / air navigation coordinate system for point and area identification
GARS~2007?general??freepolygonreference system developed by the National Geospatial-Intelligence Agency (NGA)
MGRS~1960sgeneral??freegrid cellMilitary Grid Reference System. Derived from UTM and UPS grids by NATO with a unique naming convention.

Other examples

[edit]

Other geocodes:

  • S2: a geocoding scheme usingspherical geometry and the space-fillingHilbert curve, developed atGoogle[20][21]
  • H3: Hexagonal Hierarchical Spatial Index a geocoding scheme initially developed at Uber[22] source code available[23] and documented at h3geo[24]
  • Munich Orientation Convention: converts lat/lon to metrical monopolar codes for targets, crossings, stations, stop points, bridges, tunnels, towns, islands, volcanoes, highway exits etc.[25]
  • SALB (Second Administrative Level Boundaries), by UN[26]
  • OpenPostcode, opensource global algorithm (local adaptations as Irish & Hong Kong postcodes).[27]
  • WOEID
  • OpenStreetMap shortlink, used as a short permanent link to map locations[28]
  • Quarter Degree Grid Cells
  • NAC (patended), area codes (area can be indefinitely small)
  • GEOID, the name ofUnited States Census Bureau geographic identifiers.[29]
  • In the United States, theAmerican 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

[edit]

Some standards and name servers include: ISO 3166, FIPS, INSEE, Geonames, IATA andICAO.

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

[edit]

References

[edit]
  1. ^"ISO 19112:2019 — Geographic information — Spatial referencing by geographic identifiers", "Section 3.1.2 — Geographic identifier",https://www.iso.org/standard/70742.html
  2. ^"Understanding Geographic Identifiers (GEOIDs)",https://www.census.gov/programs-surveys/geography/guidance/geo-identifiers.html
  3. ^The OGS's standard "Discrete Global Grid Systems" definition.
  4. ^For internet formats and protocols, theWGS84 isde facto andde juri standard: seegeo URI protocol,GeoJSON,GML andKML formats.
  5. ^Definitions of theOGC's "Glossary of Terms".
  6. ^DeLozier, Jochen L. (2007).Toponym resolution in text: annotation, evaluation and applications of spatial grounding (PhD). University of Edinburgh.hdl:1842/1849.
  7. ^Gwillim Law (2016).Administrative Subdivisions of Countries: A Comprehensive World Reference, 1900 Through 1998. McFarland.ISBN 978-0-7864-0729-3.
  8. ^"Hierarchical administrative subdivision codes".Statoids.
  9. ^Note: in practical use Geohash can expand to 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.
  10. ^"Topic 21: Discrete Global Grid Systems Abstract Specification",Open Geospatial Consortium (2017).https://docs.opengeospatial.org/as/15-104r5/15-104r5.html
  11. ^See formal use of ISO country codes in Mapcode athttps://www.mapcode.com/territory
  12. ^"Guidance for shortening codes · google/Open-location-code Wiki".GitHub.
  13. ^TheOpenStreetMap'sshort link,documented in wiki.openstreetmap.org, was releasedin 2009, is near the same source-code10 years after. It is strongly based onMorton's interlace algorithm.
  14. ^"Home".plus.codes.
  15. ^"What3words: Find and share very precise locations via Google Maps with just 3 words". 2 July 2013. Retrieved8 July 2014.
  16. ^"Mongolia adopts what3words as national addressing system – Geospatial Solutions : Geospatial Solutions". June 2016.
  17. ^(2016-09-08) "Correios de Cabo Verde testam novo sistema de endereçamento da Google",https://web.archive.org/web/20170209155133/http://aicep.pt/?%2Fnoticias%2F1%2F2534
  18. ^Dept of Communications (28 April 2014)."Minister Rabbitte launches Eircode the new location codes for Irish addresses".DCENR. Retrieved2015-07-15.
  19. ^"Eircode Terms of Use".
  20. ^"Overview".s2geometry.io. Retrieved2018-05-11.
  21. ^Kreiss, Sven (2016-07-27)."S2 cells and space-filling curves: Keys to building better digital map tools for cities".Medium. Retrieved2018-05-11.
  22. ^"Uber Blog announcing h3".uber.com. Retrieved2023-02-08.
  23. ^"h3 open source code".github.com. Retrieved2023-02-08.
  24. ^"h3 documentation".h3geo.org. Retrieved2023-02-08.
  25. ^/ ESA[permanent dead link]
  26. ^"Second Administrative Level Boundaries". Archived fromthe original on 2021-04-04. Retrieved2020-04-09.
  27. ^"OpenPostcode.org". Retrieved10 June 2012.
  28. ^"Shortlink - OpenStreetMap Wiki".
  29. ^"Understanding Geographic Identifiers (GEOIDs)".United States Census Bureau. RetrievedMarch 3, 2016.

External links

[edit]
  • Media related toGeocodes at Wikimedia Commons
Administrative codes
Airport codes
Country codes
Geodesic
place codes
Global
Regional
Postal codes
Telephony
Amateur radio
Retrieved from "https://en.wikipedia.org/w/index.php?title=Geocode&oldid=1317294453"
Category:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp