A spatial and temporal heterogeneity analysis of residential land prices, in general, is crucial for maintaining high-quality economic development. Previous studies have attempted to explain the geographical evolution rule by studying spatial-temporal heterogeneity, but they have neglected the contextual information, such as school district, industrial zone, population density, and job density, associated with residential land prices. Therefore, in this study, we consider contextual factors and propose a revised local regression algorithm called the contextualized geographically and temporally weighted regression (CGTWR), to effectively address spatiotemporal heterogeneity, and to creatively extend the feasibility of importing the contextualization into the GTWR model. The quantitative impact of contextual information on residential land prices was identified in Shijiazhuang (SJZ) city from 1974 to 2021. Empirical analyses demonstrated that school district and industrial zone factors played important roles in residential land prices. Notably, the distance from a residential area to an industrial zone was significantly positively correlated with residential land prices. In addition, a positive relationship between school districts and residential land prices was also observed. Finally, the R2 value of the CGTWR model was 92%, which was superior to those of ordinary least squares (OLS, 76%), geographically weighted regression (GWR, 85%), contextualized geographically weighted regression (CGWR, 86%), and GTWR (90%) models. These evaluation results indicate that the CGTWR algorithm, which incorporates contextual information and spatiotemporal variation, could provide policy makers with evidence for understanding the nature of varying relationships within a land price dataset in China.