Documentation ¶
Overview ¶
package nycgeosearch for calling geosearch.planninglabs.nyc API
Index ¶
- Variables
- type Client
- func (c Client) Autocomplete(ctx context.Context, address string, opt Options) (*geojson.FeatureCollection, error)
- func (c Client) ReverseGeocode(ctx context.Context, l Location, opt Options) (*geojson.FeatureCollection, error)
- func (c Client) Search(ctx context.Context, address string, opt Options) (*geojson.FeatureCollection, error)
- type Location
- type Options
Constants ¶
This section is empty.
Variables ¶
View Source
var PlanningLabs = Client("https://geosearch.planninglabs.nyc")
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client string
Client implements the pelias format against the NYC Planning labs GeoSearch endpoint
https://github.com/pelias/documentation https://geosearch.planninglabs.nyc/docs/
func (Client) Autocomplete ¶
func (c Client) Autocomplete(ctx context.Context, address string, opt Options) (*geojson.FeatureCollection, error)
https://github.com/pelias/documentation/blob/master/autocomplete.md
func (Client) ReverseGeocode ¶
func (c Client) ReverseGeocode(ctx context.Context, l Location, opt Options) (*geojson.FeatureCollection, error)
ReverseGeocode looks up addresses from a Lat/Lng https://github.com/pelias/documentation/blob/master/reverse.md
Click to show internal directories.
Click to hide internal directories.