Debug output for google maps search long/lat data

This commit is contained in:
2018-02-26 10:09:18 +09:00
parent 9088995ff9
commit 8bc346f28c

View File

@@ -98,6 +98,8 @@ def reverseGeolocate(longitude, latitude):
'status': '',
'error_message': ''
}
if args.debug:
print("Search for Lat: {}, Long: {}".format(lat_long['latitude'], lat_long['longitude']))
if args.debug and args.verbose >= 1:
print("Google response: {} => TEXT: {} JSON: {}".format(response, response.text, response.json()))
# print("Error: {}".format(response.json()['status']))