I’m trying to fetch results with Overpass API, while I worked hard to find the right syntax, now I figured that there was different syntax for same results. But the difference of response time is important.
For now, my best way to request what I need is this query:
(
node["natural"~"peak|saddle|bay|beach|cape|glacier|reef|cliff|dunehill|valey|volcano"];
node["place"~"suburb|village|town|city"];
node["leisure"~"nature_reserve|park|track|summer_camp|stadium|marina|horse_riding|golf_course|beach_resort"];
);
(._;>;);
out body;
(
rel["natural"~"peak|saddle|bay|beach|cape|glacier|reef|cliff|dunehill|valey|volcano"];
rel["place"~"suburb|village|town|city"];
rel["leisure"~"nature_reserve|park|track|summer_camp|stadium|marina|horse_riding|golf_course|beach_resort"];
);
(._;>;);
out center tags;
while this same answer with this query will take double time of response:
(
node[natural=peak];
node[natural=saddle];
node[natural=bay];
node[natural=beach];
node[natural=cape];
node[natural=glacier];
node[natural=reef];
node[natural=cliff];
node[natural=dune];
node[natural=hill];
node[natural=valley];
node[natural=volcano];
node[tourism=wilderness_hut];
node[place=suburb];
node[place=village];
node[place=town];
node[place=city];
node[leisure=nature_reserve];
node[leisure=park];
node[leisure=track];
node[leisure=summer_camp];
node[leisure=stadium];
node[leisure=marina];
node[leisure=horse_riding];
node[leisure=golf_course];
node[leisure=beach_resort];
);
(._;>;);
out body;
(
rel[natural=peak];
rel[natural=saddle];
rel[natural=bay];
rel[natural=beach];
rel[natural=cape];
rel[natural=glacier];
rel[natural=reef];
rel[natural=cliff];
rel[natural=dune];
rel[natural=hill];
rel[natural=valley];
rel[natural=volcano];
rel[tourism=wilderness_hut];
rel[place=suburb];
rel[place=village];
rel[place=town];
rel[place=city];
rel[leisure=nature_reserve];
rel[leisure=park];
rel[leisure=track];
rel[leisure=summer_camp];
rel[leisure=stadium];
rel[leisure=marina];
rel[leisure=horse_riding];
rel[leisure=golf_course];
rel[leisure=beach_resort];
);
(._;>;);
out center tags;
Is there a way to improve the first query more than I already did? Thanks