mirror of
https://gitlab.com/mobicoop/v3/service/matcher.git
synced 2026-01-01 08:32:41 +00:00
functional ad insert
This commit is contained in:
@@ -26,13 +26,17 @@ export class RouteMapper
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
toResponse = (entity: RouteEntity): RouteResponseDto => {
|
||||
const response = new RouteResponseDto();
|
||||
response.driverDistance = entity.getProps().driverDistance;
|
||||
response.driverDuration = entity.getProps().driverDuration;
|
||||
response.passengerDistance = entity.getProps().passengerDistance;
|
||||
response.passengerDuration = entity.getProps().passengerDuration;
|
||||
response.fwdAzimuth = entity.getProps().fwdAzimuth;
|
||||
response.backAzimuth = entity.getProps().backAzimuth;
|
||||
response.distanceAzimuth = entity.getProps().distanceAzimuth;
|
||||
response.driverDistance = Math.round(entity.getProps().driverDistance);
|
||||
response.driverDuration = Math.round(entity.getProps().driverDuration);
|
||||
response.passengerDistance = Math.round(
|
||||
entity.getProps().passengerDistance,
|
||||
);
|
||||
response.passengerDuration = Math.round(
|
||||
entity.getProps().passengerDuration,
|
||||
);
|
||||
response.fwdAzimuth = Math.round(entity.getProps().fwdAzimuth);
|
||||
response.backAzimuth = Math.round(entity.getProps().backAzimuth);
|
||||
response.distanceAzimuth = Math.round(entity.getProps().distanceAzimuth);
|
||||
response.points = entity.getProps().points;
|
||||
return response;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user