geocoder

package
v1.18.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 4, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Inspired by https://github.com/codingsince1985/geo-golang

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrClientNotSet    = errors.New("geocoder: client not set")
	ErrAddressNotFound = errors.New("geocoder: address not found")
)

Functions

func Find added in v1.17.0

func Find(a string) (*geo.Address, error)

func Reverse added in v1.17.0

func Reverse(q Query) (*geo.Address, error)
func Search(a string) ([]string, error)

func SetClient

func SetClient(l *slog.Logger, ua string)

Types

type Query

type Query struct {
	Lat    float64 `url:"lat"`
	Lon    float64 `url:"lon"`
	Format string  `url:"format"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL