A driver uses the traffic and navigation app Waze on his Apple iPhone. Google is buying the online service for $1.03 billion. Google's motives are twofold: Keeping it away from its rivals while allowing it to gain technology that could improve the accuracy and usefulness of its own popular navigation system.