Mohd Shahid
Mohd Shahid

Reputation: 1606

About Graph API of Facebook Places

i can not see good documentation about Facebook Places, please tell me if you know something about it.

https://graph.facebook.com/search?q=coffee&type=place&center=37.76,122.427&distance=1000

1) In above url what is the unit of distance? (Meter, KM, Miles or something else?)

2) What is the actual meaning of distance.. is it search result comes within this range or it starts search within this range and goes beyond for more results?

3) How can we restrict search result to any specific city or country?

4) What we can do more with this API?

Upvotes: 4

Views: 5506

Answers (1)

user288926
user288926

Reputation:

  1. According to https://developers.facebook.com/docs/android/scrumptious/show-nearby-places/ the unit of distance is meters.
  2. The search excludes results outside of a circle with the radius of your specific distance.
  3. Use the location field of the places returned by your search to filter out any unwanted places. For example, if you had these results, you could use the city filter to include only Brooklyn (or New York).

[{ "name": "Bembe", "location": { "street": "81 S 6th St.", "city": "Brooklyn", "state": "NY", "country": "United States", "zip": "11222", "latitude": 40.710978587859, "longitude": -73.965404723282 }, "id": "146207358735488" }, { "name": "Manhattan Bridge Orthodontics", "location": { "street": "145 Canal St, 2nd Floor", "city": "New York", "state": "NY", "country": "United States", "zip": "10002-5033", "latitude": 40.709716414644, "longitude": -73.988593034059 }, "id": "121071754616533" }]

4.Limited only by your imagination.

Upvotes: 7

Related Questions