Actually, the real line is a special kind of vector space, and absolute value measures vector length in that space. The only difference is that vector length is a more general notion: it applies also to vectors in higher dimensions.
(But generally, they are analogous in the sense that they both tell you the magnitude of the entity, but ignore its `direction': absolute value of a real number ignores the sign (whether it is pointing up or down, is it were). In the more general setting the length of a vector merely tells you its length but not the direction.)