mapcomplete/Models/OsmFeature.ts
2022-08-24 02:22:06 +02:00

9 lines
No EOL
326 B
TypeScript

import {Feature, Geometry} from "@turf/turf";
export type RelationId = `relation/${number}`
export type WayId = `way/${number}`
export type NodeId = `node/${number}`
export type OsmId = NodeId | WayId | RelationId
export type OsmTags = Record<string, string> & {id: OsmId}
export type OsmFeature = Feature<Geometry, OsmTags>