Verizon Communications said it will buy GPS vehicle tracking company Fleetmatics for about $2.4 billion in cash.