Read distance from hash