added descriptions

This commit is contained in:
2025-02-19 11:04:18 +01:00
parent ca711c614f
commit 2bf38119d6
6 changed files with 109 additions and 10075 deletions

View File

@@ -97,10 +97,14 @@ def new_trip(preferences: Preferences,
if len(landmarks) == 0 :
raise HTTPException(status_code=500, detail="No landmarks were found.")
# store landmarks in json file for debug
###################### store landmarks in json file for debug ######################
landmarks_list = [jsonable_encoder(item) for item in landmarks]
with open('landmarks.json', 'w+') as file:
json.dump(landmarks_list, file, indent=4)
####################################################################################
# insert start and finish to the landmarks list
landmarks_short.insert(0, start_landmark)