Cluster same-name stops within 50m into single markers

Same-name stops within 50m (opposite sides of a road, different
platforms/entrances) are now merged into one marker at the cluster
centroid. Uses scipy hierarchical clustering (single linkage, distance
criterion).

Stop counts after clustering:
  bus:  1610 -> 892 markers
  metro:   91 ->  46 markers
  s_tog:   76 ->  34 markers
  regional: 27 ->  10 markers

Threshold configurable via styling.yaml stations.stop_cluster_m.
This commit is contained in:
marvin
2026-09-13 23:15:29 +02:00
parent 07bfda8df0
commit 2f0cc07061
2 changed files with 50 additions and 5 deletions
+1
View File
@@ -73,6 +73,7 @@ basemap:
stations:
show: true # draw station markers (symbols without text)
styles: [metro, s_tog, regional, bus]
stop_cluster_m: 50 # merge same-name stops within this distance (opposite sides of road)
marker:
shape: circle # circle | square
fill: white