mirror of
https://gitlab.com/mobicoop/v3/service/matcher.git
synced 2026-01-01 08:22:41 +00:00
almost full coverage for graphhopper georouter
This commit is contained in:
@@ -1,10 +1,15 @@
|
||||
import { Module, Provider } from '@nestjs/common';
|
||||
import { CqrsModule } from '@nestjs/cqrs';
|
||||
import { DIRECTION_ENCODER, PARAMS_PROVIDER } from './geography.di-tokens';
|
||||
import {
|
||||
DIRECTION_ENCODER,
|
||||
GEODESIC,
|
||||
PARAMS_PROVIDER,
|
||||
} from './geography.di-tokens';
|
||||
import { DefaultParamsProvider } from './infrastructure/default-params-provider';
|
||||
import { PostgresDirectionEncoder } from './infrastructure/postgres-direction-encoder';
|
||||
import { GetBasicRouteController } from './interface/controllers/get-basic-route.controller';
|
||||
import { RouteMapper } from './route.mapper';
|
||||
import { Geodesic } from './infrastructure/geodesic';
|
||||
|
||||
const mappers: Provider[] = [RouteMapper];
|
||||
|
||||
@@ -17,6 +22,10 @@ const adapters: Provider[] = [
|
||||
provide: DIRECTION_ENCODER,
|
||||
useClass: PostgresDirectionEncoder,
|
||||
},
|
||||
{
|
||||
provide: GEODESIC,
|
||||
useClass: Geodesic,
|
||||
},
|
||||
GetBasicRouteController,
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user