#NEWLINE# def __init__( self , location , **kwargs ) : #NEWLINE# #INDENT# self . url = 'https://search.mapzen.com/v1/reverse' #NEWLINE# self . location = location #NEWLINE# location = Location ( kwargs ) #NEWLINE# key = kwargs . get ( 'key' , mapzen_key ) #NEWLINE# if ( not key ) : #NEWLINE# #INDENT# raise ValueError ( 'Mapzen requires a [key] as parameter.' ) #NEWLINE# #UNINDENT# self . params = { #NEWLINE# #INDENT# 'point.lat' : location . lat , #NEWLINE# 'point.lon' : location . lng , #NEWLINE# 'size' : kwargs . get ( 'size' , 1 ) , #NEWLINE# 'layers' : kwargs . get ( 'layers' ) , #NEWLINE# 'source' : kwargs . get ( 'sources' ) , #NEWLINE# 'boundary.country' : kwargs . get ( 'country' ) , #NEWLINE# 'api_key' : key , #NEWLINE# #UNINDENT# } #NEWLINE# self . _initialize ( ** kwargs )