diff options
author | typebrook <typebrook@gmail.com> | 2020-03-02 20:34:54 +0800 |
---|---|---|
committer | typebrook <typebrook@gmail.com> | 2020-03-02 20:34:54 +0800 |
commit | a2497077066d4e26268bdd071851482252e45020 (patch) | |
tree | f8f9c868abda19dd85744db84367966abe3f944b /tools/osm/osm | |
parent | af7ce43c718cb6bc0d7aac4633a8113f9a540ec5 (diff) | |
parent | 00b136155183ae522ca458e540a8cf29bf525e74 (diff) |
Merge branch 'dev' of github.com:typebrook/settings into dev
Diffstat (limited to 'tools/osm/osm')
-rw-r--r-- | tools/osm/osm | 17 |
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 | ||
4 | export OSM_SERVER=https://api.openstreetmap.org | ||
5 | |||
6 | export OSM_API=$OSM_SERVER/api/0.6 | ||
7 | export OSM_USER_PASSWD=$(cat $SETTING_DIR/tokens/osm 2>/dev/null) | ||
8 | |||
9 | FILENAME=$0 | ||
10 | |||
11 | utils.osm() { | ||
12 | vim $FILENAME && source $FILENAME | ||
13 | } | ||
14 | |||
15 | osm.api() { | ||
16 | curl -X GET $OSM_API/$1/$2 | ||
17 | } | ||