aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/osm/osm
diff options
context:
space:
mode:
authortypebrook <typebrook@gmail.com>2020-02-27 16:32:37 +0800
committertypebrook <typebrook@gmail.com>2020-02-27 16:32:37 +0800
commit00b136155183ae522ca458e540a8cf29bf525e74 (patch)
treec6e9d20d5021c95afc7149456d57eb435d808150 /tools/osm/osm
parent3fa79eb14a4c0244fb2dc4a5b805b7cffaa63770 (diff)
update
Diffstat (limited to 'tools/osm/osm')
-rw-r--r--tools/osm/osm17
1 files changed, 17 insertions, 0 deletions
diff --git a/tools/osm/osm b/tools/osm/osm
new file mode 100644
index 0000000..a595fb7
--- /dev/null
+++ b/tools/osm/osm
@@ -0,0 +1,17 @@
1#! /bin/sh
2
3#export OSM_SERVER=https://master.apis.dev.openstreetmap.org
4export OSM_SERVER=https://api.openstreetmap.org
5
6export OSM_API=$OSM_SERVER/api/0.6
7export OSM_USER_PASSWD=$(cat $SETTING_DIR/tokens/osm 2>/dev/null)
8
9FILENAME=$0
10
11utils.osm() {
12 vim $FILENAME && source $FILENAME
13}
14
15osm.api() {
16 curl -X GET $OSM_API/$1/$2
17}