Files
TREK/server/src/nest/tours/tour-files.module.ts
T
Maurice cd60d4d859 feat(tours): assistant takes found places into saved tours and route files from the chat
P6: insert_tour_stop and remove_tour_stop take a place into a saved hike or
city walk as one stop and out again, each the other's undo, with change
cards in the chat. The planner's insertion rule (poiInsertion) moved to
shared so the planner and the server place a stop the same way. "+ Tour" on
a found place holds it as a stop of the saved tour open in the planner.

P7: GPX, KML and KMZ files attached in the chat are read into their tracks
and each is held as a change that takes it in as a hike through
import_tour_gpx, undoable per track; the GPX text stays on the held call.
2026-10-23 22:00:05 +02:00

20 lines
829 B
TypeScript

import { PlaceImportModule } from '../place-import/place-import.module';
import { PlacesModule } from '../places/places.module';
import { TourFileReadService } from './tour-file-read.service';
import { Module } from '@nestjs/common';
/**
* P7: a route file read into tours without storing anything, for the
* assistant's chat (a GPX, KML or KMZ file the user attaches). It reads the
* file as the Tours import does, through PlaceImportModule's readers, and
* marks the tracks the trip has already through PlacesModule; the import
* itself stays import_tour_gpx's. A module of its own so the assistant takes
* this one reader without the whole Tours module.
*/
@Module({
imports: [PlaceImportModule, PlacesModule],
providers: [TourFileReadService],
exports: [TourFileReadService],
})
export class TourFilesModule {}