The user may define subclasses of this class.
If A is a certain distance from B, then distance is given in metres. The attribute metric indicates how the distance was measured, i.e., straightline distance, city block distance, etc.