SummaryElectric vehicles (EVs) are drastically growing, and their emergence is more popular. Moreover, with the constraint driving range, the batteries of these vehicles are rechargeable throughout the routes in various situations. Here, a new problem is formulated with the inclusion of both battery swapping and partial recharging decisions. The energy level and the routing directions are more important, and the investigators intend to handle these issues effectually. However, the major constraint is routing and time window. Here, a heuristic model (LTS‐RSS) is designed to find the best matching solution. A novel Random Sub‐Space (RSS) and local Tabu search (LTS) are modeled to handle these issues. The probabilistic model of RSS is anticipated by integrating the consequences of time windows and distances. The experimentation is done with an online database and used for performance validation. The outcomes show that the newly modeled (LTS‐RSS) approach enhances the significance of the model. The outcomes of all the instances with diverse strategies enhance the model's robustness and stability for resolving these issues. The empirical analysis is done with MATLAB 2020b simulator, and metrics like optimization of routing solution, the best vehicle, best distance, and numbers of vehicles are evaluated, and the outcomes are compared with various other approaches.