Here's how to invest in the coming self-driving boom, JPMorgan says

Google's self-driving car, seen at a conference in Paris on June 30, 2016

JPMorgan on Monday told clients of two companies that may be best positioned to lead the trend in self-driving cars, after analysts at the firm attended presentations from technology companies at the Consumer Electronic Show (CES) in Las Vegas.

"CES has become increasingly automotive-centric in recent years, particularly as relates to autonomous driving," equity analyst Ryan Brinkman wrote in a note to clients.

Rapid technological advancements in autonomous cars could spark a wave of investment opportunities, creating an industry potentially worth trillions of dollars, Wall Street predicts.

Here are two investment ideas from JPMorgan: