maps.nyc.gov

Class: Geoclient

nyc.Geoclient

new Geoclient(url, projectionopt)

A class for geocoding using the New York City Geoclient API
Parameters:
Name Type Attributes Default Description
url string The URL for accessing the Geoclient API
projection string <optional>
EPSG:3857 The EPSG code of the projection for output geometries (i.e. EPSG:2263)
Implements:
Source:
See:

Members

projection :string

The epsg code
Type:
  • string
Source:

Methods

accuracyDistance(accuracy) → {number}

Get a distance for an accuracy enumerator based on the projections
Parameters:
Name Type Description
accuracy nyc.Geocoder.Accuracy
Implements:
Source:
Returns:
Type
number
Geocode an input string representing a location
Parameters:
Name Type Description
input string The value to geocode
Implements:
Source: