diff --git a/doc/get_trainlines.sh b/doc/get_trainlines.sh new file mode 100644 index 0000000..545fdc0 --- /dev/null +++ b/doc/get_trainlines.sh @@ -0,0 +1,7 @@ +#!/bin/sh +curl -X POST -k -H 'Content-Type: application/json' 'https://pandorabox.io/map/api/mapobjects/' --data '{ + "type":"train", + "pos1":{"x":-2048,"y":-2048,"z":-2048}, + "pos2":{"x":2048,"y":2048,"z":2048} +}' | jq + diff --git a/go.mod b/go.mod index f714f38..eedb6b6 100644 --- a/go.mod +++ b/go.mod @@ -2,7 +2,7 @@ module mapserver require ( github.com/disintegration/imaging v1.6.1 - github.com/gorilla/websocket v1.4.0 + github.com/gorilla/websocket v1.4.1 github.com/lib/pq v1.2.0 github.com/mattn/go-sqlite3 v1.11.0 github.com/mjibson/esc v0.1.0 // indirect diff --git a/go.sum b/go.sum index 5d5bd9f..e188b45 100644 --- a/go.sum +++ b/go.sum @@ -13,6 +13,8 @@ github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= github.com/gorilla/websocket v1.4.0 h1:WDFjx/TMzVgy9VdMMQi2K2Emtwi2QcUQsztZ/zLaH/Q= github.com/gorilla/websocket v1.4.0/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ= +github.com/gorilla/websocket v1.4.1 h1:q7AeDBpnBk8AogcD4DSag/Ukw/KV+YhzLj2bP5HvKCM= +github.com/gorilla/websocket v1.4.1/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= github.com/konsorten/go-windows-terminal-sequences v1.0.1 h1:mweAR1A6xJ3oS2pRaGiHgQ4OO8tzTaLawm8vnODuwDk= github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= github.com/lib/pq v1.0.0 h1:X5PMW56eZitiTeO7tKzZxFCSpbFZJtkMMooicw2us9A=