Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update printgeocode.py #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions bin/printgeocode.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def geocode(string):
lat,lon=loc['lat'],loc['lng']
logger.info("Successful conversion of address->lat,lon. Returned: (%f,%f)",lat,lon)
else:
logger.info("Something is not write, please see status: %s",status)
logger.info("Something is not right, please see status: %s",status)
logger.info("Returning lat,lon as blank")
lat=None
lon=None
Expand Down Expand Up @@ -75,7 +75,7 @@ def reverse_geocode(lat,lon):
address=d['results'][0]['formatted_address']
logger.info("Successful conversion of (lat,lon)-> Address. Returned: (%s)",address)
else:
logger.info("Something is not write, please see status: %s",status)
logger.info("Something is not right, please see status: %s",status)
logger.info("Returning address as blank")
address=None
return status,address
Expand Down