BetaNYC/SLAM

Listing of noisy locations

noneck opened this issue · 6 comments

Map view is nice. As a community board member / district staff member, I would like to see the top 10 addresses with noise complaints and have that linked to the map to track down liquor license establishment or sidewalk cafe permit

Can I contribute to this issue?

After registering for Geoclient the API keys I get are called Primary key and Secondary key. Where can I find keys for GEOCLIENT_ID and GEOCLIENT_KEY ?

zhik commented

Hey @bicycleben88, you can register for a key/app for geoclient https://developer.cityofnewyork.us/user/login?destination=/user/register.

Thanks for trying to contribute.

zhik commented

I am not sure how you want to implement it, but I think it can be a slide panel with some charting/viz library that queries cartodb.

Note: that big queries might be cut off.

The Geoclient API is moving to here: https://api-portal.nyc.gov/

Instead of sending the API keys as query params, a new key, SUBSCRIPTION_KEY, is sent as a header; and the API endpoint is some type of user input. I'm trying to test this API, but I can't find out what the user input should look like. Is it an address or a set of coordinates, etc?

Here are the docs for Geoclient v1: https://api.cityofnewyork.us/geoclient/v1/doc. It lists the endpoints as a series of query parameters(e.g. ?houseNumber=180&steetName=grand st). With the new API address, I've tried to use query params written in a similar way, following the guidelines outlined in the docs for v1. I'm getting a 404 error each time.

What are the endpoints I should be testing? Where are the docs for v2?

zhik commented

Hey, Sorry I am not very responsive on Github.

Email me at zhi@beta.nyc , let's find a time to talk if you still want to help out on this project ❤️ .