How can I select multiple ways by their OSM id using the overpass API?
The above query only includes the data about the second way. Link. asked 31 Jul '15, 16:07 CrazyDave2345 |
3 Answers:
For those arriving here via an internet search, this is a quicker way to do it now:
answered 22 Jul '18, 14:16 DaveF edited 10 Apr '23, 11:48 |
Found it for myself this way: [out:json];way(104178011);out tags;way(18916837);out tags; answered 31 Jul '15, 16:36 CrazyDave2345 |
To get the result shown in UI, run this query:
answered 10 Apr '23, 08:03 Mappist edited 10 Apr '23, 08:04 |
Another solution is to use a union, using parentheses:
(way(104178011);way(18916837););
Not important for simple output, but unions are useful for more complicated scripts.
@macerickson Yeah its more formal and stuff.