\u3cp\u3eDrivers of battery electric vehicles (BEVs) require an accurate and reliable energy consumption prediction along a chosen route to reduce range anxiety. The energy consumption for a future trip depends on a number of factors such as driving behavior, road topography information, weather conditions and traffic situation. This paper discusses an algorithm to predict the energy consumption for a future trip considering these influencing factors. The route information is obtained from OpenStreetMap and Shuttle Radar Topography Mission. The algorithm consists of an offline algorithm and an online algorithm. The offline algorithm is designed to provide information for the driver to make future driving plans, which provides a nominal ener...