new Geoclient(options)
A class for geocoding using the New York City Geoclient API
Parameters:
| Name | Type | Description |
|---|---|---|
options |
module:nyc/Geoclient~Geoclient.Options | Constructor options |
Fires:
- module:nyc/Locator~Locator#event:geocode
- module:nyc/Locator~Locator#event:geolocate
- module:nyc/Locator~Locator#event:ambiguous
- module:nyc/Locator~Locator#event:error
Extends
Members
-
projection :string
-
The epsg code
Type:
- string
- Source:
Methods
-
search(input)
-
Search for a location
Parameters:
Name Type Description inputstring - Inherited From:
- Overrides:
- Source:
Type Definitions
-
Options
-
Constructor options for module:nyc/Geoclient~Geoclient
Type:
- Object
- Source:
Properties:
Name Type Argument Default Description urlstring The URL for accessing the Geoclient API https://developer.cityofnewyork.us/api/geoclient-api
projectionstring <optional>
EPSG:3857 The EPSG code of the projection for output geometries (i.e. EPSG:2263)