Skip to content

OpenStreetMap Geolocation package / Nominatim Wrapper for Go

License

Notifications You must be signed in to change notification settings

nicostuhlfauth/geoosm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

OpenStreetMap Geolocation in Golang

This package provides access to Nominatim, a tool to search OSM data by name and address.

Install

Simply run go get github.com/nicostuhlfauth/geoosm

Use the package

Example:

package main

import (
	"fmt"

	"log"

	"github.com/nicostuhlfauth/geoosm"
)

func main() {
	data, err := geoosm.NewOSMData().GetJSON("Times+Square,+New+York,+USA")
	if err != nil {
		log.Println(err)
	}
	fmt.Println(data[0].Lat + "," + data[0].Lon)
}

License

MIT.

Data License

The OpenStreetMap data is provided under the terms of Open Database License (ODbL).

About

OpenStreetMap Geolocation package / Nominatim Wrapper for Go

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages