Comments (8)
@andrewmarmion : I sometimes see this when combining distance and category filters, or similar.
What's your actual query, and what results are you receiving (both in and outside the radius)? That'll help debug the issue.
from yelp-api.
https://api.yelp.com/v2/search/?ll=39.3726427,-76.6491456&radius_filter=1000&category_filter=bars
It gives 3 results, the last one is well outside the radius.
from yelp-api.
OK, I see:
- http://www.yelp.com/biz/the-nickel-taphouse-baltimore : 684.893163987737
- http://www.yelp.com/biz/mt-washington-tavern-baltimore-2 : 634.8338865971878
- http://www.yelp.com/biz/m-v-bay-breeze-chesapeake-city : 73818.47505576596
Yeah, that's not close. Poking.
from yelp-api.
Ah! http://www.yelp.com/biz/m-v-bay-breeze-chesapeake-city has a "service area" polygon that covers the search area --- it's a boat, a "traveling floating bar" for the purpose of this search. You can see the polygon on the map at that URL.
The dock (central location) is 73km away.
Well, that's the problem. Now to see what to do about it...
from yelp-api.
@mittonk Thanks for looking into this.
from yelp-api.
@mittonk Just to let you know, I was able to resolve the issue by coding a check of the distance when I add the data to my struct.
from yelp-api.
@andrewmarmion : That sounds like excellent post-processing for your application. That won't work for every use case, which why we haven't done that in general.
from yelp-api.
TL;DR: Search picked this up based on the service area of this business. I'm calling this as desired behavior. To address this issue api-users should filter results by distance (a field returned in each search result) if they don't want businesses that are returned because of service area.
from yelp-api.
Related Issues (20)
- I am getting only 14 businesses at a time instead of 20 in business api HOT 1
- Ajax request error - React App HOT 2
- radius_filter 400 bad request HOT 1
- Invalid Parameters HOT 4
- Invalid Parameter HOT 1
- Yelp API returns a missing parameter error HOT 2
- TOKEN_MISSING HOT 8
- Example of /businesses/{id} for php HOT 4
- No total number in JSON result HOT 2
- How setup search by zip code HOT 1
- Yelp blocked me from using their API HOT 8
- fetch more then 1000 record HOT 1
- No returns with integrated yelp search HOT 6
- Validation Error HOT 3
- Posting responses to reviews using the Yelp API HOT 1
- how to intigrate the yelp api
- how to integrate the yelp-fusion API HOT 6
- how to make searchable for yelp API HOT 2
- TOKEN_MISSING HOT 3
- Yelp Fusion API PHP code sample not working after change to use API key instead of tokens
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yelp-api.