A nodejs adapter to access NYC 311 SRs from Socrata, using the Open311 GeoReport v2 API.
-
Clone this repository
-
Install the latest version of nodejs
-
Install the dependencies
npm install
-
Launch the API server. (You may need to sudo if your login doesn't have permission to set up a network listener.)
node server.js sudo node server.js
-
Make queries to the server (by default it listens on port 3000)
curl -v localhost:3000/discovery.xml curl -v localhost:3000/requests/25454885.json curl -v localhost:3000/requests/25452652.xml curl -v localhost:3000/requests.json?service_request_id=25452652,25454885
-
See the open311 georeport v2 documentation.
-
Add your code into the lib folder
-
Send a pull request.
- Does not handle placename locations correctly yet