How can I prevent foreign objects from appearing in the FB Places graphical call?

I am ashamed to search for objects without any real link in my facebook graph calls. Say I'm calling places at a point in Denmark in Europe. In addition to the list of results, I may risk getting items from Singapore, Korea, Austin and other completely free positions. But according to the FB result, the coordinates are the same.

Take this call, for example:

Call FBGraph, Center: 55.676127,12.581892 (Copenhagen, Denmark), Distance: 1000m

Here are some expected results:

{ "name": "Fortunen Bar & Spiseri", "location": { "street": "Ved Stranden 18", "city": "K\u00f8benhavn", "country": "Denmark", "zip": "1061", "latitude": 55.677747326448, "longitude": 12.5802503332 }, "category": "Local business", "id": "454633487897742" }, 

And disparagingly, the result that confuses me is the kernel:

  { "name": "CampusFrance Hong Kong", "location": { "street": "25/F, Tower II, Admirality Centre,18, Harcourt Road, Central, ", "city": "Hong Kong", "country": "Hong Kong", "latitude": 55.67758, "longitude": 12.58226 }, "category": "Government organization", "id": "206130582769483" }, 

I know that I can filter them out with some name matching in the country of location, but when people are close to the borders, it will ruin my result, and also, if I ask for 20 points, I risk being at 19 or 18, but there is still the following possible page...

Does anyone know a flag or something that can be avoided to avoid this?

+4
source share
1 answer

As Donn Lee mentions, it was an individual failure. We are not sure why Facebook believes this post is in Denmark, but it is clear that it does not belong there.

0
source

Source: https://habr.com/ru/post/1441827/


All Articles