Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Foursquare Search API with fallback #1

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

acafourek
Copy link

Switched to using the search API - in my testing, the results were significantly more accurate than the suggestCompletion API. Also allows for some improvements for local accuracy - as the user types, it initially searches within 50 miles but if no results are found, it does a global check to find matches. Also added some markup around the results list to add venue data to links.

Some of this might be specific to the app I'm integrating it with but I thought the improvements might useful to others as well. Thanks a ton for the core.

Andrew Cafourek added 3 commits August 23, 2013 14:26
Changed API from suggestCompletion to Search and added required
parameters as well as HTML markup around results list.
- Added fallback search so if no local results are found, the intent is
switched to global and all of foursquare is searched.
- Commented out some debug lines.
- Changed result list to contain data attributes for venue data.
And other logic/output improvements
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant