Skip to content
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
5 changes: 3 additions & 2 deletions PokeAlarm/Manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -701,10 +701,11 @@ def get_lat_lng_by_name(self, location_name):

# Returns the name of the location based on lat and lng
def reverse_location(self, lat, lng):
details = {'street_num':'', 'street':'', 'address':'', 'postal':'', 'neighborhood':'',
'sublocality':'', 'city':'', 'county':'', 'state':'', 'country':''}
if self.__gmaps_client is None: # Check if key was provided
log.error("No Google Maps API key provided - unable to reverse geocode.")
return {}
details = {}
return details
try:
result = self.__gmaps_client.reverse_geocode((lat, lng))[0]
loc = {}
Expand Down