This was done as you probably know [1] but it's not clear that the road surface is a good place for solar panels. They get dirty and damaged. It's certainly orthogonal to charging vehicles on the road, given we know how to transmit power already.
[1] https://www.google.com/amp/s/www.theverge.com/platform/amp/2...