geocode

package module
v0.0.0-...-16ad0c5 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

README

COOPGO Geocode

COOPGO Geocode is a Golang Geocoder library part of the COOPGO Technical Platform.

For the moment, it supports as a backend the following geocoders :

Licence

COOPGO Geocode is released under the terms of the AGPL version 3 licence

Documentation

Index

Constants

View Source
const (
	PELIAS_AUTOCOMPLETE_ENDPOINT = "/v1/autocomplete"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Geocoder

type Geocoder interface {
	Autocomplete(text string) (*geojson.FeatureCollection, error)
}

func NewGeocoder

func NewGeocoder(geocoder_type string, baseUrl string) (Geocoder, error)

type PeliasHandler

type PeliasHandler struct {
	BaseURL string
}

func NewPeliasHandler

func NewPeliasHandler(baseUrl string) (PeliasHandler, error)

func (PeliasHandler) Autocomplete

func (h PeliasHandler) Autocomplete(text string) (*geojson.FeatureCollection, error)

Jump to

Keyboard shortcuts

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