international_autocomplete_api

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: May 26, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Candidate added in v1.13.2

type Candidate struct {
	Street             string `json:"street"`
	Locality           string `json:"locality"`
	AdministrativeArea string `json:"administrative_area"`
	PostalCode         string `json:"postal_code"`
	CountryIso3        string `json:"country_iso3"`
}

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(sender sdk.RequestSender) *Client

NewClient creates a client with the provided sender.

func (*Client) SendLookup

func (c *Client) SendLookup(lookup *Lookup) error

func (*Client) SendLookupWithContext

func (c *Client) SendLookupWithContext(ctx context.Context, lookup *Lookup) error

type Lookup

type Lookup struct {
	Country            string
	Search             string
	AdministrativeArea string
	Locality           string
	PostalCode         string
	Result             *Result
}

type Result added in v1.13.2

type Result struct {
	Candidates []*Candidate `json:"candidates"`
}

Jump to

Keyboard shortcuts

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