Citizen wastes an important part of their life moving around a city, considering that most of these displacements are in vehicles, it could be said that good traffic conditions suppose a better quality of life and less environmental contamination. Thus, traffic management systems are one of the most important systems of a city. Now-a-days, they are being incorporated so as to evolve to the smart city. One of these technologies is the wireless sensor networks, which grants them awareness of their surrounding context. For traffic management systems, the true state of the context is reviewed, as it is critical for optimal management. Regarding this, it is logical to incorporate wireless sensor network into traffic management systems. This paper has presented the progress made so far in the project, which aims to develop a smart traffic management system for an optimum control of the occupation of spaces in cities.