aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/osm/osm
diff options
context:
space:
mode:
authortypebrook <typebrook@gmail.com>2020-03-02 20:34:54 +0800
committertypebrook <typebrook@gmail.com>2020-03-02 20:34:54 +0800
commita2497077066d4e26268bdd071851482252e45020 (patch)
treef8f9c868abda19dd85744db84367966abe3f944b /tools/osm/osm
parentaf7ce43c718cb6bc0d7aac4633a8113f9a540ec5 (diff)
parent00b136155183ae522ca458e540a8cf29bf525e74 (diff)
Merge branch 'dev' of github.com:typebrook/settings into dev
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}