Won't work for most cars in cities, as they will be parked in indoor/underground garages, so no solar to speak of for their parking time, and the bit of solar you get while driving will maybe power the lights/electronics/audio system at most.
(Driving a full EV, but needing to charge 30+kwh/week, and my small (but larger than a car could fit) home-solar only provides max 20kwh/week in spring/summer.
A lot of car parks have chargers. Wiring up low wattage chargers is no big deal, considering AC chargers are just wiring+breakers. Considering cars will spend a long time here, large wattages are not needed, you could wire up a multi-story parking lot for chump change, and the entire wattage would be still less than a DC fast charger serving half a dozen cars.
(Driving a full EV, but needing to charge 30+kwh/week, and my small (but larger than a car could fit) home-solar only provides max 20kwh/week in spring/summer.