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
24 lines (23 loc) • 738 B
TypeScript
import { Feature } from "geojson";
import { OsmObject } from "./osm-object.js";
import { LatLon } from "./node.js";
import type { RefElements } from "./ref-elements.js";
export declare class Way extends OsmObject {
private latLngArray;
private center;
private tainted;
constructor(id: string, refElems: RefElements);
addLatLng(latLng: LatLon): void;
setCenter(center: LatLon): void;
setLatLngArray(latLngArray: Array<LatLon & {
[k: string]: any;
}>): void;
addNodeRef(ref: string): void;
addTags(tags: {
[k: string]: string;
}): void;
addTag(k: string, v: string): void;
toCoordsArray(): string[][];
toFeature(): Feature | undefined;
get isPolygon(): boolean;
}