Remove most of the geography module and delegate it to external gRPC microservice

This commit is contained in:
Romain Thouvenin
2024-03-13 17:54:34 +01:00
parent d09bad60f7
commit 96c30cb1cc
59 changed files with 237 additions and 2037 deletions

View File

@@ -0,0 +1,16 @@
import { GeorouterProviderPort } from '@modules/ad/core/application/ports/georouter-provider.port';
export const bareMockGeorouter: GeorouterProviderPort = {
getRoute: jest.fn(),
};
export const simpleMockGeorouter: GeorouterProviderPort = {
getRoute: jest.fn().mockImplementation(() => ({
distance: 350101,
duration: 14422,
fwdAzimuth: 273,
backAzimuth: 93,
distanceAzimuth: 336544,
points: [],
})),
};