Made speedtype any generic.

Will use any connection (highway), and return the same speed for all highways.
This commit is contained in:
2023-04-09 18:27:53 +02:00
parent d8f8a41dcc
commit 0f53ae579c
4 changed files with 18 additions and 10 deletions

View File

@ -37,7 +37,7 @@ app.MapGet("/getRouteTime", (float latStart, float lonStart, float latEnd, float
app.MapGet("/getClosestNode", (float lat, float lon) =>
{
RegionManager regionManager = new RegionManager("D:/stuttgart-regbez-latest");
return regionManager.ClosestNodeToCoordinates(new Coordinates(lat, lon), Tag.SpeedType.road);
return regionManager.ClosestNodeToCoordinates(new Coordinates(lat, lon), Tag.SpeedType.any);
});
// Configure the HTTP request pipeline.