Changed/Fixed Namespaces

This commit is contained in:
glax 2023-04-09 17:06:45 +02:00
parent 9c7fec1c37
commit ea7ce1f630
5 changed files with 7 additions and 5 deletions

View File

@ -1,4 +1,5 @@
using System.Text.Json.Serialization;
using OSMDatastructure;
using OSMDatastructure.Graph;
using Pathfinding;
@ -24,10 +25,10 @@ app.MapGet("/getRouteDistance", (float latStart, float lonStart, float latEnd, f
}
);
app.MapGet("/getRouteTime", (float latStart, float lonStart, float latEnd, float lonEnd) =>
app.MapGet("/getRouteTime", (float latStart, float lonStart, float latEnd, float lonEnd, Tag.SpeedType vehicle) =>
{
DateTime startCalc = DateTime.Now;
List<PathNode> result = Pathfinder.AStarTime("D:/stuttgart-regbez-latest", new Coordinates(latStart, lonStart), new Coordinates(latEnd, lonEnd), Tag.SpeedType.car);
List<PathNode> result = Pathfinder.AStarTime("D:/stuttgart-regbez-latest", new Coordinates(latStart, lonStart), new Coordinates(latEnd, lonEnd), vehicle);
PathResult pathResult = new PathResult(DateTime.Now - startCalc, result);
return pathResult;
}

View File

@ -1,4 +1,3 @@
using System.ComponentModel;
using System.Runtime.Serialization;
using System.Text.Json.Serialization;

View File

@ -1,7 +1,7 @@
using System.Text.Json;
using System.Text.Json.Serialization;
namespace OSMDatastructure.Graph;
namespace OSMDatastructure;
[Serializable]
public class Tag

View File

@ -1,6 +1,7 @@
using System.Text.Json.Serialization;
using OSMDatastructure.Graph;
namespace OSMDatastructure.Graph;
namespace OSMDatastructure;
[Serializable]
public class TagManager

View File

@ -1,3 +1,4 @@
using OSMDatastructure;
using OSMDatastructure.Graph;
using Utils = OSMDatastructure.Utils;