mapcomplete/Models/OsmFeature.ts

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
328 B
TypeScript
Raw Normal View History

import { Feature, Geometry } from "geojson"
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
export type OsmTags = Record<string, string> & { id: string }
2022-07-13 17:56:10 +02:00
export type OsmFeature = Feature<Geometry, OsmTags>