aboutsummaryrefslogtreecommitdiff
path: root/helpers.go
diff options
context:
space:
mode:
Diffstat (limited to 'helpers.go')
-rw-r--r--helpers.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/helpers.go b/helpers.go
new file mode 100644
index 0000000..b8672ac
--- /dev/null
+++ b/helpers.go
@@ -0,0 +1,14 @@
+package main
+
+import "github.com/paulmach/osm"
+
+func convertTags(tags osm.Tags) []Tag {
+ result := make([]Tag, 0, len(tags))
+ for _, t := range tags {
+ result = append(result, Tag{
+ Key: t.Key,
+ Value: t.Value,
+ })
+ }
+ return result
+}