https://github.com/glaslos/go-osm
osm file parser in golang
https://github.com/glaslos/go-osm
Last synced: about 2 months ago
JSON representation
osm file parser in golang
- Host: GitHub
- URL: https://github.com/glaslos/go-osm
- Owner: glaslos
- License: mit
- Created: 2016-09-20T15:01:20.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-03-16T16:53:14.000Z (about 8 years ago)
- Last Synced: 2025-04-13T22:13:21.205Z (about 2 months ago)
- Language: Go
- Size: 4.88 KB
- Stars: 12
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-osm
OpenStreetMap XML Data parser in golang
## Install
`go get github.com/glaslos/go-osm`
## Usage
```go
package mainimport (
"fmt"
"github.com/glaslos/go-osm"
)var data = `
`
func main() {
m, _ := osm.DecodeString(data)
// 64.0912791 -21.9271369
fmt.Println(m.Nodes[0].Lat, m.Nodes[0].Lng)
}
```