code: def query_search_api(min_lat, max_lat, min_lon, max_lon, max_results):
      '''
      Send query to the search API and get dict with image data.
      '''
  
      # Create URL
      params = urllib.urlencode(zip(
          ['client_id', 'bbox', 'per_page'],
          [CLIENT_ID, ','.join([str(min_lon), str(min_lat), str(
              max_lon), str(max_lat)]), str(max_results)]
      ))
      print(MAPILLARY_API_IM_SEARCH_URL + params)
  
      # Get data from server, then parse JSON
      query = urllib2.urlopen(MAPILLARY_API_IM_SEARCH_URL + params).read()
      query = json.loads(query)['features']
  
      print("Result: {0} images in area.".format(len(query)))
      return querf query_search_api(min_lat, max_lat, min_lon, max_lon, max_results):
      '''
      Send query to the search API and get dict with image data.
      '''
  
      # Create URL
      params = urllib.urlencode(zip(
          ['client_id', 'bbox', 'per_page'],
          [CLIENT_ID, ','.join([str(min_lon), str(min_lat), str(
              max_lon), str(max_lat)]), str(max_results)]
      ))
      print(MAPILLARY_API_IM_SEARCH_URL + params)
  
      # Get data from server, then parse JSON
      query = urllib2.urlopen(MAPILLARY_API_IM_SEARCH_URL + params).read()
      query = json.loads(query)['features']
  
      print("Result: {0} images in area.".format(len(query)))
      return query
docs: Send query to the search API and get dict with image data.