osm-api
Version:
πΊοΈπ Javascript/Typescript wrapper around the OpenStreetMap API
11 lines (10 loc) β’ 462 B
TypeScript
import type { OsmChange, Tags } from "../../types";
/**
* this function also sorts the elements to ensure that deletion
* works. This means you don't need to worry about the array order
* yourself.
* For example, deleting a square building involves deleting 4 nodes
* and 1 way. The 4 nodes need to be included in the deletions array
* before the way.
*/
export declare function createOsmChangeXml(csId: number, diff: OsmChange, metadata?: Tags): string;