#NEWLINE# @ staticmethod #NEWLINE# def _parse_result( result ) : #NEWLINE# #INDENT# '\n        Parse individual results. Different, but lazy actually, so... ok.\n        ' #NEWLINE# place = dict ( [ x . split ( '=' ) for x in result if ( len ( x . split ( '=' ) ) > 1 ) ] ) #NEWLINE# if ( 'error' in place ) : #NEWLINE# #INDENT# if ( "couldn't find" in place [ 'error' ] ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# #UNINDENT# address = [ place . get ( 'number' , None ) , place . get ( 'prefix' , None ) , place . get ( 'street' , None ) , place . get ( 'type' , None ) , place . get ( 'suffix' , None ) ] #NEWLINE# city = place . get ( 'city' , None ) #NEWLINE# state = place . get ( 'state' , None ) #NEWLINE# zip_code = place . get ( 'zip' , None ) #NEWLINE# name = join_filter ( ', ' , [ join_filter ( ' ' , address ) , city , join_filter ( ' ' , [ state , zip_code ] ) ] ) #NEWLINE# latitude = place . get ( 'lat' , None ) #NEWLINE# longitude = place . get ( 'long' , None ) #NEWLINE# if ( latitude and longitude ) : #NEWLINE# #INDENT# latlon = ( float ( latitude ) , float ( longitude ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# return Location ( latlon , latlon , place )