Overpass ql - how to show only aerialways that have piste within 1 km

I am trying to extract ski resort data and in particular aerialway. If i just query way["aerialway"] it gives me even sightseeing aerialways that are not part of a ski resort. How can I query only those aerialways that are within, say, 1km of a piste:type object please?

  [out:json];
  {{geocodeArea:Canada}}->.searchArea;
  // gather results
  (
    ( 
    //node["landuse"="winter_sports"](area.searchArea);>;
  
    //way["landuse"="winter_sports"](area.searchArea);>;  
    //way["piste:type"](area.searchArea);>;
      way["aerialway"="cable_car"](area.searchArea);>;
      way["aerialway"="gondola"](area.searchArea);>;
      way["aerialway"="chair_lift"](area.searchArea);>;
      way["aerialway"="mixed_lift"](area.searchArea);>;
      way["aerialway"="drag_lift"](area.searchArea);>;
      way["aerialway"="t-bar"](area.searchArea);>;
      way["aerialway"="j-bar"](area.searchArea);>;
      way["aerialway"="platter"](area.searchArea);>;
      way["aerialway"="rope_tow"](area.searchArea);>;
      way["aerialway"="magic_carpet"](area.searchArea);>;
      //node["aerialway"="pylon"](area.searchArea);>;
      //node["aerialway"="pylon"](area.searchArea);>;
      //relation["landuse"="winter_sports"](area.searchArea);>;
    );
  );
  // print results
  out body;
  >;
  out skel qt;
1 Like

I think that you should search for all the piste:type ways and then find which ones have an aerialway=* within 1km using the around filter. This is a basic query to start from:

[out:json];
{{geocodeArea:Canada}}->.searchArea;
way["piste:type"](area.searchArea);
way["aerialway"](around:1000);
out;
>;
out;
4 Likes