The original iPhone uses cell phone towers and WiFi access points with known locations to triangulate your location.