mirror of https://gitlab.com/bashrc2/epicyon
Debug
parent
3e6ebd46bb
commit
1e1d7b1b77
5
maps.py
5
maps.py
|
@ -430,13 +430,14 @@ def geocoords_from_map_link(url: str, osm_domain: str,
|
|||
session) -> (int, float, float):
|
||||
"""Returns geocoordinates from a map link url
|
||||
"""
|
||||
print('Debug: _geocoords_from_osmorg_go_link start')
|
||||
print('Debug: _geocoords_from_osmorg_go_link start ' + url +
|
||||
' ' + osm_domain)
|
||||
if osm_domain in url:
|
||||
zoom, latitude, longitude = \
|
||||
_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')
|
||||
print('Debug: _geocoords_from_osmorg_go_link 0 ' + url)
|
||||
zoom, latitude, longitude = \
|
||||
_geocoords_from_osmorg_go_link(url, session)
|
||||
return zoom, latitude, longitude
|
||||
|
|
Loading…
Reference in New Issue