Coder Social home page Coder Social logo

Comments (8)

mittonk avatar mittonk commented on June 30, 2024

@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.

andrewmarmion avatar andrewmarmion commented on June 30, 2024

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.

mittonk avatar mittonk commented on June 30, 2024

OK, I see:

Yeah, that's not close. Poking.

from yelp-api.

mittonk avatar mittonk commented on June 30, 2024

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.

andrewmarmion avatar andrewmarmion commented on June 30, 2024

@mittonk Thanks for looking into this.

from yelp-api.

andrewmarmion avatar andrewmarmion commented on June 30, 2024

@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.

mittonk avatar mittonk commented on June 30, 2024

@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.

watterso avatar watterso commented on June 30, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.