Skip to content

Latest commit

 

History

History
26 lines (22 loc) · 455 Bytes

getFeatureAtVersion.md

File metadata and controls

26 lines (22 loc) · 455 Bytes

getFeatureAtVersion

import { getFeatureAtVersion } from "osm-api";

await getFeatureAtVersion("node", 123456789, 5);

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
}