9 lines
328 B
TypeScript
9 lines
328 B
TypeScript
import { Feature, Geometry } from "geojson"
|
|
|
|
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 }
|
|
export type OsmFeature = Feature<Geometry, OsmTags>
|