An express.js api that combines mapzen search results with carto database results, providing autcomplete search for ZoLa.
You will need the following things properly installed on your computer.
https://github.com/NYCPlanning/labs-zola-search-api.git
yarn
yarn run devstart
/search
- gets results that match a string passed in as query parameter q
Results in will be JSON objects and will be one of the following types:
address
- Mapzen Search geocoder results that matched the input string
lot
- A PLUTO tax lot that matched either on bbl
or address
zma
- A zoning amendment that matched either on ulurpno
or project_na
neighborhood
- Neighborhoods (from NYC Neighborhood Tabulation Areas) that match the input string.
zoningdistrict
- Zoning districts that match the input string.
specialpurposedistrict
- Special Purpose Districts whose name matches the input string
commercialoverlay
- Commercial Overlays that match the input string.
eslint
at the command line with the --fix
flag to automatically fix some errors.Create dokku remote: git remote add dokku dokku@{dokkudomain}:zola-api
Deploy: git push dokku master
You can find us on Twitter at @nycplanninglabs, or comment on issues and we'll follow up as soon as we can. If you'd like to send an email, use labs_dl@planning.nyc.gov