https://github.com/oxess/go-nominatim
Simple library for Open Street Maps Nominatim service
https://github.com/oxess/go-nominatim
geocoder go golang library nominatim
Last synced: 5 months ago
JSON representation
Simple library for Open Street Maps Nominatim service
- Host: GitHub
- URL: https://github.com/oxess/go-nominatim
- Owner: oxess
- Created: 2022-01-08T02:11:48.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-01-08T02:36:29.000Z (over 4 years ago)
- Last Synced: 2024-07-13T16:31:44.105Z (almost 2 years ago)
- Topics: geocoder, go, golang, library, nominatim
- Language: Go
- Homepage:
- Size: 1000 Bytes
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GoLang Nominatim - simple lib
Simple library for Open Street Maps Nominatim service.
## Install
```bash
go get -v github.com/oxess/go-nominatim
```
## Usage
Import library:
```go
import "github.com/oxess/go-nominatim"
```
Create service object (public api or own self-hosted instance):
```go
geocoder := nominatim.NewPublicApi() // Default public
// or
geocoder := nominatim.New("https://nominatim.self.hosted") // Default public
```
Search place by address query:
```go
// Limit set to -1 disable limit ion query
geocoder.Search("Warszawa, plac zbawiciela 1", -1)
```
## Tests
Run tests with code coverage:
```bash
go test -v -cover
```