AGPS is GPS satellites assisted by cell towers, and is in the iPhone 3G onwards. http://en.wikipedia.org/wiki/Assisted_GPS
The original iPhone had no GPS and always used cell tower triangulation. This varied a lot - I remember in Manhattan, NY it could track me almost to the street number; on the other hand I once turned it on in a moving car in rural NSW, Australia and it drew a circle approximately 500km in diameter.
They don't use the GPS satellites at all.