0

I've been using FourSquare's Swarm app to track my travels. I'd like to be able to plot the check-in locations on a Google Maps service (or any other web-based service outside of the Swarm App). I've had limited success so far (markers for only a handful of recent check-ins appear) using the Google Maps Javascript API and Foursquare's API.

There are several thousand check-ins over the last 6 years or so.

Is this possible, or does it exceed API usage limits?

1 Answer 1

0

I figured out that the Foursquare API has a default limit, which displays the last 25 check-ins. In order to display more than 25 on the map, the Foursquare API request needs to include a limit parameter (which has a limit of 250).

You can update the url variable in the code to include &limit=250 at the end.

If you need to display more than 250 check-ins, you will need to make multiple API requests and combine the results.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.