implement basic structure for ad hoc suggestions where we send user a notification for better alternatives after user finished trip
LocationBasedServices/sumoc-backend/pipeline/head This commit looks good
LocationBasedServices/sumoc-backend/pipeline/head This commit looks good
- notification logic still missing - Weather api missing
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
package SuMoC.backend.routing.config;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
|
||||
/**
|
||||
* These are the routing properties for alternatives that are calculated as a resonse to an uploaded trip.
|
||||
* We separate these from properties for OnCall (Explicitly Requested by user) routing properties since
|
||||
* the assumption is that "unasked for" alternatives have less tolerance for additional travel time etc.
|
||||
*/
|
||||
@ConfigurationProperties(prefix = "routing.adhoc")
|
||||
@Getter
|
||||
@Setter
|
||||
public class AdHocRoutingProperties implements RoutingProperties {
|
||||
/**
|
||||
* Multiplier of how much more travel time is tolerated for alternative routing.
|
||||
*/
|
||||
private double acceptableAdditionalMultiplierRegular = 1.10;
|
||||
/**
|
||||
* Multiplier of accepted additional travel time for users that wish more physical activity.
|
||||
*/
|
||||
private double acceptableAdditionalMultiplierPrefersPhysical = 1.3;
|
||||
/**
|
||||
* Minimum of accepted additional travel time for regular users which is always accepted.
|
||||
*/
|
||||
private Integer minimumAcceptedAdditionalSecondsRegular = 5 * 60;
|
||||
/**
|
||||
* Minimum of accepted additional travel time for users that wish more physical activity.
|
||||
*/
|
||||
private Integer minimumAcceptedAdditionalSecondsPrefersPhysicalActivity = 5 * 60;
|
||||
}
|
||||
Reference in New Issue
Block a user