﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
12303	[Patch] When downloading objects with Overpass API, use recurse up to fetch referrers	simon04	simon04	"Since #7670, ""Download object"" can use the Overpass API instead of the OSM API. Since the Overpass API supports the [https://wiki.openstreetmap.org/wiki/Overpass_API/Overpass_QL#Recurse_up_.28.3C.29 recurse up operator] `<;`, we could make use of the for fetching referrers of the object.

Launching ""Download object"" with `n288207873` and ""Download referrers"" as well as ""Download relation members"" set, we have a bunch of HTTP requests:
{{{
INFO: GET https://api.openstreetmap.org/api/0.6/nodes?nodes=288207873 -> 200
INFO: GET https://api.openstreetmap.org/api/0.6/node/288207873/ways -> 200 (943 B)
INFO: Way 26,309,072 with 85 nodes has incomplete nodes because at least one node was missing in the loaded data.
INFO: Way 25,648,174 with 13 nodes has incomplete nodes because at least one node was missing in the loaded data.
INFO: GET https://api.openstreetmap.org/api/0.6/node/288207873/relations -> 200 (184 B)
INFO: GET https://api.openstreetmap.org/api/0.6/way/26309072/full -> 200
INFO: GET https://api.openstreetmap.org/api/0.6/way/25648174/full -> 200
INFO: GET https://api.openstreetmap.org/api/0.6/nodes?nodes=288207917,288207914,1088131027,288207911,2939204923,288207910,278027141,288207924,288207920,1088131320,1088131071,288207882,2217273857,2217273859,1088131312,288207872,1318297762,1088131176,391657967,1318297764,1088130924,1088131040,288207853,2217262568,1088131099,288207852,2217273833,279583979,288207855,288207854,2217273835,2217273837,288207851,2217273839,288207845,288207844,279583971,288207847,288207846,2217062382,288977653,288207841,288207840,2217262566,288207843,288977655,288207842,2217273831,2217062378,415506827,288207869,288207868,288207871,288207870,288207865,288207864,372888428,530245199,288207867,2217273854,372888431,288207866,288207861,2217273840,279583986,288207860,288207863,288207862,2217273843,288207857,288207856,2217273845,288207859,288207858,2217273847,2217262538,1088131007,279583950,279583951,2217262531,2217262533,1088131254,2217262534,288207939,1088130986,288207839,2217262556,279583964,2217262544,2217262547,2217262548,2217262549,279583959,2217262551,1088130980 -> 200
}}}

Ideally, we could strip this down to one Overpass call. The question is just how to combine `node(288207873)` and `>;` and `<;` in order to accomplish this. Help is welcome … :)"	enhancement	closed	normal	20.06	Core		fixed	mirrored_download overpass	Penegal tyr_asd
