Did you know how Smart phones track your location using WiFi?

Did you know how Smart phones track your location using WiFi?
wifi-cellularwifi