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) • 447 B
TypeScript
import type { Way } from "./way";
export declare class WayCollection extends Array {
private firstMap;
private lastMap;
constructor();
addWay(way: Way): void;
mergeWays(): number[][][];
/**
* Try to find the next way to add to the current way.
* It first tries the next way in the array, and if this doesn't work, try any other way.
*/
private getNextWay;
toRings(direction: string): number[][][];
}