#NEWLINE# def address( lat , lng ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# ( lat , lng ) = wgs_to_gk4 ( lat , lng ) #NEWLINE# r = requests . get ( url = 'https://www.dvb.de/apps/map/address' , params = { #NEWLINE# #INDENT# 'lat' : lat , #NEWLINE# 'lng' : lng , #NEWLINE# #UNINDENT# } ) #NEWLINE# if ( r . status_code == 200 ) : #NEWLINE# #INDENT# response = json . loads ( r . content . decode ( 'utf-8' ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# print ( ( 'Failed to access DVB map address app. HTTP Error ' + r . status_code ) ) #NEWLINE# response = None #NEWLINE# #UNINDENT# #UNINDENT# except requests . RequestException as e : #NEWLINE# #INDENT# print ( ( 'Failed to access DVB map address app. Request Exception ' + e ) ) #NEWLINE# response = None #NEWLINE# #UNINDENT# if ( response is None ) : #NEWLINE# #INDENT# return response #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return process_address ( lat )