itinero / routing

The routing core of itinero.
Apache License 2.0
220 stars 70 forks source link

Bug: ArgumentNullException happening in Router.TryResolve() #360

Open malthuis opened 1 year ago

malthuis commented 1 year ago

Hi, when I call the method like this:

float lat = 50.085658;
float lng = 7.210349;
ItineroProfile profile = Vehicle.Car.Fastest();

Result<RouterPoint> result = router.TryResolve(profile, lat, long);

I get an error in the result that is a NullPointerException. None of the parameters are null, so the error has to be in the code.

I am using the Itinero NuGet version 1.5.1.

Thanks in advance for any help.