fix geodesic error on azimuth

This commit is contained in:
sbriat
2023-09-19 12:33:48 +02:00
parent efea6fe13c
commit 1f1502a623
8 changed files with 71 additions and 6 deletions

View File

@@ -14,6 +14,7 @@ import { Geodesic } from './infrastructure/geodesic';
import { GraphhopperGeorouter } from './infrastructure/graphhopper-georouter';
import { HttpModule } from '@nestjs/axios';
import { GetRouteQueryHandler } from './core/application/queries/get-route/get-route.query-handler';
import { GetDetailedRouteController } from './interface/controllers/get-detailed-route.controller';
const queryHandlers: Provider[] = [GetRouteQueryHandler];
@@ -37,11 +38,17 @@ const adapters: Provider[] = [
useClass: Geodesic,
},
GetBasicRouteController,
GetDetailedRouteController,
];
@Module({
imports: [CqrsModule, HttpModule],
providers: [...queryHandlers, ...mappers, ...adapters],
exports: [RouteMapper, DIRECTION_ENCODER, GetBasicRouteController],
exports: [
RouteMapper,
DIRECTION_ENCODER,
GetBasicRouteController,
GetDetailedRouteController,
],
})
export class GeographyModule {}