Documentation ¶
Index ¶
- Constants
- Variables
- type EndpointBuilder
- type Provider
- func (g *Provider) Geocode(address string, cfg geocoding.GeocodeConfig) ([]*geocoding.Location, error)
- func (g *Provider) GeocodeWithContext(ctx context.Context, address string, cfg geocoding.GeocodeConfig) ([]*geocoding.Location, error)
- func (g *Provider) ReverseGeocode(loc geocoding.Location, cfg geocoding.ReverseGeocodeConfig) ([]*geocoding.Address, error)
- func (g *Provider) ReverseGeocodeWithContext(ctx context.Context, loc geocoding.Location, ...) ([]*geocoding.Address, error)
- type ResponseParser
- type ResponseParserFactory
Constants ¶
View Source
const DefaultTimeout = time.Second * 10
Variables ¶
View Source
var ErrTimeout = errors.New("timeout")
Functions ¶
This section is empty.
Types ¶
type EndpointBuilder ¶
type EndpointBuilder interface { GeocodeURL(address string, cfg geocoding.GeocodeConfig) string ReverseGeocodeURL(loc geocoding.Location, cfg geocoding.ReverseGeocodeConfig) string }
type Provider ¶
type Provider struct { EndpointBuilder EndpointBuilder ResponseParserFactory ResponseParserFactory }
func (*Provider) GeocodeWithContext ¶
func (*Provider) ReverseGeocode ¶
type ResponseParser ¶
type ResponseParserFactory ¶
type ResponseParserFactory func() ResponseParser
Click to show internal directories.
Click to hide internal directories.