Taiwan/QA

From OpenStreetMap Wiki
Jump to navigation Jump to search

戶外休閒

山峰海拔值有空白

try it yourself in overpass-turbo
/*
This has been generated by the overpass-turbo wizard.
The original search was:
“type:node and natural=peak and ele~"\\ $" in "臺灣"”
*/
[out:xml]/*fixed by auto repair*/[timeout:25];
// fetch area “臺灣” to search in
{{geocodeArea:臺灣}}->.searchArea;
// gather results
(
  // query part for: “natural=peak and ele~/\ /”
  node["natural"="peak"]["ele"~"\\ $"](area.searchArea);
);
// print results
out meta;/*fixed by auto repair*/
>;
out meta qt;/*fixed by auto repair*/

name中英文混合

/*
This has been generated by the overpass-turbo wizard.
The original search was:
“type:way and "highway" and "name"~"[a-zA-Z]"”
*/
[out:json][timeout:25];
// gather results
(
  // query part for: “highway and name~/[a-zA-Z]/”
  way["highway"]["name"~"[a-zA-Z]"]["name:zh"!~".*"]["name:en"!~".*"]({{bbox}});
);
// print results
out body;
>;
out skel qt;
/*
This has been generated by the overpass-turbo wizard.
The original search was:
“type:way and "highway" and "name"~"[a-zA-Z]"”
*/
[out:json][timeout:25];
// gather results
(
  // query part for: “highway and name~/[a-zA-Z]/”
  way["highway"]["name"~"[a-zA-Z]"]["name:zh"~".*"]["name:en"!~".*"]({{bbox}});
);
// print results
out body;
>;
out skel qt;
{{style:
way {
  text:name;
  }
}}
/*
This has been generated by the overpass-turbo wizard.
The original search was:
“type:way and "highway" and "name"~"[a-zA-Z]"”
*/
[out:json][timeout:25];
// gather results
(
  // query part for: “highway and name~/[a-zA-Z]/”
  way["highway"]["name"~".*"]["name:zh"~".*"]["name:en"~"Rd.|St."]({{bbox}});
);
// print results
out body;
>;
out skel qt;
{{style:
way {
  text:name;
  }
}}

大眾運輸

大眾運輸標準

找出一地區未依大眾運輸標準標示的公車站牌

try it yourself in overpass-turbo
/*
This has been generated by the overpass-turbo wizard.
The original search was:
“highway="bus_stop" and "public_transport" is null in "臺北市"”
*/
[out:xml]/*fixed by auto repair*/[timeout:25];
// fetch area “臺北市” to search in
{{geocodeArea:臺北市}}->.searchArea;
// gather results
(
  // query part for: “highway=bus_stop and public_transport!=*”
  node["highway"="bus_stop"]["public_transport"!~".*"](area.searchArea);
  way["highway"="bus_stop"]["public_transport"!~".*"](area.searchArea);
  relation["highway"="bus_stop"]["public_transport"!~".*"](area.searchArea);
);
// print results
out meta;/*fixed by auto repair*/
>;
out meta qt;/*fixed by auto repair*/


收容所問題

2016年8月出現匯入NCDR收容所資料的用戶,一開始把營區、學校等標示區域範圍的部分標成建築。

範圍被標成建築錯誤

try it yourself in overpass-turbo
[out:xml]/*fixed by auto repair*/[timeout:225];
// fetch area “臺灣” to search in
{{geocodeArea:臺灣}}->.searchArea;
// gather results
(
  node["emergency:amenity"="social_facility"]["amenity"~"school|university|college"]["building"](area.searchArea);
  way["emergency:amenity"="social_facility"]["amenity"~"school|university|college"]["building"](area.searchArea);
  relation["emergency:amenity"="social_facility"]["amenity"~"school|university|college"]["building"](area.searchArea);
);
// print results
out meta;/*fixed by auto repair*/
>;
out meta qt;/*fixed by auto repair*/

缺少名稱

try it yourself in overpass-turbo
[out:xml]/*fixed by auto repair*/[timeout:225];
// fetch area “臺灣” to search in
{{geocodeArea:臺灣}}->.searchArea;
// gather results
(
  // query part for: “"emergency:amenity"=social_facility and name!=*”
  node["emergency:amenity"="social_facility"]["name"!~".*"]["emergency:name"](area.searchArea);
  way["emergency:amenity"="social_facility"]["name"!~".*"]["emergency:name"](area.searchArea);
  relation["emergency:amenity"="social_facility"]["name"!~".*"]["emergency:name"](area.searchArea);
);
// print results
out meta;
>;
out meta qt;

公園未標示leisure=park

try it yourself in overpass-turbo
/*
This has been generated by the overpass-turbo wizard.
The original search was:
“"emergency:amenity"="social_facility" and name is null in "臺灣"”
*/
[out:xml]/*fixed by auto repair*/[timeout:225];
// fetch area “臺灣” to search in
{{geocodeArea:臺灣}}->.searchArea;
// gather results
(
  // query part for: “"emergency:amenity"=social_facility and name!=*”
  node["emergency:amenity"="social_facility"]["leisure"!~"park"]["name"~"公園$"](area.searchArea);
  way["emergency:amenity"="social_facility"]["leisure"!~"park"]["name"~"公園$"](area.searchArea);
  relation["emergency:amenity"="social_facility"]["leisure"!~"park"]["name"~"公園$"](area.searchArea);
);
// print results
out meta;/*fixed by auto repair*/
>;
out meta qt;/*fixed by auto repair*/

缺少amenity=community_centre

addr:street包含門牌

臺中建築問題

/*
This has been generated by the overpass-turbo wizard.
The original search was:
“type:way and name~/[1-9]/”
*/
[out:xml]/*fixed by auto repair*/[timeout:25];
// gather results
(
  // query part for: “name~/[a-z]/”
  way["highway"]["name"~"[1-9]"]({{bbox}});
);
// print results
out meta;/*fixed by auto repair*/
>;
out meta qt;/*fixed by auto repair*/
{{style:
way {
  text:name;
}
}}
<source>

==商家==

[[File:Overpass-turbo.svg|right|try it yourself in overpass-turbo|link=[[File:Overpass-turbo.svg|right|try it yourself in overpass-turbo|link=http://overpass-turbo.eu/s/i6p]]]]
<source lang=cpp>

/*
This has been generated by the overpass-turbo wizard.
The original search was:
“amenity=cafe and name~"台茶一號|50嵐|清新福全|清玉|一首私茶|Sharetea|大苑子|Come Buy|康青龍|茶湯會|水巷茶弄|樂飲茶舖|大苑子|CoCo|橘子工坊" in "臺灣"”
*/
[out:json][timeout:25];
// fetch area “臺灣” to search in
{{geocodeArea:臺灣}}->.searchArea;
// gather results
(
  // query part for: “amenity=cafe and name~/台茶一號|50嵐|清新福全|清玉|一首私茶|Sharetea|大苑子|Come Buy|康青龍|茶湯會|水巷茶弄|樂飲茶舖|大苑子|CoCo|橘子工坊/”
  node["amenity"="cafe"]["name"~"台茶一號|50嵐|清新福全|清玉|一首私茶|Sharetea|大苑子|Come Buy|康青龍|茶湯會|水巷茶弄|樂飲茶舖|大苑子|CoCo|橘子工坊|鮮茶道"](area.searchArea);
  way["amenity"="cafe"]["name"~"台茶一號|50嵐|清新福全|清玉|一首私茶|Sharetea|大苑子|Come Buy|康青龍|茶湯會|水巷茶弄|樂飲茶舖|大苑子|CoCo|橘子工坊|鮮茶道"](area.searchArea);
  relation["amenity"="cafe"]["name"~"台茶一號|50嵐|清新福全|清玉|一首私茶|Sharetea|大苑子|Come Buy|康青龍|茶湯會|水巷茶弄|樂飲茶舖|大苑子|CoCo|橘子工坊|鮮茶道"](area.searchArea);
);
// print results
out body;
>;
out skel qt;

編輯器問題

<!--查出被標成建築的學校-->
<osm-script>
  <query  type="way" >
    <bbox-query {{bbox}}/>
    <has-kv k="amenity" v="school"/>
    <has-kv k="building" v="yes"/>
  </query>
<!-- added by auto repair -->
<union into="_">
  <item set="_"/>
  <recurse from="_" type="down"/>
</union>
<!-- end of auto repair -->
<print from="_" limit="" mode="meta" order="id"/>
</osm-script>
<!--https://help.openstreetmap.org/questions/34206/gathering-the-information-of-schools-with-overpass-api 從這邊的例子改的,原先例子是搜尋學校範圍的建築,改成搜尋學校範圍內的飛機跑道
-->
<osm-script>
  <query into="_" type="way">
    <has-kv k="amenity" modv="" v="school"/>
    <bbox-query {{bbox}}  into="_" />
  </query>
  <recurse from="_" into="_" type="way-node"/>
  <coord-query from="_" into="_" lat="" lon=""/>
  <query into="_" type="area">
    <item set="_"/>
    <has-kv k="amenity" modv="" v="school"/>
  </query>
  <union into="_">
    <query into="_" type="way">
      <area-query from="_" into="_" ref=""/>
      <has-kv k="aeroway" modv="" v="runway"/>
    </query>
    <recurse from="_" into="_" type="way-node"/>
  </union>
  <print e="" from="_" geometry="skeleton" limit="" mode="body" n="" order="id" s="" w=""/>
</osm-script>

手搖杯飲料店amenity=cafe->shop=beverge

/*
This has been generated by the overpass-turbo wizard.
The original search was:
“amenity=cafe and name~"台茶一號|50嵐|清新福全|清玉|一首私茶|Sharetea|大苑子|Come Buy|康青龍|茶湯會|水巷茶弄|樂飲茶舖|大苑子|CoCo|橘子工坊" in "臺灣"”
*/
[out:json][timeout:25];
// fetch area “臺灣” to search in
{{geocodeArea:臺灣}}->.searchArea;
// gather results
(
  // query part for: “amenity=cafe and name~/台茶一號|50嵐|清新福全|清玉|一首私茶|Sharetea|大苑子|Come Buy|康青龍|茶湯會|水巷茶弄|樂飲茶舖|大苑子|CoCo|橘子工坊/”
  node["amenity"="cafe"]["name"~"台茶一號|50嵐|清新福全|清玉|一首私茶|Sharetea|大苑子|Come Buy|康青龍|茶湯會|水巷茶弄|樂飲茶舖|大苑子|CoCo|橘子工坊|鮮茶道"](area.searchArea);
  way["amenity"="cafe"]["name"~"台茶一號|50嵐|清新福全|清玉|一首私茶|Sharetea|大苑子|Come Buy|康青龍|茶湯會|水巷茶弄|樂飲茶舖|大苑子|CoCo|橘子工坊|鮮茶道"](area.searchArea);
  relation["amenity"="cafe"]["name"~"台茶一號|50嵐|清新福全|清玉|一首私茶|Sharetea|大苑子|Come Buy|康青龍|茶湯會|水巷茶弄|樂飲茶舖|大苑子|CoCo|橘子工坊|鮮茶道"](area.searchArea);
);
// print results
out body;
>;
out skel qt;