Architecture for parking management in smart cities