DETROIT: When Shai Agassi set out in 2007 to develop an infrastructure to service electric cars, circumstances were hardly in his favor.

Gasoline was cheap, and big pickups and SUVs still ruled the road in the United States. While auto companies were working on alternative-fuel vehicles, they seemed destined for a tiny niche market of green-minded consumers.