osm-api
Version:
πΊοΈπ Javascript/Typescript wrapper around the OpenStreetMap API
14 lines (13 loc) β’ 617 B
TypeScript
import type { OsmChange } from "../../types";
import type { ApiCapabilities } from "../getCapabilities";
/**
* If a changeset is too big to upload at once, this function can split
* the changeset into smaller chunks, which can be uploaded separately.
*
* @param capabilities - optional, this data can be fetched from `getApiCapabilities`.
* if not supplied, {@link chunkOsmChange.DEFAULT_LIMIT} is used.
*/
export declare function chunkOsmChange(osmChange: OsmChange, capabilities?: ApiCapabilities): OsmChange[];
export declare namespace chunkOsmChange {
var DEFAULT_LIMIT: number;
}