feat: implemented pwa capabillities and refactored lots of backend things

This commit is contained in:
2025-01-02 02:28:14 +01:00
parent 61abbcccc5
commit 53ee6df95e
41 changed files with 11444 additions and 261 deletions

View File

@@ -1,8 +1,22 @@
class gpxInterpreter:
def __init__(self):
import gpxpy
import gpxpy.gpx
def processFile(self, file):
return True
class GPXHandler:
__dbSession: Session
def __init__(self, session:Session):
self.__dbSession = session
pass
# handles converting a gpx file into usable data
def parse(self, file):
self.gpx = gpxpy.parse(file)
pass
# handles a route from db and converting it into geoJSON
def getRoute(self, route):
pass
def importDataInDB(self, data):
return True
# handles storing a route in db
def saveInDB():
pass