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

NotRoutable - Location could not routed to or from.. #38

Open
wmpoolt opened this issue Oct 28, 2019 · 5 comments
Open

NotRoutable - Location could not routed to or from.. #38

wmpoolt opened this issue Oct 28, 2019 · 5 comments

Comments

@wmpoolt
Copy link

wmpoolt commented Oct 28, 2019

Hi !

After new version, i taking this error in Optimize method.

The entire error is as follows

The given model cannot be mapped by any of the registered mapppers: No vehicle found with a turn penalty..
Vehicle at index 0 could not be mapped: Departure location is in error: NotRoutable - Location could not routed to or from..

The same worked in the previous version. What does that mean ?

@wmpoolt
Copy link
Author

wmpoolt commented Oct 28, 2019

In addition
try to adjust the vehicle pool to the mapping, if any of the defined departure or arrival points cannot be mapped then this will fail.

@kharabyasser
Copy link

Hi!

Any solution for this issue? just encountered this error.

Thanks.

@kharabyasser
Copy link

Okay i think i've found a solution by trying every compatible vehicle-pool:

                foreach (var profile in RouterDb.GetSupportedProfiles())
                {
                    try
                    {
                        optimizationResult = router.Optimize(...);
                        break;
                    }
                    catch (Exception ex)
                    {
                        continue;
                    }
                }

@burakmercan34
Copy link

This problem did not solve a long time. Therefore I am using previous version on current project.

I tried your solution on my project but this is not work for me.

Thanks for your answer anyway

@timvdl1989
Copy link

@xivk we have the same issue on the latest version. Is there a workaround to have a result back from router.Optimize()?
We use a custom profile but i have defined the profile name. The reason from a specified profile is some obstructions in OpenLR. But i don't think this is the problem.

'The given model cannot be mapped by any of the registered mapppers: No vehicle found with a turn penalty..
The vehicle profile is not supported: 'carFFEmergency'.

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

4 participants