def find_location(location):
 params = {'address': location, 'key': dev_key}
 if bias:
  params['region'] = bias
 json = requests.get(geocode_api, params=params).json()
 error = check_status(json['status'])
 if error:
  raise APIError(error)
 return json['results'][0]['geometry']['location']

def find_location ( location ) : params = { 'address' : location , 'key' : dev_key } if bias : params [ 'region' ] = bias json = requests . get ( geocode_api , params = params ) . json ( ) error = check_status ( json [ 'status' ] ) if error : raise APIError ( error ) return json [ 'results' ] [ 0 ] [ 'geometry' ] [ 'location' ]
takes a location as a string .