Skip to content

armgit / TREK

Public Imported from GitHub
0

The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.

1.2 KB
Raw Blame
import { PlaceImportService } from '../../src/nest/place-import/place-import.service';
import { CollectionGpxProvider } from '../../src/nest/place-import/providers/collection-gpx.provider';
import { GoogleDirectionsProvider } from '../../src/nest/place-import/providers/google-directions.provider';
import { GoogleListProvider } from '../../src/nest/place-import/providers/google-list.provider';
import { GoogleMapsShortLinkProvider } from '../../src/nest/place-import/providers/google-maps-short-link.provider';
import { GpxProvider } from '../../src/nest/place-import/providers/gpx.provider';
import { KmlProvider } from '../../src/nest/place-import/providers/kml.provider';
import { NaverListProvider } from '../../src/nest/place-import/providers/naver-list.provider';

/**
 * PlaceImportService built by hand the way PlaceImportModule wires it: real
 * providers over the global fetch a test stubs.
 */
export function buildPlaceImportService(): PlaceImportService {
  return new PlaceImportService(
    new GpxProvider(),
    new CollectionGpxProvider(),
    new KmlProvider(),
    new GoogleListProvider(),
    new GoogleDirectionsProvider(),
    new NaverListProvider(),
    new GoogleMapsShortLinkProvider(),
  );
}