UNPKG

osm-api

Version:

πŸ—ΊοΈπŸŒ Javascript/Typescript wrapper around the OpenStreetMap API

10 lines (9 loc) β€’ 658 B
import type { BBox, OsmFeature } from "../types"; import { type FetchOptions } from "./_osmFetch"; /** * This command returns: * - All nodes that are inside the given bounding box and any relations that reference them. * - All ways that reference at least one node that is inside the given bounding box, any relations that reference those ways, and any nodes outside the bounding box that those ways may reference. * - All relations that reference one of the nodes, ways or relations included due to the above rules. (Does not apply recursively) */ export declare function getMapData(bbox: BBox | string, options?: FetchOptions): Promise<OsmFeature[]>;