lib/cloudmade/geocoding.rb
def find(query, options = {})
      options['results'] = 10 unless options.has_key? 'results'
      options['skip'] = 0 unless options.has_key? 'skip'
      options['bbox_only'] = true unless options.has_key? 'bbox_only'
      options['return_geometry'] = true unless options.has_key? 'return_geometry'
      request = "/find/#{CGI.escape(query)}.js?#{Service.to_url_params(options)}"
        
      GeoResults.new(JSON.parse(connect request))
    end
def find(query, options = {})
      options['results'] = 10 unless options.has_key? 'results'
      options['skip'] = 0 unless options.has_key? 'skip'
      options['bbox_only'] = true unless options.has_key? 'bbox_only'
      options['return_geometry'] = true unless options.has_key? 'return_geometry'
      request = "/find/#{CGI.escape(query)}.js?#{Service.to_url_params(options)}"
        
      GeoResults.new(JSON.parse(connect request))
    end
def find ( query , options = { } ) options [ 'results' ] = 10 unless options . has_key? 'results' options [ 'skip' ] = 0 unless options . has_key? 'skip' options [ 'bbox_only' ] = true unless options . has_key? 'bbox_only' options [ 'return_geometry' ] = true unless options . has_key? 'return_geometry' request = "/find/#{CGI.escape(query)}.js?#{Service.to_url_params(options)}" GeoResults . new ( JSON . parse ( connect request ) ) end
Find objects that match given query. Returns GeoResults object.

 * +query+ Query by which objects should be searched
 * +options+ Additional options, contains
 results: How many results should be returned.
 skip: Number of results to skip from beginning.
 bbox: Bounding box in which objects should be searched.
 bbox_only: If set to False, results will be searched in the whole world if there are no results for a given bbox.
 return_geometry: If specified, adds geometry in returned results. Defaults to true.
Find objects that match given query . Returns GeoResults object .