nycgeosearch

package module
v0.0.0-...-7ae1ff9 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2023 License: MIT Imports: 7 Imported by: 1

README

Go Reference

Go client for interacting with NYC Planning Labs GeoSearch

Documentation

Overview

package nycgeosearch for calling geosearch.planninglabs.nyc API

Index

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) 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

type Location

type Location struct {
	Lat, Lng float64
}

type Options

type Options struct {
	Size int // defaults to 10
}

Jump to

Keyboard shortcuts

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