lib/fireeagle/client.rb
# Disambiguates potential values for update query. Results from lookup can be passed to
# update to ensure that FireEagle will understand how to parse the Location Hash.
#
# All three Location methods (lookup, update, and within) accept a Location Hash.
#
# There is a specific order for looking up locations. For example, if you provide lat, lon, and address,
# FireEagle will use the the latitude and longitude geo-coordinates and ignore the address.
#
# 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 (via Flickr/Upcomoing); deprecated in favor of WOE IDs when possible
# [<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>
Disambiguates potential values for update query. Results from lookup can be passed to
update to ensure that FireEagle will understand how to parse the Location Hash.

All three Location methods (lookup, update, and within) accept a Location Hash.

There is a specific order for looking up locations. For example, if you provide lat, lon, and address,
FireEagle will use the the latitude and longitude geo-coordinates and ignore the address.

Location Hash keys, in order of priority.



Not yet supported.


Disambiguates potential values for update query . Results from lookup can be passed to update to ensure that FireEagle will understand how to parse the Location Hash . All three Location methods ( lookup update and within ) accept a Location Hash . There is a specific order for looking up locations . For example if you provide lat lon and address FireEagle will use the the latitude and longitude geo - coordinates and ignore the address . Location Hash keys in order of priority . Not yet supported .
def lookup(params)
      raise FireEagle::ArgumentError, "OAuth Access Token Required" unless @access_token
      response = get(FireEagle::LOOKUP_API_PATH, :params => params)
      FireEagle::Response.parse(response.body).locations
    end
def lookup ( params ) raise FireEagle :: ArgumentError , "OAuth Access Token Required" unless @access_token response = get ( FireEagle :: LOOKUP_API_PATH , :params => params ) FireEagle :: Response . parse ( response . body ) . locations end
Disambiguates potential values for update query.
Disambiguates potential values for update query .
params
<not_specific>