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.

732 B
Raw Blame
import { GeocodingService } from './geocoding.service';
import { Module } from '@nestjs/common';

/**
 * The single Nominatim seam.
 *
 * A leaf that imports nothing and is registered straight in AppModule, rather
 * than imported by MapsModule and AtlasModule. That is not an oversight: both
 * domains reach `nominatimFetch` as a module-level primitive, because the
 * bridges have to reach the very same throttle cursor from outside the
 * container. An import here would claim an injection edge that does not exist.
 * What the module contributes is the lifecycle hook that starts and stops the
 * cache's cleanup timer.
 */
@Module({
  providers: [GeocodingService],
  exports: [GeocodingService],
})
export class GeoModule {}