This paper deals with the prediction of the future location of vehicles, which is attracting attention in the era of the fourth industrial revolution and is required in various fields, such as autonomous vehicles and smart city traffic management systems. Currently, vehicle traffic prediction models and accident prediction models are being tested in various places, and considerable progress is being made. However, there are always errors in positioning when using wireless sensors due to various variables, such as the appearance of various substances (water, metal) that occur in the space where radio waves exist. There have been various attempts to reduce the positioning error in such an Internet of Things environment, but there is no definitive method with confirmed performance. Of course, location prediction is also not accurate. In particular, since a vehicle moves rapidly in space, it is increasingly affected by changes in the environment. Firstly, it was necessary to develop a spatial positioning algorithm that can improve the positioning accuracy. Secondly, for the data generated by the positioning algorithm, a machine learning method suitable for position prediction was developed. Based on the above two developed algorithms, through experiments, we found a means to reduce the error of positioning through radio waves and to increase the accuracy of positioning. We started with the idea of changing the positioning space itself from a three-dimensional space into a two-dimensional one. With changes in the time and space of radio wave measurement, the location was measured by transforming the spatial dimension to cope with environmental changes. This is a technology that predicts a location through machine learning on time series data using a direction angle classification technique. An experiment was conducted to verify the performance of the proposed technology. As a result, the accuracy of positioning was improved, and the accuracy of location prediction increased in proportion to the learning time. It was possible to confirm the prediction accuracy increase of up to 80% with changes. Considering that the accuracy result for location prediction presented by other researchers is 70%, through this study, the result was improved by 10% compared to the existing vehicle location prediction accuracy. In conclusion, this paper presents a positioning algorithm and machine learning methodology for vehicle positioning. By proving its usefulness through experiments, this study provides other researchers with a new definition of space for predicting the location of a vehicle, and a machine learning method using direction angles.