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

如果你使用过程遇到类似无法解析路径的问题,可以尝试以下代码 #72

Open
ForeverHYX opened this issue Nov 1, 2024 · 0 comments

Comments

@ForeverHYX
Copy link

尝试使用json方式读入,修改 util/route.py 为

import json

def parse_route(content):
    tmp = json.loads(content)
        
    for i in tmp:
        if isinstance(i, dict):
            i["lat"] = float(i["lat"])
            i["lng"] = float(i["lng"])
    return tmp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant