In the field of electric vehicle usage, an inherent challenge lies in the restricted mileage capacity prior to requiring a recharge, hindering broader acceptance of electric vehicles. To alleviate this concern, enhancing the comprehension of vehicle energy consumption and range plays a pivotal role in easing the anxieties of electric vehicle drivers. Within this context, a novel model-based predictive approach is introduced for estimating electric vehicle energy consumption. This method considers the vehicle's specific parameters, the road network's topology, and actual traffic conditions. Through the macro model of electric vehicle energy consumption, real-time summary data can be extracted using conventional map-based web services. By representing the road network as a weighted directed graph tailored to the energy consumption model, an algorithm aids in mileage optimization by determining the optimal path for immediate use. The resultant motion range from this approach offers improved precision and dependability in contrast to conventional strategies based on average consumption and distance.