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
15 lines (14 loc) • 431 B
TypeScript
import { OsmObject } from "./osm-object.js";
import type { RefElements } from "./ref-elements.js";
import type { Feature } from "geojson";
export type LatLon = {
lat: string;
lon: string;
};
export declare class Node extends OsmObject {
private latLng;
constructor(id: string, refElems: RefElements);
setLatLng(latLng: LatLon): void;
toFeature(): Feature | undefined;
getLatLng(): LatLon | undefined;
}