Skip to content

denis-pingin/swarm-enhancer

Repository files navigation

Swarm Enhancer

This Android application will periodically check your current location and automatically check you in to the closest Foursquare venue.

Parameters

Update interval

Update interval parameter controls how often the app will check whether your current location changed significantly relative to the most recent checked-in venue in foursquare.

If a user moves within the local radius from the_ most recent checed-in venue_, this check is very cheap, since the location of the most recent checked-in venue is cached in the application and no foursquare API requests are required.

Only if the user has moved away from the cached most recent checked-in venue location for more than the local radius parameter, the app searches for a new venue through the foursquare API and also retrieves user's most recent checked-in venue. It then checks whether the distance between the new venue and the most recent checked-in venue is larger that the local radius to determine whether a new check-in should be created.

Default value: 4 hours

Local radius

local radius parameter is used to determine whether a new check-in should be performed. This parameter is used to calculate:

  • a distance between user's current location and the most recent checked-in venue in foursquare.
  • a distance between the most recent checked-in venue and the new venue, which is the first one in foursquare search results. In both cases the distance must be greater than the local radius parameter for the new check-in to happen. Parameter unit is km.

Default value: 5 km