Whatsapp does not actually know the location of the user. Instead, it relies on a number of different sources of information to determine the user's current location. These include cell towers, Wi-Fi networks, and GPS signals.