Documentation ¶
Index ¶
Constants ¶
View Source
const (
// BaseURL Mapbox API base URL
BaseURL = "https://api.mapbox.com"
)
Variables ¶
View Source
var ErrorAPILimitExceeded = errors.New("Mapbox 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 Mapbox API base
func (*Base) QueryBase ¶
QueryBase Query the mapbox API and fill the provided instance with the returned JSON TODO: Rename this
func (*Base) QueryRequest ¶
QueryRequest make a get with the provided query string and return the response if successful
type BoundingBox ¶
type BoundingBox []float64
type Feature ¶
type Feature struct { ID string `json:"id"` Type string `json:"type"` Text string `json:"text"` PlaceName string `json:"place_name"` PlaceType []string `json:"place_type"` Relevance float64 `json:"relevance"` Properties Properties `json:"properties"` BBox BoundingBox `json:"bbox"` Center Point `json:"center"` Geometry Geometry `json:"geometry"` Context []Context `json:"context"` }
type FeatureCollection ¶
type MapboxApiMessage ¶
type MapboxApiMessage struct {
Message string
}
Click to show internal directories.
Click to hide internal directories.