question: public double moveTo ( Coord newPosition ) { if ( Double . isNaN ( newPosition . getX ( ) ) || Double . isNaN ( newPosition . getY ( ) ) ) { throw new IllegalArgumentException ( "NaN-Coordinates as new position!" ) ; } double distance = CoordUtils . calcEuclideanDistance ( myPosition , newPosition ) * Constants . BEELINE_FACTOR_STREET ; myPosition = newPosition ; return distance / Constants . AV_SPEED ; }
target:  Moves AV to the new position and returns the travel time.