I don't see why tunnels would be an issue. If the app has been tracking the object for a while it can calculate projected speed, and as it loses the GPS signal it can use an internal clock to continue to estimate the train's current location.
Navigation systems already do this for signal losses (and to save battery).
Navigation systems already do this for signal losses (and to save battery).