lib/lieu/client/search.rb
# 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
# @return [Array<Hashie::Mash>] a list of places details
# @see https://developers.google.com/places/documentation/search#PlaceSearchRequests
# @example
#   Lieu.nearby_search(location: {
#       lat: '0.00',
#       lng: '0.00'
#     },
#     radius: '500'
#   )
Search places within an area.
Search places within an area .
def nearby_search(options={})
        options[:location] = format_location(options[:location])
        get('nearbysearch', options).results
      end
def nearby_search ( options = { } ) options [ :location ] = format_location ( options [ :location ] ) get ( 'nearbysearch' , options ) . results end
Search places within an area.
Search places within an area .
a list of places details
a list of places details
Array<Hashie::Mash>
options
:radius the distance (in meters) to search in
: radius the distance ( in meters ) to search in
see
None
example
None