UNPKG

osm2geojson-lite

Version:

a lightweight yet faster osm (either in xml or in json formats) to geojson convertor - 4x faster than xmldom + osmtogeojson in most situations - implemented in pure JavaScript without any 3rd party dependency

13 lines (12 loc) 368 B
import { FeatureCollection, GeometryObject } from 'geojson'; interface IOptions { completeFeature?: boolean; allFeatures?: boolean; renderTagged?: boolean; excludeWay?: boolean; suppressWay?: boolean; } declare function osm2geojson(osm: string | { [k: string]: any; }, opts?: IOptions): FeatureCollection<GeometryObject>; export = osm2geojson;