'Get OpenStreetMap data with use of OSM_ID
For my master thesis, I'm trying to get data about all the industrial buildings in the Netherlands. Via Geofrabik, I downloaded 120.000 buildings with their OSM_id. Using this id and Osmapi, I thought I would download the specific locations at once. Now I'm fairly new to this subject, but I got this far to check that it all worked.
import osmapi
api = osmapi.OsmApi()
api.NodeGet(586049534)
The result was the following:
{'id': 586049534,
'visible': True,
'version': 3,
'changeset': 63838467,
'timestamp': datetime.datetime(2018, 10, 24, 16, 8, 51),
'user': 'Alaia',
'uid': 2778590,
'lat': 42.8944217,
'lon': -1.3056701,
'tag': {}}
However, I expected this result: https://www.openstreetmap.org/way/586049534
Could someone help me with getting the info right, and how to eventually make this work in a loop form through my csv file with 120,000 osm_id?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
