add h3 cells to trip model as preparation for route pattern detection
LocationBasedServices/sumoc-backend/pipeline/head This commit looks good
LocationBasedServices/sumoc-backend/pipeline/head This commit looks good
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user