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

Hi, I tried running the example code given in the documentation but encountered errors. Please let me know how to resolve this. #120

Open
hns0707 opened this issue Nov 13, 2024 · 1 comment

Comments

@hns0707
Copy link

hns0707 commented Nov 13, 2024

problem_instance = vroom.Input(
servers={"auto": "valhalla1.openstreetmap.de:443"},
router=vroom._vroom.ROUTER.VALHALLA
)

    problem_instance.add_vehicle(vroom.Vehicle(1, start=(51.5075,  -0.1279), profile="auto"))

    problem_instance.add_job([
        vroom.Job(1, location=(51.5075,  -0.1279)),
        vroom.Job(2, location=(51.5077239943, -0.1310421061)),
        vroom.Job(3, location=(51.5098275520, -0.1348400078)),
    ])

    sol = problem_instance.solve(exploration_level=5, nb_threads=4)
    print(sol.summary.distance)

on Above code i'm getting "Valhalla matrix error (No suitable edges near location)." can you please help me out to fix this issue

@jcoupey
Copy link
Contributor

jcoupey commented Nov 13, 2024

The problem is most certainly related to using lat, lon instead of lon, lat for the coordinates.

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

2 participants