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
15 lines (14 loc) • 435 B
TypeScript
import { OsmObject } from "./osm-object";
import type { RefElements } from "./ref-elements";
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;
toFeatureArray(): Array<Feature<any, any>>;
getLatLng(): LatLon | undefined;
}