mapcomplete/Models/OsmFeature.ts

10 lines
331 B
TypeScript
Raw Normal View History

2022-09-08 21:40:48 +02:00
import { Feature, Geometry } from "@turf/turf"
2022-07-13 17:56:10 +02:00
2022-09-03 14:48:38 +02:00
export type RelationId = `relation/${number}`
export type WayId = `way/${number}`
export type NodeId = `node/${number}`
export type OsmId = NodeId | WayId | RelationId
2022-09-08 21:40:48 +02:00
export type OsmTags = Record<string, string> & { id: string }
export type OsmFeature = Feature<Geometry, OsmTags>