In example implementations, a method is provided. The method includes determining, by a processor, that a vehicle is approaching a door of a building based on a velocity vector of the vehicle, calculating, by the processor, a time of arrival of the vehicle at the door based on the velocity vector of the vehicle and a distance of the vehicle from the door, and controlling, by the processor, the door to begin opening at a time based on the time of arrival and an amount of time for the door to open such that the door is opened when the vehicle arrives at the door.