FourSquare API for iphone

Since I need to integrate four squares in my application, I found the API and also integrate into my application. But there are some problems.

I want to show the nearest place around me. Since there is also a way to show the venue

+(void)searchVenuesNearByLatitude:(NSString*)lat longitude:(NSString*)lon accuracyLL:(NSString*)accuracyLL altitude:(NSString*)altitude accuracyAlt:(NSString*)accuracyAlt query:(NSString*)query limit:(NSString*)limit intent:(NSString*)intent callback:(Foursquare2Callback)callback; 

But the problem is what parameter should go for the search place, which are in the area of ​​5 km. Can anyone help me solve this problem.

Thanks in advance,

kunal.

+1
source share
3 answers

Andreas made a good example of an iphone project that was hosted on github. I tried it and it works great by looking at https://github.com/anka/bw_examples/tree/master/FoursquareIntegration

Good luck.

+2
source

precisionLL - this means the accuracy of the latitude longitude.

In your quadruple library, you will see this shell for the Foursquare document described here: https://developer.foursquare.com/docs/venues/search.html

llAcc - location accuracy in meters. For 5Km you would use 5000.

+2
source

If you use the oauth login method, which will become simpler, you need to log in through oauth 2.0, and then use the access token to get any user data. I found a very good oauth related tutorial, hope this helps you

0
source

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


All Articles