Generalized Additive Models with Spatio-temporal Data