Distances for spatio-temporal clustering