Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/expand-location-type-known-values.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@hypercerts-org/lexicon": minor
---

Expand locationType knownValues to include geojson, h3, geohash, wkt, address, and scaledCoordinates from the [Location Protocol spec](https://spec.decentralizedgeo.org/specification/location-types/#location-type-registry)
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ const locationRecord = {
$type: LOCATION_NSID,
lpVersion: "1.0", // Location Protocol version
srs: "http://www.opengis.net/def/crs/OGC/1.3/CRS84", // Spatial Reference System
locationType: "coordinate-decimal", // or "geojson-point"
locationType: "coordinate-decimal", // or "geojson-point", "geojson", "h3", "geohash", "wkt", "address", etc.

Copilot AI Feb 12, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this example, locationType is set to "coordinate-decimal" but the location.uri points to a .geojson resource. This is internally inconsistent and could mislead users; update the example so the locationType matches the referenced/embedded location format (e.g., use geojson/geojson-point for a GeoJSON URI, or change the URI to a coordinate-decimal resource).

Suggested change
locationType: "coordinate-decimal", // or "geojson-point", "geojson", "h3", "geohash", "wkt", "address", etc.
locationType: "geojson", // or "coordinate-decimal", "geojson-point", "h3", "geohash", "wkt", "address", etc.

Copilot uses AI. Check for mistakes.
location: {
uri: "https://example.com/location-data.geojson",
},
Expand All @@ -115,7 +115,7 @@ const locationRecord = {

- `lpVersion` (required): Version of the Location Protocol specification
- `srs` (required): Spatial Reference System URI defining the coordinate system
- `locationType` (required): Format identifier (e.g., "coordinate-decimal", "geojson-point")
- `locationType` (required): Format identifier (e.g., "coordinate-decimal", "geojson-point", "geojson", "h3", "geohash", "wkt", "address", "scaledCoordinates"). See the [Location Protocol spec](https://spec.decentralizedgeo.org/specification/location-types/#location-type-registry) for the full registry.
- `location` (required): Location data as URI, blob, or string
- `name` (optional): Human-readable name for the location
- `description` (optional): Additional context about the location
Expand Down
18 changes: 9 additions & 9 deletions SCHEMAS.md
Original file line number Diff line number Diff line change
Expand Up @@ -283,15 +283,15 @@ Certified lexicons are common/shared lexicons that can be used across multiple p

#### Properties

| Property | Type | Required | Description | Comments |
| -------------- | -------- | -------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------ |
| `lpVersion` | `string` | ✅ | The version of the Location Protocol | maxLength: 10 |
| `srs` | `string` | ✅ | The Spatial Reference System URI (e.g., http://www.opengis.net/def/crs/OGC/1.3/CRS84) that defines the coordinate system. | maxLength: 100 |
| `locationType` | `string` | ✅ | An identifier for the format of the location data (e.g., coordinate-decimal, geojson-point) | maxLength: 20, Known values: `coordinate-decimal`, `geojson-point` |
| `location` | `union` | ✅ | The location of where the work was performed as a URI, blob, or inline string. | |
| `name` | `string` | ❌ | Optional name for this location | maxLength: 1000, maxGraphemes: 100 |
| `description` | `string` | ❌ | Optional description for this location | maxLength: 2000, maxGraphemes: 500 |
| `createdAt` | `string` | ✅ | Client-declared timestamp when this record was originally created | |
| Property | Type | Required | Description | Comments |
| -------------- | -------- | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- |
| `lpVersion` | `string` | ✅ | The version of the Location Protocol | maxLength: 10 |
| `srs` | `string` | ✅ | The Spatial Reference System URI (e.g., http://www.opengis.net/def/crs/OGC/1.3/CRS84) that defines the coordinate system. | maxLength: 100 |
| `locationType` | `string` | ✅ | An identifier for the format of the location data (e.g., coordinate-decimal, geojson-point). See the Location Protocol spec for the full registry: https://spec.decentralizedgeo.org/specification/location-types/#location-type-registry | maxLength: 20, Known values: `coordinate-decimal`, `geojson-point`, `geojson`, `h3`, `geohash`, `wkt`, `address`, `scaledCoordinates` |
| `location` | `union` | ✅ | The location of where the work was performed as a URI, blob, or inline string. | |
| `name` | `string` | ❌ | Optional name for this location | maxLength: 1000, maxGraphemes: 100 |
| `description` | `string` | ❌ | Optional description for this location | maxLength: 2000, maxGraphemes: 500 |
| `createdAt` | `string` | ✅ | Client-declared timestamp when this record was originally created | |

#### Defs

Expand Down
13 changes: 11 additions & 2 deletions lexicons/app/certified/location.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,17 @@
},
"locationType": {
"type": "string",
"description": "An identifier for the format of the location data (e.g., coordinate-decimal, geojson-point)",
"knownValues": ["coordinate-decimal", "geojson-point"],
"description": "An identifier for the format of the location data (e.g., coordinate-decimal, geojson-point). See the Location Protocol spec for the full registry: https://spec.decentralizedgeo.org/specification/location-types/#location-type-registry",
"knownValues": [
"coordinate-decimal",
"geojson-point",
"geojson",
"h3",
"geohash",
"wkt",
"address",
"scaledCoordinates"
],
"maxLength": 20
},
"location": {
Expand Down
6 changes: 6 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.