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) • 450 B
TypeScript
import type { Way } from "./way.js";
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[][][];
}