UNPKG

osm2geojson-ultra

Version:

a faster & more complete OSM & Overpass (either in xml or in json formats) to geojson convertor - 4x faster than xmldom + osmtogeojson in most situations - implemented in TypeScript with txml for XML parsing

14 lines (13 loc) 520 B
import type { Feature, FeatureCollection, GeometryObject } from "geojson"; interface IOptions { /** * An OSM element ID in the form of type/id, eg: way/123 to create a GeoJSON representation of. * If not present, all tagged objects will be converted. * @default undefined */ elementId?: string | undefined; } declare function osm2geojson(osm: string | { [k: string]: any; }, opts?: IOptions): FeatureCollection<GeometryObject> | Feature<any, any> | undefined; export default osm2geojson;