I'm looking for a way to grab the capital of a relation, for which I have the OSM ID. I can print out the relation like this:
and I have the data (node with "role": "admin_centre"), however I would then need to parse the JSON myself which is:
What I need is the data found here https://www.openstreetmap.org/node/26761400 , but in JSON format and through the API. I don't have the OSM ID of the node, only the relation. So I would like to know if there is a way to get just the node data. Thanks! asked 14 Jan '19, 19:55 ianare |
You need a recurse filter:
answered 15 Jan '19, 01:37 maxerickson Perfect, thank you! I had seen the recurse filter in the docs but did not understand it.
(15 Jan '19, 09:44)
ianare
|