Text this: A new similarity measure for spatial linear networks