Is there a way to filter closed and duplicate locations?

  • Question
  • Updated 1 year ago
I am trying to use Factual APIs for my app. I am querying for restaurants but I get lot of duplicate results as well as results of businesses that are CLOSED or MOVED. Example: 5 out of first 10 results are for closed businesses for query below.
Also what is the best way to get restaurants around given location? below query doesn't give all locations around me.

"/t/places?KEY=YOUR_KEY&filters={"category_ids":{"$includes":347}}&geo={"$circle":{"$center":[47.613252,-122.349110],"$meters": 5000}}"
Photo of Jeff Jeff

Jeff Jeff

  • 1 Post
  • 0 Reply Likes

Posted 2 years ago

  • 2
Photo of Bradley

Bradley, Sr. Product Manager

  • 729 Posts
  • 63 Reply Likes
Hi Jeff-

Closed businesses aren't generally supposed to appear in our data, but periodically may persist for a delayed period before we get a good signal that they are closed. We're making a couple changes in the next release to help speed that up:

1. We currently have a concept called Place Rank that enables sorting places by relative popularity. When applied to the API, this can generally cut down dupes, as a number of duplicates of places occur when there is too little data in one of the records to originally have folded the two places together. The place with very little data is likely to also have a low Place Rank.

2. We're introducing an Existence metric for filtering out place with poor verification.

3. We're updating our machine learning algorithms to better understand open/closed signals.

In our next build, you'll see Place Rank and Existence used as default sorts for data (blended in with distance, in queries like your example). While Existence sorting isn't in the current build, you can actually test a Place Rank sorted version of your example query by switching to the US only place data right now:

/t/places-us?filters={"category_ids":{"$includes":347}}&geo={"$circle":{"$center":[47.613252,-122.349110],"$meters": 5000}}

Bradley
Photo of NeyN

Ney

  • 7 Posts
  • 0 Reply Likes
Hi Bradley,

In our search results, we have the same concern as was laid out in this thread. Need to get rid of the closed/duplicate restaurants! Is the Existence metric available now? Or is Place Rank still the only available option to get better results? Is there any other solution?