I'm struggling to build a mini database set for with the following structure
{countryId, governorateId, cityId}
The idea is: I need to find all admin_level=4 for Egypt, then for each result, get the cities|suburb|town
Example: Cairo: ['Nasr City', 'Fifth Sattelment',...etc.]
Where Cairo = Governorate, 'Nasr City' = Suburb
What i have so far:
[out:csv(::id, 'place', 'name:ar', 'name:en')][timeout:25];
// fetch area “Egypt” to search in
{{geocodeArea:Egypt}}->.searchArea;
// gather results
(
node[place~"city|town|suburb"](area.searchArea);
);
// print results
out body;
>;
out skel qt;
which gives me the list, but without relations, so i have no clue which suburb
is inside which city