aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md12
1 files changed, 12 insertions, 0 deletions
diff --git a/README.md b/README.md
index a91caff..7741f6b 100644
--- a/README.md
+++ b/README.md
@@ -4,8 +4,20 @@
Может использоваться как сервер, так и отдельная библиотека.
+## Библиотека
+
```go
import "github.com/neonxp/StaticMap/pkg/static"
...
img, err := static.GetMapImage(lat, lon, zoom, width, height)
```
+## Сервер
+
+```go
+go run *.go
+```
+
+В браузере: http://localhost:8000/map?lat=55.798433&lon=49.105191&zoom=16&w=800&h=600
+
+Результат:
+![map.png](map.png)