Skip to content

Instantly share code, notes, and snippets.

@kidpollo
Created May 17, 2011 16:19
Show Gist options
  • Save kidpollo/976778 to your computer and use it in GitHub Desktop.
Save kidpollo/976778 to your computer and use it in GitHub Desktop.
# When searching, you need to provide a latitude and longitude
# in the query so that
# these variables are accessible on the server.
Restaurant.search_tank("tasty",
:var0 => 47.689948,
:var1 => -122.363684,
# And we'll return all results sorted by distance
:function => 1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment