aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--go.mod2
-rw-r--r--main.go7
-rw-r--r--pkg/static/map.go (renamed from map.go)6
3 files changed, 10 insertions, 5 deletions
diff --git a/go.mod b/go.mod
index 59a005b..95fca89 100644
--- a/go.mod
+++ b/go.mod
@@ -1,4 +1,4 @@
-module OsmStatic
+module github.com/neonxp/StaticMap
go 1.14
diff --git a/main.go b/main.go
index 349f41c..80c5f31 100644
--- a/main.go
+++ b/main.go
@@ -1,7 +1,12 @@
+/*
+Copyright © 2020 Alexander Kiryukhin <a.kiryukhin@mail.ru>
+This file is part of StaticMap project.
+*/
package main
import (
"github.com/labstack/echo/v4"
+ "github.com/neonxp/StaticMap/pkg/static"
"log"
"strconv"
)
@@ -35,7 +40,7 @@ func main() {
if zoom > 20 {
zoom = 20
}
- img, err := GetMapImage(lat, lon, zoom, w, h)
+ img, err := static.GetMapImage(lat, lon, zoom, w, h)
if err != nil {
return err
}
diff --git a/map.go b/pkg/static/map.go
index baa9356..2597aaf 100644
--- a/map.go
+++ b/pkg/static/map.go
@@ -1,8 +1,8 @@
/*
-Copyright © 2020 Alexander Kiryukhin <ak@bytechain.ru>
-This file is part of OsmStatic project.
+Copyright © 2020 Alexander Kiryukhin <a.kiryukhin@mail.ru>
+This file is part of StaticMap project.
*/
-package main
+package static
import (
"bytes"