9 lines
No EOL
326 B
TypeScript
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> |