32 lines
944 B
Java
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;
|
|
}
|
|
|