RICHMOND, Va. (AP) — Virginia will receive about $142,600 from a national $7 million settlement with Google Inc. over the company's collection of emails and other sensitive data sent over wireless networks several years ago.

The settlement closes a joint investigation by attorneys general in Virginia and 37 other states, along with the District of Columbia.

Attorney General Ken Cuccinelli said Tuesday that he hopes the settlement serves as a warning to any other company that might try to collect such data over wireless networks.

In 2010, Google revealed that company cars taking street-level photos for its online mapping service also collected personal data transmitted over unsecured wireless networks.

Google has repeatedly apologized for a breach of online etiquette. But the company has maintained that it didn't break any U.S. laws.