lib/lieu/client/search.rb
def radar_search(options={})
        options[:location] = format_location(options[:location])
        options[:types] = format_types(options[:types]) if options[:types]

        get('radarsearch', options).results
      end
# Radar search places within an area.
# @param options [Hash] a customizable set of options
# @option options [Hash] :location the location to find around
#   * :lat (String) the latitude to find around
#   * :lng (String) the longitude to find around
# @option options [String] :radius the distance (in meters) to search in
# @option options [String] :keyword a term to be matched against all content for this place
# @option options [String] :name a term to be matched against the names of places
# @option options [Array<String>] :types types to restrict the results to
# @return [Array<Hashie::Mash>] a list of places minimal details
# @see https://developers.google.com/places/documentation/search#RadarSearchRequests
# @example
#   Lieu.radar_search(location: {
#       lat: '0.00',
#       lng: '0.00'
#     },
#     radius: '500',
#     keyword: 'Pizza',
#     name: 'Express'
#   )
Radar search places within an area.
Radar search places within an area .
def radar_search(options={})
        options[:location] = format_location(options[:location])
        options[:types] = format_types(options[:types]) if options[:types]
        get('radarsearch', options).results
      end
def radar_search ( options = { } ) options [ :location ] = format_location ( options [ :location ] ) options [ :types ] = format_types ( options [ :types ] ) if options [ :types ] get ( 'radarsearch' , options ) . results end
Radar search places within an area.
Radar search places within an area .
a list of places minimal details
a list of places minimal details
Array<Hashie::Mash>
options
:types types to restrict the results to
: types types to restrict the results to
see
None
example
None