Documentation ¶
Index ¶
- Constants
- Variables
- type Base
- func (b *Base) Query(ctx context.Context, api, mode string, v *url.Values, inst interface{}) error
- func (b *Base) QueryBase(ctx context.Context, query string, v *url.Values, inst interface{}) error
- func (b *Base) QueryRequest(ctx context.Context, query string, v *url.Values) (*http.Response, error)
- func (b *Base) SetDebug(debug bool)
- type Geometry
- type GoongApiError
- type Location
- type PlaceDetailResult
- type PlusCode
- type Predictions
- type StructuredFormatting
Constants ¶
View Source
const (
// BaseURL Goong API base URL
BaseURL = "https://rsapi.goong.io"
)
Variables ¶
View Source
var ErrorAPILimitExceeded = errors.New("Goong API error api rate limit exceeded")
ErrorAPILimitExceeded indicates the API limit has been exceeded
ErrorAPIUnauthorized indicates authorization failed
Functions ¶
This section is empty.
Types ¶
type Base ¶
type Base struct {
// contains filtered or unexported fields
}
Base Goong API base
func (*Base) QueryBase ¶
QueryBase Query the Goong API and fill the provided instance with the returned JSON TODO: Rename this
type GoongApiError ¶
type PlaceDetailResult ¶
type Predictions ¶
type Predictions struct { Description string `json:"description"` MatchedSubstrings []interface{} `json:"matched_substrings"` PlaceID string `json:"place_id"` Reference string `json:"reference"` StructuredFormatting StructuredFormatting `json:"structured_formatting"` Terms []interface{} `json:"terms"` HasChildren bool `json:"has_children"` DisplayType string `json:"display_type"` Score float64 `json:"score"` PlusCode PlusCode `json:"plus_code"` Types []string `json:"types"` DistanceMeters *int `json:"distance_meters,omitempty"` }
type StructuredFormatting ¶
Click to show internal directories.
Click to hide internal directories.