diff --git a/src/modules/matcher/adapters/secondaries/graphhopper-georouter.ts b/src/modules/matcher/adapters/secondaries/graphhopper-georouter.ts index 84cb2ca..2ced628 100644 --- a/src/modules/matcher/adapters/secondaries/graphhopper-georouter.ts +++ b/src/modules/matcher/adapters/secondaries/graphhopper-georouter.ts @@ -82,9 +82,7 @@ export class GraphhopperGeorouter implements IGeorouter { ].join(''); const route = await lastValueFrom( this._httpService.get(url).pipe( - map((res) => - res.data ? this._createRoute(path.key, res) : undefined, - ), + map((res) => (res.data ? this._createRoute(res) : undefined)), catchError((error: AxiosError) => { throw new Error('Georouter unavailable : ' + error.message); }), @@ -103,10 +101,7 @@ export class GraphhopperGeorouter implements IGeorouter { return [this._url, this._urlArgs.join('&')].join(''); } - _createRoute( - key: string, - response: AxiosResponse, - ): Route { + _createRoute(response: AxiosResponse): Route { const route = new Route(this._geodesic); if (response.data.paths && response.data.paths[0]) { const shortestPath = response.data.paths[0]; diff --git a/src/modules/matcher/tests/unit/adapters/secondaries/graphhopper-georouter.spec.ts b/src/modules/matcher/tests/unit/adapters/secondaries/graphhopper-georouter.spec.ts index 11f5752..fdfef4b 100644 --- a/src/modules/matcher/tests/unit/adapters/secondaries/graphhopper-georouter.spec.ts +++ b/src/modules/matcher/tests/unit/adapters/secondaries/graphhopper-georouter.spec.ts @@ -447,7 +447,6 @@ describe('Graphhopper Georouter', () => { withTime: true, }, ); - console.log(routes[0].route.spacetimePoints); expect(routes).toHaveLength(1); expect(routes[0].route.spacetimePoints.length).toBe(3); expect(routes[0].route.spacetimePoints[1].duration).toBe(990);