Apple spent years rebuilding the application, its cars travelling millions of miles to map roads after a version launched in 2012 was so problematic it prompted a rare public apology from chief executive Tim Cook.