Files
sumoc-backend/src/main/java/SuMoC/backend/h3/H3Configuration.java
T
neuhauss 160b883bfc
LocationBasedServices/sumoc-backend/pipeline/head This commit looks good
add h3 cells to trip model as preparation for route pattern detection
2026-01-11 19:40:46 +01:00

32 lines
944 B
Java

package SuMoC.backend.h3;
import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
@Configuration
@ConfigurationProperties(prefix = "h3")
@Getter
@Setter
public class H3Configuration {
/**
* H3 resolution for route pattern detection.
* Typically slightly lower resolution for broader matching.
*/
private int routePatternResolution = 10;
/**
* Number of hexagonal rings to include when matching route patterns.
* K-ring depth where k=1 includes immediate neighbors (6 hexagons),
* k=2 includes two rings (18 hexagons), etc.
* Higher values allow fuzzier location matching but may incorrectly
* group distinct locations.
* Consider resolution when setting.
* Default: 1 (immediate neighbors only)
*/
private int routePatternNeighborRings = 1;
}