lib/fireeagle/client.rb
# Takes a Place ID or a Location and returns a list of users of your application who are within the bounding box of that Location.
#
# Location Hash keys, in order of priority:
#
# [<tt>(:lat, :lon)</tt>]                   both required, valid values are floats of -180 to 180 for lat and -90 to 90 for lon
# [<tt>:woeid</tt>]                         Where on Earth ID
# [<tt>:place_id</tt>]                      Place ID
# [<tt>:address</tt>]                       street address (may contain a full address, but will be combined with postal, city, state, and country when available)
# [<tt>(:mnc, :mcc, :lac, :cellid)</tt>]    cell tower information, all required (as integers) for a valid tower location
# [<tt>:postal</tt>]                        a ZIP or postal code (combined with address, city, state, and country when available)
# [<tt>:city</tt>]                          city (combined with address, postal, state, and country when available)
# [<tt>:state</tt>]                         state (combined with address, postal, city, and country when available)
# [<tt>:country</tt>]                       country (combined with address, postal, city, and state when available)
# [<tt>:q</tt>]                             Free-text fallback containing user input. Lat/lon pairs and geometries will be extracted if possible, otherwise this string will be geocoded as-is.
#
# Not yet supported:
#
# * <tt>upcoming_venue_id</tt>
# * <tt>yahoo_local_id</tt>
# * <tt>plazes_id</tt>
Takes a Place ID or a Location and returns a list of users of your application who are within the bounding box of that Location.
Location Hash keys, in order of priority.



Not yet supported.


Takes a Place ID or a Location and returns a list of users of your application who are within the bounding box of that Location . Location Hash keys in order of priority . Not yet supported .
def within(location = {}, count = 10, start = 1)
      raise FireEagle::ArgumentError, "OAuth Access Token Required" unless @access_token
      location = sanitize_location_hash(location)
      params = { :count => count, :start => start }.merge(location)
      response = get(FireEagle::WITHIN_API_PATH, :params => params)
      FireEagle::Response.parse(response.body).users
    end
def within ( location = { } , count = 10 , start = 1 ) raise FireEagle :: ArgumentError , "OAuth Access Token Required" unless @access_token location = sanitize_location_hash ( location ) params = { :count => count , :start => start } . merge ( location ) response = get ( FireEagle :: WITHIN_API_PATH , :params => params ) FireEagle :: Response . parse ( response . body ) . users end
Takes a Place ID or a Location and returns a list of users of your application who are within the bounding box of that Location.
Takes a Place ID or a Location and returns a list of users of your application who are within the bounding box of that Location .
location
<not_specific>
count
<not_specific>
start
<not_specific>