Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorporate Socrata Open Data API #15

Closed
CodeWritingCow opened this issue Dec 28, 2017 · 0 comments
Closed

Incorporate Socrata Open Data API #15

CodeWritingCow opened this issue Dec 28, 2017 · 0 comments

Comments

@CodeWritingCow
Copy link
Owner

CodeWritingCow commented Dec 28, 2017

Let's use Socrata functions for querying inspection records by restaurant name or partial search term. The Socrata Open Data API is available for open-government databases maintained by NYC and other governments. Related to Issues #8 and #12

Currently, server.js returns up to 999 records that match query parameters such as borough and zipcode. server.js then filter those results by the name search term.

This process is flawed. The user might be looking for a restaurant that's not among those first 999 records.

The Socrata "like '...'" function solves this problem.

There is a specific endpoint for making queries with Socrata: https://data.cityofnewyork.us/resource/9w7m-hzhe.json

Query strings must be all uppercase. Ex. https://data.cityofnewyork.us/resource/9w7m-hzhe.json?$where=DBA like '%25SUSHI VILLAGE%25'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant