Having been with us now for over twenty years, from hardcore tech enthusiast territory to mass market gadget, GPS has certainly come of age. On a marketing board outside a phone shop, GPS is mentioned and the user immediately assumes that the phone will, more or less instantly, know where it is on the planet. Just like that. Just like magic. It says 'GPS' so it must do what it says on the tin. A bit like "3G" or "5MP camera". Simply facts and things that will just 'work'.

Unfortunately, this is misunderstanding the technology in the case of GPS. You've got a network of a couple of dozen satellites orbiting the Earth at a huge altitude of 16,000 miles (approx, see this article for all the tech detail on GPS), while your humble battery-powered electronic device attempts to receive their transmissions, do a staggering amount of complex mathematics and somehow derive where you are. As quickly as possible and using as little power as possible.

Standing in the way (usually literally) of such a feat are:
- Buildings and terrain - under an open sky, your phone's GPS receiver might 'see' a dozen satellites at best. In a typical suburban environment, with trees, houses, wires, plus (typically) metalwork in your car, the number of satellites consistently visible might be as low as 4 or 5. In an urban environment, the number can be as low as 1 or 2. Oh, and at least four good satellite signals are needed for a 'lock'.
- Signal reflections - following on from the first point, direct obstruction, we have confusion from receiving GPS signals 'bounced' off objects. In the worst case, in a city, the poor receiver sees far more reflected signals than originals, and, somehow, has got to work out which is which.
- Weather - the thicker the cloud cover and the worse the weather, the weaker the GPS signals. These radio signals are weak enough as it is (remember that altitude), it doesn't take much to block them. A brick wall is more than enough. And think how much matter there is in 10,000 feet of dense cloud/rain etc.
- Angle - along similar lines, the lower in the sky a GPS satellite is, the weaker its signal, since it has to travel through far more weather/cloud to get to your phone. Satellites high in the sky will deliver the best signal and the most reliable fixes.
- Time - your smartphone's GPS should certainly remember a last calculated position (and also the positions and velocities of the GPS satellites) if it was only a few hours ago. But what if you've moved since that time? What if it's several days later? What if you've moved a few hundred miles and it's a week later? The GPS chip has to start, literally, from scratch, in terms of tracking down where the satellites are and how they're moving.
- Movement - when starting out on a journey, a navigation app is often kicked off when you're already moving, potentially making the triangulation calculations much, much harder.
- Relativity - yes, that theory of relativity. The satellites are high enough and moving fast enough that there are genuine relativistic effects to all the time calculations. Don't ask about the maths needed to correct for these effects - your head would explode!
Armed with the above information, you can quickly see why GPS receivers can struggle indoors, even near a large window. And you can see why they might take longer to 'lock on' when you haven't used the functionality for a while. And why they don't work very well in cities. In each case, it's not your smartphone's GPS that's faulty - you're simply running up against the laws of physics.
Luckily, there are factors that work in your favour too. Because you have a smartphone, with its own Internet connection, it's able to look up orbital data about the GPS satellites to give the sky-scanning process a massive head start. This is what's called 'Assisted GPS' and is why one of the first things you should do when troubleshooting a GPS problem is to dive into the 'Positioning' settings and make sure that there's a valid Internet access point specified. (And, for pay as you go data users, that you have credit on this account!) Don't worry about data usage, the orbital data is highly compressed and only amounts to a few kilobytes, but note that many pay-as-you-go operators now (annoyingly) charge the full (e.g.) 30p/50p/day even if you only use a few kilobytes.

Armed with this data, the receiver knows exactly where the satellites should be in the sky and can look for the right ones on the right frequencies, saving a lot of scanning time. And, having grabbed the orbital data from an Internet server, this is usually valid for a few days, meaning that if you try and get a GPS lock again within that time period, the receiver already knows the satellite orbits and can jump quickly to looking in the right places.
Other factors that play a part in the time taken to get a GPS lock are the complexity of the receiver chip (the number of 'channels') and the quality of the GPS antenna. You'll remember the latter playing a part in the development of the Nokia N97, where the first few months of models off the production line came with an antenna design that was prone to electronic interference - the end result was bad GPS radio reception and, ultimately, poor GPS locks.
In short, even with help from Assisted GPS/data, it's a veritable miracle that GPS works at all, considering the obstacles in the technology's way. But it does work, given appropriate help from you the user:
- Make 100% sure there's a valid Internet access point set up in Settings|Positioning.
- Be patient when getting a lock is slow and try to understand the reason why it's slow in this particular instance. For example, "Oh, I get it. It's taking 2 minutes to lock on because I haven't used it since last month, when I was in France." Or "It's slow because I'm in a metal-framed bus and the weather's lousy". That sort of thing....!
- Try not to cover the GPS antenna in your phone with your hand - flesh and blood is also moderately good at blocking GPS radio signals. If you don't know where the antenna is on your device, Google it and find out.
- Try to remain stationary while getting a fix - there's no point in making the GPS chip's job much harder!
- Do everything you can to maximise the phone's GPS antenna's view of the open sky.

As time goes on, the technology is improving, mind you. With better satellites (they're being launched and replaced regularly), transmitting on better frequencies using better encodings and with better receiver designs, we may even get to the point where tutorial features like this one become redundant because GPS will work so quickly for so many people that troubleshooting becomes almost unheard of. But we're not quite there yet.
Steve Litchfield. All About Symbian, 5th Jan 2010
PS. If you're often in an urban area and cursing the blockages/reflections mentioned above, I can recommend Maps Booster, a small and cheap utility that adds Wi-Fi-based positioning into the mix. Install it and fixes from Wi-Fi networks get used by Symbian's Positioning sub-system - it means that you then have strong position fixes in both the country and the town....
