> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gobl.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Coordinates

Coordinates describes an exact geographical location in the world.

## Schema ID

`https://gobl.org/draft-0/org/coordinates`

## Properties

| Title        | Property  | Type   | Description                                         |
| ------------ | --------- | ------ | --------------------------------------------------- |
| Latitude     | `lat`     | number | Decimal latitude coordinate.                        |
| Longitude    | `lon`     | number | Decimal longitude coordinate.                       |
| What 3 Words | `w3w`     | string | What 3 Words text coordinates.                      |
| Geohash      | `geohash` | string | Single string coordinate based on geohash standard. |

## Validation Rules

| Field | Test                                                                                                                                                                                                                                                                                                            | Validation Code / Message                                                            |
| ----- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------ |
| `lat` | <ul class="gobl-test"><li>At least -90</li><li>At most 90</li></ul>                                                                                                                                                                                                                                             | `GOBL-ORG-COORDINATES-01`<br />Coordinate lattude must be between -90.0 and 90.0     |
| `lon` | <ul class="gobl-test"><li>At least -180</li><li>At most 180</li></ul>                                                                                                                                                                                                                                           | `GOBL-ORG-COORDINATES-02`<br />Coordinate longitude must be between -180.0 and 180.0 |
| `w3w` | <ul class="gobl-test"><li>Matches ^/*(?:(?:\p{L}\p{M}*)+[.｡。･・︒។։။۔።।](?:\p\{L}\p\{M}*)+[.｡。･・︒។։။۔።।](?:\p\{L}\p\{M}*)+\|(?:\p{L}\p{M}\*)+([  ](?:\p\{L}\p\{M}*)+){1,3}[.｡。･・︒។։။۔።।](?:\p\{L}\p\{M}*)+([  ](?:\p\{L}\p\{M}*)+){1,3}[.｡。･・︒។։။۔።।](?:\p\{L}\p\{M}*)+([  ](?:\p\{L}\p\{M}*)+){1,3})\$</li></ul> | `GOBL-ORG-COORDINATES-03`<br />What3words coordinate must be valid                   |
