geocoder

package
v0.0.0-...-95364da Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLastWord

func GetLastWord(s string) string

Types

type Coords

type Coords [2]float64

type Geocoder

type Geocoder struct {
	Addresses     *trie.PathTrie
	Intersections map[string]map[string]Coords
}

func NewGeocoder

func NewGeocoder(indexFile string) (*Geocoder, error)

func (*Geocoder) Geocode

func (g *Geocoder) Geocode(address string) ([]float64, error)

Jump to

Keyboard shortcuts

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