Skip to content

Instantly share code, notes, and snippets.

@0xRoch
Created November 5, 2011 12:50
Show Gist options
  • Save 0xRoch/1341471 to your computer and use it in GitHub Desktop.
Save 0xRoch/1341471 to your computer and use it in GitHub Desktop.
public static List<User> findByLocation(Long South_Lat, Long South_Lng, Long North_Lat, Long North_Lng) {
List<User> users = all().filter("latitude<", South_Lat).filter("latitude>", North_Lat).filter("latitude>", North_Lat).filter("longitude>", North_Lng).fetch();
return users;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment