mirror of
https://gitlab.com/mobicoop/v3/service/matcher.git
synced 2026-01-01 08:32:41 +00:00
simpler route provider in ad module
This commit is contained in:
@@ -16,12 +16,8 @@ export class RouteMapper
|
||||
{
|
||||
toResponse = (entity: RouteEntity): RouteResponseDto => {
|
||||
const response = new RouteResponseDto();
|
||||
response.distance = entity.getProps().distance
|
||||
? Math.round(entity.getProps().distance as number)
|
||||
: undefined;
|
||||
response.duration = entity.getProps().duration
|
||||
? Math.round(entity.getProps().duration as number)
|
||||
: undefined;
|
||||
response.distance = Math.round(entity.getProps().distance);
|
||||
response.duration = Math.round(entity.getProps().duration);
|
||||
response.fwdAzimuth = Math.round(entity.getProps().fwdAzimuth);
|
||||
response.backAzimuth = Math.round(entity.getProps().backAzimuth);
|
||||
response.distanceAzimuth = Math.round(entity.getProps().distanceAzimuth);
|
||||
|
||||
Reference in New Issue
Block a user