us_reverse_geo

package
v1.19.3 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

type Address struct {
	Street            string `json:"street"`
	City              string `json:"city"`
	StateAbbreviation string `json:"state_abbreviation"`
	ZIPCode           string `json:"zipcode"`
	Source            string `json:"source"`
}

type Client

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

func NewClient

func NewClient(sender sdk.RequestSender) *Client

func (*Client) SendLookup

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

func (*Client) SendLookupWithContext

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

type Coordinate

type Coordinate struct {
	Latitude  float64               `json:"latitude"`
	Longitude float64               `json:"longitude"`
	Accuracy  string                `json:"accuracy"`
	License   sdk.CoordinateLicense `json:"license"`
}

type Lookup

type Lookup struct {
	Latitude  float64
	Longitude float64
	Source    string
	Response  Response
}

Lookup fields defined here: https://smartystreets.com/docs/cloud/us-reverse-geo-api#http-request-input-fields

type Response

type Response struct {
	Results []Result `json:"results"`
}

Response structure defined here: https://smartystreets.com/docs/cloud/us-reverse-geo-api#http-response-output

type Result

type Result struct {
	Coordinate Coordinate `json:"coordinate"`
	Address    Address    `json:"address"`
	Distance   float64    `json:"distance"`
}

Jump to

Keyboard shortcuts

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