Geoclient API

Category:


5
Average: 5 (3 votes)

Review Feedback

Comments (16)

Feedback: 
To whom has authentication issues, that's because you need your own app_id and app_key. What you need to do is 1. register here https://developer.cityofnewyork.us/ 2. create a new project for your apps, 3. check Geoclient API 4. Then your own id and key will be generated.

Feedback: 
The documentation here is no good - It's unclear how to structure requests. Please include examples of full requests, not just the endpoint. Example request I had to figure out on my own: https://api.cityofnewyork.us/geoclient/v1/address.json?houseNumber=314&street=west 100 st&borough=manhattan&app_id=abc123&app_key=def456 It's also unclear how to get an app_id or app_key. This may exist elsewhere in the documentation, if it doesn't please add it. If it does exist, you should reference how to request this information. Please fix this. Below is an example of good documentation: https://github.com/talos/nyc-geoclient

Feedback: 
I am trying to do a simple get request from a java code and I am getting this error "Exception in thread "main" java.net.ConnectException: Connection refused: connect". I have created an app_key and app_id couple of days back and using them. Can you please let me know if it is due to the app_key and app_id not authorized or should I have to do any other validations? The url I am using is "http://api.cityofnewyork.us/geoclient/v1/address.json?" Thanks.

Feedback: 
I have identified the cause. The url is https instead of http. Thanks, Rohit

Feedback: 
Dear nyc Geoclient! My webapp is heavily relayed on your api. Could you please let me know when is your server would be up and services would be available. I really need them! Thank you very much, Julia Marina

Enhancements (0)

Issues (6)

Feedback: 
This API endpoint and probably all of the api.cityofnewyork.us endpoints do not seem to support CORS. This means you cannot use these API's directly from the browser. See curl -v 'https://api.cityofnewyork.us/geoclient/v1/address.json?houseNumber=1&street=flatbush+ave&borough=brooklyn&app_id=APP-HERE&app_key=KEY-HERE' we need the server to add the 'Access-Control-Allow-Origin' header. please set it to * See https://en.wikipedia.org/wiki/Cross-origin_resource_sharing The exact header to add is: Access-Control-Allow-Origin: * Thanks.

Feedback: 
Hi, I am using Geoclient api for my school project. But suddenly the API has stopped responding. Getting 503 error. Today I have a demo for my final exam, and it's really important to me. Please let me know when your server/service would be up. Thanks

Feedback: 
I'm experiencing same issue as davidm49090 -- authentication failed 403's despite having created an account & project with Geoclient access yesterday.

Feedback: 
I keep trying the test feeds with my project key and get "authentication failed" each time--both in the sandbox and when using the REST URL.

Feedback: 
Geocode of latitude and longitude are wrong. Use address is 111, Mercer Street, Manhattan, get the response is: "latitude":-73.99927845166361 "longitude":40.723831835389305

Questions (3)

Feedback: 
I created an account and project yesterday, and am having the same issue -- receiving a 403. Is it necessary to reach out to activate projects for this service on a case-by-case basis? Is there always some lag time?

Feedback: 
When I submit a request here: https://dev-mgmt.cityofnewyork.us/docs/geoclient/v1 such as "curl -v -X GET "https://api.cityofnewyork.us/geoclient/v1/address.json?houseNumber=1110&street=Sheridan+Ave&borough=Bronx&app_id=abc123&app_key=def456" (but with my app id and key) I get code 403, authentication failed. Why?

Feedback: 
Are you still receiving the 403? It's possible that your account wasn't activated yet when you were trying to call the service.

Login or Register to post feedback.

© 2017 The City of New York