add match config
This commit is contained in:
parent
0250fc9132
commit
f7de60fafe
22
.env.dist
22
.env.dist
|
@ -18,6 +18,8 @@ REDIS_PORT=6379
|
||||||
# CARPOOL
|
# CARPOOL
|
||||||
# default carpool departure time margin (in seconds)
|
# default carpool departure time margin (in seconds)
|
||||||
DEPARTURE_TIME_MARGIN=900
|
DEPARTURE_TIME_MARGIN=900
|
||||||
|
# default validity duration (in days) for recurrent ads
|
||||||
|
RECURRENT_AD_VALIDITY_DURATION=365
|
||||||
# default role
|
# default role
|
||||||
ROLE=passenger
|
ROLE=passenger
|
||||||
# seats proposed as driver / requested as passenger
|
# seats proposed as driver / requested as passenger
|
||||||
|
@ -26,6 +28,26 @@ SEATS_REQUESTED=1
|
||||||
# accept only same frequency requests
|
# accept only same frequency requests
|
||||||
STRICT_FREQUENCY=false
|
STRICT_FREQUENCY=false
|
||||||
|
|
||||||
|
# MATCH
|
||||||
|
# algorithm type
|
||||||
|
ALGORITHM=PASSENGER_ORIENTED
|
||||||
|
# max distance in metres between driver
|
||||||
|
# route and passenger pick-up / drop-off
|
||||||
|
REMOTENESS=15000
|
||||||
|
# use passenger proportion
|
||||||
|
USE_PROPORTION=true
|
||||||
|
# minimal driver proportion
|
||||||
|
PROPORTION=0.3
|
||||||
|
# use azimuth calculation
|
||||||
|
USE_AZIMUTH=true
|
||||||
|
# azimuth margin
|
||||||
|
AZIMUTH_MARGIN=10
|
||||||
|
# margin duration in seconds
|
||||||
|
MARGIN_DURATION=900
|
||||||
|
# max detour ratio
|
||||||
|
MAX_DETOUR_DISTANCE_RATIO=0.3
|
||||||
|
MAX_DETOUR_DURATION_RATIO=0.3
|
||||||
|
|
||||||
# PAGINATION
|
# PAGINATION
|
||||||
# number of results per page
|
# number of results per page
|
||||||
PER_PAGE=10
|
PER_PAGE=10
|
||||||
|
|
|
@ -17,6 +17,7 @@ import paginationConfig from './config/pagination.config';
|
||||||
import serviceConfig from './config/service.config';
|
import serviceConfig from './config/service.config';
|
||||||
import redisConfig from './config/redis.config';
|
import redisConfig from './config/redis.config';
|
||||||
import { Transport } from '@nestjs/microservices';
|
import { Transport } from '@nestjs/microservices';
|
||||||
|
import matchConfig from './config/match.config';
|
||||||
|
|
||||||
@Module({
|
@Module({
|
||||||
imports: [
|
imports: [
|
||||||
|
@ -25,6 +26,7 @@ import { Transport } from '@nestjs/microservices';
|
||||||
load: [
|
load: [
|
||||||
brokerConfig,
|
brokerConfig,
|
||||||
carpoolConfig,
|
carpoolConfig,
|
||||||
|
matchConfig,
|
||||||
paginationConfig,
|
paginationConfig,
|
||||||
redisConfig,
|
redisConfig,
|
||||||
serviceConfig,
|
serviceConfig,
|
||||||
|
|
Loading…
Reference in New Issue