Files
sumoc-backend/src/main/java/SuMoC/backend/routing/config/AdHocRoutingProperties.java
T
neuhauss 1f439338da
LocationBasedServices/sumoc-backend/pipeline/head This commit looks good
implement basic structure for ad hoc suggestions where we send user a notification for better alternatives after user finished trip
- notification logic still missing
- Weather api missing
2026-01-10 17:09:44 +01:00

33 lines
1.3 KiB
Java

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;
}