Skip to content

Latest commit

 

History

History
30 lines (26 loc) · 509 Bytes

getMapData.md

File metadata and controls

30 lines (26 loc) · 509 Bytes

getMapData

import { getMapData } from "osm-api";

await getMapData([
  /* minLng */ 1, /* minLat */ 2, /* maxLng */ 3, /* maxLat */ 4,
]);

Response:

[
  {
    "changeset": 243638,
    "id": 4305800016,
    "nodes": [4332338515, 4332338516, 4332338517, 4332338518, 4332338515],
    "tags": {
      "building": "house",
      "name:fr": "chez moi"
    },
    "timestamp": "2022-09-10T11:47:13Z",
    "type": "way",
    "uid": 12248,
    "user": "example_user",
    "version": 4
  }
]