This commit is contained in:
机械小鸽 2025-03-04 14:23:14 +08:00 committed by GitHub
parent 247cc43dc5
commit ea71a1c0fd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -590,10 +590,9 @@ def carinfo():
def amap_nav(): def amap_nav():
"""高德地图导航页面""" """高德地图导航页面"""
try: try:
# 获取当前位置 # 使用默认坐标(北京)
location = get_current_location() # 假设这个函数已存在 lat = 39.9042 # 默认北京位置
lat = location.get('lat', 39.9042) # 默认北京位置 lon = 116.4074
lon = location.get('lon', 116.4074)
return render_template( return render_template(
"amap_addr_input.html", "amap_addr_input.html",