FourSquare API for iphone
Asked Answered
R

3

1

As I need to integrate the foursquare in my application, I have found the API and also integrate in my application. But there is some problem.

I want to show the nearest venue around me. As there is also method 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 are the parameter need to pass for search venue which are in area of 5 KM. Can any one help me to solve this problem.

Thanks in advance,

kunal patel.

Rehash answered 7/4, 2011 at 10:4 Comment(0)
P
2

Andreas has made a good example iphone project that hosted on github I tried it and it's working very well take a look at https://github.com/anka/bw_examples/tree/master/FoursquareIntegration

Good luck

Pegmatite answered 22/4, 2011 at 13:58 Comment(0)
D
2

accuracyLL - this stands for accuracy Latitude Longitude.

Your foursquare library you'll see it's a wrapper for the foursquare API documented here: https://developer.foursquare.com/docs/venues/search.html

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

Directorate answered 10/4, 2011 at 3:12 Comment(0)
P
2

Andreas has made a good example iphone project that hosted on github I tried it and it's working very well take a look at https://github.com/anka/bw_examples/tree/master/FoursquareIntegration

Good luck

Pegmatite answered 22/4, 2011 at 13:58 Comment(0)
T
0

If you use oauth login method that would become more easy, You have to login through oauth 2.0 then using access token you can get any user details. I have found a very nice tutorial related to oauth, I hope this would help you

Tallowy answered 17/12, 2014 at 21:2 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.