As good as GPS is at helping smartphones guide you, the technology isn't very precise and doesn't work reliably indoors.
Apple is trying to improve that with a new iBeacon system that comes with last week's iOS 7 update.
Better location information will improve a range of features, including recommendations based on what's popular nearby. It will also allow users to receive advertisements and coupons from nearby retailers.
Major League Baseball is showcasing some of the technology's potential, with plans to use it more extensively by in ballparks next season.
At Thursday's demonstration at New York's Citi Field stadium, MLB officials showed how coupons can appear on a fan's phone the moment they walk into a souvenir shop. Bonus features show up when fans are near landmarks.
Explore further: iOS 6.1: Apple updates software for iPhone, iPad