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

Geo API Query Problems #35

Open
ErikaNewland opened this issue Sep 27, 2017 · 3 comments
Open

Geo API Query Problems #35

ErikaNewland opened this issue Sep 27, 2017 · 3 comments

Comments

@ErikaNewland
Copy link

I'm having some issues querying the Geo API and am wondering if someone can provide me an example or let me know what I am doing incorrectly. I would like to query articles originating from a specific distance from lat/long location OR query a bounding box.

If I enter the query URI in the browser bar, as such: http://api.nytimes.com/svc/semantic/v2/geocodes/query.json?nearby=38.920833,-94.622222&api-key=MY_KEY, I get:

{
"status": "ERROR",
"copyright": "Copyright (c) 2015 The New York Times Company. All Rights Reserved.",
"errors": ["global name \u0027lat\u0027 is not defined"],
"results": []
}

If I use the API Builder, I get the following, regardless of whether I provide a filter.
{
"status": "ERROR",
"copyright": "Copyright (c) 2015 The New York Times Company. All Rights Reserved.",
"errors": [
"Specify at least one filter"
],
"results": []
}

Thanks for any help you can provide!

@Shalabh30
Copy link

Shalabh30 commented Jan 25, 2018

Hello Erika,

Did you figured out how to fix this?

I am also getting similar error when using same API.

{
"status": "ERROR",
"copyright": "Copyright (c) 2015 The New York Times Company. All Rights Reserved.",
"errors": ["global name \u0027lat\u0027 is not defined"],
"results": []
}

@ErikaNewland
Copy link
Author

I'm sorry, I did not! Good luck!

@Shalabh30
Copy link

Thanks for replying :)

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

2 participants