The commercial options guess where you are in the tunnel based on crowdsource speed outside of the tunnel in both directions. When you come out of the tunnel you don't have GPS service but they will continue to guess until they reconnect which is a rather nice feature.
I have had organic maps freak out coming out of a tunnel and just never reconnect.