Remove debug

main
Bob Mottram 2024-10-16 14:13:43 +01:00
parent a334949350
commit 2847368653
1 changed files with 0 additions and 8 deletions

View File

@ -172,7 +172,6 @@ def _geocoords_from_osmorg_link(url: str) -> (int, float, float):
def _geocoords_from_osmorg_go_link(url: str, session) -> (int, float, float):
"""Returns geocoordinates from an OSM go map link
"""
print('Debug: _geocoords_from_osmorg_go_link ' + url)
osm_domain = 'osm.org'
if osm_domain not in url:
return None, None, None
@ -190,18 +189,12 @@ def _geocoords_from_osmorg_go_link(url: str, session) -> (int, float, float):
if not resolved_url:
return None, None, None
print('Debug: _geocoords_from_osmorg_go_link ' + resolved_url)
if 'osm.org' in resolved_url:
(zoom, latitude, longitude) = \
_geocoords_from_osmorg_link(resolved_url)
print('Debug: _geocoords_from_osmorg_go_link2 ' + str(zoom) + ' ' +
str(latitude) + ' ' + str(longitude))
else:
(zoom, latitude, longitude) = \
_geocoords_from_osm_link(resolved_url, 'openstreetmap.org')
print('Debug: _geocoords_from_osmorg_go_link3 ' + str(zoom) + ' ' +
str(latitude) + ' ' + str(longitude))
return zoom, latitude, longitude
@ -435,7 +428,6 @@ def geocoords_from_map_link(url: str, osm_domain: str,
_geocoords_from_osm_link(url, osm_domain)
return zoom, latitude, longitude
if 'osm.org' in url and 'mlat=' not in url and '/go/' in url:
print('Debug: _geocoords_from_osmorg_go_link 0 ' + url)
zoom, latitude, longitude = \
_geocoords_from_osmorg_go_link(url, session)
return zoom, latitude, longitude