---
id: "gln"
kind: "datatype"
status: "stable"
is_pii: false
categories: ["geo", "gs1"]
langs: ["common"]
quality: 95
url: "http://registry.apicrafter.io/datatype/gln"
---

# Global Location Number (GLN) (`gln`)

The Global Location Number (GLN, sometimes also referred to as International Location Number or ILN) of the respective organization, person, or place. The GLN is a 13-digit number used to identify parties and physical locations.

- Personal data (PII): no
- Categories: Geographic identifiers (geo), GS1 standards (gs1)
- Countries: global
- Languages: Common to most languages (common)
- Classification: identifier
- Patterns: `gs1_ai_410`, `gs1_ai_411`, `gs1_ai_412`, `gs1_ai_413`, `gs1_ai_414`, `gs1_ai_415`, `gs1_ai_416`, `gs1_ai_417`

## Detection

Regular expression (Python `re`):

```
^\d{13}$
```

Check digit algorithm: `gs1_mod10`

## Examples

- `0865321000104` — Google
- `0860484000404` — The Coca-Cola Company
- `0860484000405` (invalid example) — Last digit changed: fails the GS1 check digit

## Mappings

- autotype: `gln`
- fhir: `http://www.gs1.org/gln`
- schema_org: `globalLocationNumber`
- wikidata: `P9860`

## Metacrafter rules

6 rules: 3 match the field name, 3 match values.

- `glnfield` (field, `common/geo.yaml`)
- `glnvalue` (data, `common/geo.yaml`)
- `gs1_glnfield` (field, `common/gs1.yaml`)
- `gs1_glnvalue` (data, `common/gs1.yaml`)
- `objects_glnfield` (field, `common/objects.yaml`)
- `objects_glnvalue` (data, `common/objects.yaml`)

## Supported by tools

- `autotype`
- `metacrafter`

## Sources

- schema.org: <https://schema.org/globalLocationNumber>
- other: <https://www.gs1.org/standards/id-keys/gln>
- wikipedia: <https://en.wikipedia.org/wiki/Global_Location_Number>
- wikidata: <https://www.wikidata.org/wiki/Property:P9860>

## Quality

Score 95/100. Missing: translation.

JSON: <http://registry.apicrafter.io/api/v1/datatypes/gln.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/geo/gln.yaml>
