feat: implemented api, implemented creating driver and vehicle entity, added db models for entities

This commit is contained in:
2025-01-04 23:16:42 +01:00
parent 2f86b4c434
commit c4de1d11ec
7 changed files with 179 additions and 30 deletions

View File

@@ -1,5 +1,6 @@
import gpxpy
import gpxpy.gpx
from sqlalchemy.orm import Session
class GPXHandler:
__dbSession: Session
@@ -16,7 +17,7 @@ class GPXHandler:
# handles a route from db and converting it into geoJSON
def getRoute(self, route):
pass
# handles storing a route in db
def saveInDB():
# handles calculating the distance between two points
def calcDist(self, p1, p2):
pass