@gtcx/location-types
v0.1.0
Published
Core TypeScript type definitions for GTCX protocol data structures.
Downloads
142
Readme
@gtcx/types
Core TypeScript type definitions for GTCX protocol data structures.
Installation
pnpm add @gtcx/typesAPI
GeoTagData
Represents a geotagged event with location, timestamp, and optional proof.
import type { GeoTagData } from '@gtcx/types';
const tag: GeoTagData = {
id: 'geotag-001',
location: { latitude: 5.6037, longitude: -0.187, accuracy: 10, source: 'gps' },
timestamp: Date.now(),
proof: { type: 'witness', hash: 'sha256:abc...', witnesses: ['node-1'] },
};LocationClaim
Geographic coordinates with accuracy and source metadata.
import type { LocationClaim } from '@gtcx/types';
const loc: LocationClaim = {
latitude: 6.5244,
longitude: 3.3792,
accuracy: 5,
altitude: 42,
source: 'gps',
};GeoTagProof
Proof attestation containing type, hash, and witness node IDs.
BoundingBox
Rectangular geographic boundary defined by north, south, east, and west coordinates.
Testing
This package contains only type definitions and has no runtime tests.
License
BSL 1.1 -- converts to Apache 2.0 on January 1, 2030.
