Update README.md
This commit is contained in:
parent
688cf07f4d
commit
3ff29e8a4c
1 changed files with 12 additions and 0 deletions
12
README.md
12
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)
|
||||
|
|
Loading…
Reference in a new issue