Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { GeoNames *GeoNamesService // contains filtered or unexported fields }
Client provides access to the GNIS database
type GeoNamesService ¶
type GeoNamesService service
GeoNamesService used to query geonames
func (*GeoNamesService) Query ¶
func (s *GeoNamesService) Query(ctx context.Context, state string) ([]*GeographicName, error)
Query GNIS for geonames
type GeographicName ¶
type GeographicName struct { ID string `json:"id,omitempty"` Name string `json:"name,omitempty"` Source string `json:"source,omitempty"` Class string `json:"class,omitempty"` Locale string `json:"locale,omitempty"` Point *geom.Point `json:"point,omitempty"` }
GeographicName information about the official name for places, features, and areas
func (*GeographicName) MarshalJSON ¶
func (g *GeographicName) MarshalJSON() ([]byte, error)
type Option ¶
Option provides a configuration mechanism for a Client
func WithHTTPClient ¶
WithHTTPClient sets the underlying http client.
func WithHTTPTracing ¶
WithHTTPTracing enables tracing http calls.
func WithTransport ¶
func WithTransport(t http.RoundTripper) Option
WithTransport sets the underlying http client transport.
Click to show internal directories.
Click to hide internal directories.