foursquare

Foursquare Venue Api: info to generate “8/10 people like this place”

狂风中的少年 提交于 2019-12-02 11:03:01
问题 When looking at FourSquare pages (e.g: Place Vendome, Paris) the text: "9.4/10 People like this place" is shown. I'd like to get to this information through the Foursquare api. I'm guessing it's the calculation: likes/(likes + dislikes) . All fine, but although nr of likes is available nr of dislikes doesn't seem to be. (Looking at the venue Api btw, which seems logical) Am I glancing over something? 回答1: The 9.4/10 rating is computed from an algorithm that includes a variety of signals

Integrating two login system into an app

醉酒当歌 提交于 2019-12-02 10:20:37
I'm trying to integrate both a Facebook and a Foursquare login system into my app. However, I have no idea how to edit the URL type and URL scheme under the myapp.plist . Should I just add a new item under URL scheme or create a new URL type? This is the image for Facebook login. It looks like you're just trying to create a custom URL scheme. To do this, do something like this: Then, all URL requests that are sent to myapp://whatever-url on the device will be directed into your app. You can identify them in the app delegate file of your app using the following method. I'm assuming you're

How do I get more locations?

我怕爱的太早我们不能终老 提交于 2019-12-02 07:16:25
I am trying to get some locations in New York using FourSquare API using the following API call: https://api.foursquare.com/v2/venues/search?ll=40.7,-74&limit=50 What I don't understand is that if the call imposes a limit of 50 search results (which is the maximum), how can I get more locations? When using Facebook API, the results being returned were random so I could issue multiple calls to get more results but FourSquare seems to be returning the same result set. Is there a good way to get more locations? EDIT: Ok. So there was a comment saying that I could be breaking a contractual

Invalid geo coordinates when searching for venues

谁说胖子不能爱 提交于 2019-12-02 04:57:01
when searching for venues (intent "browse", southwest and northeast provided) I receive the following error: Invalid geo coordinates (0.400000,0.000000) What's wrong with these coordinates? I thought latitude is supposed to be in the range -90 to +90 and longitude in the range -180 to +180 ... Any help is appreciated! Thanks, Carl This is intended behavior. The vast majority of cases where people send us 0.00 as a lat/long coordinate, it's because of some programming error/mistake, with an uninitialized variable, for example. So, we return an error, so it's easier to find the mistake, rather

Foursquare Venue Api: info to generate “8/10 people like this place”

不羁岁月 提交于 2019-12-02 04:34:20
When looking at FourSquare pages (e.g: Place Vendome, Paris ) the text: "9.4/10 People like this place" is shown. I'd like to get to this information through the Foursquare api. I'm guessing it's the calculation: likes/(likes + dislikes) . All fine, but although nr of likes is available nr of dislikes doesn't seem to be. (Looking at the venue Api btw, which seems logical) Am I glancing over something? The 9.4/10 rating is computed from an algorithm that includes a variety of signals beyond likes/dislikes. You can use the venues/detail endpoint to get the numerical value of the rating. 来源:

How to parse JSON response (different object types) with GSON

和自甴很熟 提交于 2019-12-02 02:23:07
Problem: parse the following response from Foursquare Venues API: { meta: { code: 200 } notifications: [ { type: "notificationTray" item: { unreadCount: 0 } } ] response: { venues: [ { id: "5374fa22498e33ddadb073b3" name: "venue 1" }, { id: "5374fa22498e33ddadb073b4" name: "venue 2" } ], neighborhoods: [ ], confident: true } } The GSON documentation website recommends using GSON's parse API to parse the response as a JSONArray and then read each array item into an appropriate Object or data type (Example here ). As such, I originally switched to the following implementation: JsonParser parser

How to parse JSON response (different object types) with GSON

a 夏天 提交于 2019-12-02 02:01:09
问题 Problem: parse the following response from Foursquare Venues API: { meta: { code: 200 } notifications: [ { type: "notificationTray" item: { unreadCount: 0 } } ] response: { venues: [ { id: "5374fa22498e33ddadb073b3" name: "venue 1" }, { id: "5374fa22498e33ddadb073b4" name: "venue 2" } ], neighborhoods: [ ], confident: true } } The GSON documentation website recommends using GSON's parse API to parse the response as a JSONArray and then read each array item into an appropriate Object or data

Scrollview like foursquare with maps + list

让人想犯罪 __ 提交于 2019-12-01 20:31:23
I'm trying to understand how can I achieve a scrollview like Foursquare app uses. The map y position follows the revenue list when scrolling. UIScrollview with the map + a list of revenues as UIViews or UITableView using the map as HeaderSection and revenues as UITableViewCell (I tried that, but the map reloads after scrolling table) or Separating Map from UITableview and syncing map position with table list? This looks very interesting. Create Parallax effect between UITableView & UIMapView like FourSquare. I hope it will be useful ;) https://github.com/stefanlage/SLParallaxController My 2

how foursquare determine a user location?

久未见 提交于 2019-12-01 14:29:35
I just use foursquare first time, looks it find my location and shows on the map very correct. I am using desktop at home, just curious, how does it know my address? Thanks. It uses HTML5's Geolocation API to determine a user's location It uses the GPS from your phone and updates your position on that. For an exact businesses you are at, you "Check-In" to a business through the app. 来源: https://stackoverflow.com/questions/9899694/how-foursquare-determine-a-user-location

How do I receive a JSON file using AJAX and parse it using javascript?

懵懂的女人 提交于 2019-12-01 01:49:49
I'm trying to parse this very long and complicated JSON that foursquare gives me. This is my AJAX request: $.ajax({ url: 'https://api.foursquare.com/v2/venues/explore', dataType: 'json', data: 'limit=7&ll='+latitude+','+longitude+'&client_id='+client_id+'&client_secret='+client_secret+'', async: false, success: getVenues(data) }); getVenues is a function I'm making to sort through the JSON and display relevant stuff on the page. The first problem I'm having is that I don't know how to tell the success function that it should deal with the data received from the server - is this data stored in