The seamless integration of indoor and outdoor positioning has gained considerable attention due to its practical implications in various fields. This paper presents an innovative approach aimed at detecting and delineating outdoor, indoor, and transition areas using a time series analysis of Global Navigation Satellite System (GNSS) error statistics. By leveraging this contextual understanding, the decision-making process between GNSS-based and Visual-Inertial Odometry (VIO) for trajectory estimation is refined, enabling a more robust and accurate positioning. The methodology involves three key steps: proposing the division of our context environment into a set of areas (indoor, outdoor, and transition), exploring two methodologies for the classification of space based on a time series of GNSS error statistics, and refining the trajectory estimation strategy based on contextual knowledge. Real data across diverse scenarios validate the approach, yielding trajectory estimations with accuracy consistently below 10 m.