Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@typebrook
Last active March 10, 2021 07:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save typebrook/e27e0213666a3f1cbebf54257eba9bf2 to your computer and use it in GitHub Desktop.
Save typebrook/e27e0213666a3f1cbebf54257eba9bf2 to your computer and use it in GitHub Desktop.
Remove changeset from cmi3j89d9o #osm #editor
all: final.osc
clean:
rm *.list *.osm *.osc
#OVERPASS_API := https://overpass-api.de/api/interpreter
OVERPASS_API := https://overpass.nchc.org.tw/api/interpreter
TAIWAN_BBOX := 20.72799,118.1036,26.60305,122.9312
USER := cmi3j89d9o
# 使用NCHC OverPass Server
# 取得臺灣內, 使用者為指定名稱, 且版本為1的way資料
bad.osm:
echo "[out:xml]; way(user:$(USER))(if: version() == 1)($(TAIWAN_BBOX)); out meta;" | \
curl -d @- -X POST $(OVERPASS_API) >$@
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment