3 # this is for emergency/rare use only, hence the non automated way
5 # The right ways would be:
6 # - WSI native browser of openstreetmap tile servers
7 # - local C code software renderer with partial ector data
8 # - noscript/basic (x)html www site with C coded software renderer and
9 # partial vector data or browsing some tile servers (found one but dead)
11 curl
=/nyan
/curl
/current
/bin
/curl
13 # vitrolles: 43.46 5.24861111111
14 # marseille: 43.296346 5.369889
15 # aubagne: 43.29083 5.57083
17 # typical: at 43.28 latitude, 0.01 longitude is ~800 meters
18 # typical: at 5.58 longitude, 0.01 latitude is ~1400 meters
19 # XXX: broken, "paper_size": "Din A0"
20 cat >/tmp
/map.json
<<EOF
22 "title": "emergency map",
31 #$curl "https://api.get-map.org/apis/paper_formats"
32 # not tested: "layout" parameter
33 #$curl "https://api.get-map.org/apis/layouts"
34 # not tested: "style" parameter for base style
35 #$curl "https://api.get-map.org/apis/styles"
36 # not tested: "overlays" parmeter, list of overlays
37 #$curl "https://api.get-map.org/apis/overlays"
39 #$curl -X POST "https://api.get-map.org/apis/jobs/" -H "Content-Type: application/json" -d @/tmp/map.json -i -o /tmp/job.txt
41 #$curl "https://api.get-map.org/apis/jobs/71079" -o /tmp/job-results.txt
42 #$curl -O "https://api.get-map.org/results//071079_2019-07-12_19-57_emergency-map.png"