Abstract Satellite-based positioning has gained popularity, but in bustling urban areas, signals face challenges like serious attenuation, affecting the reliability of positioning. To overcome this, we propose a seamless positioning approach that combines the BeiDou navigation satellite system (BDS) and 5G, specifically designed for complex urban settings. Initially, we establish static and dynamic positioning solutions using real 5G data measured through the time difference of arrival method, resulting in accurate 5G indoor positioning. Following this, we develop a combined BDS/5G positioning model incorporating joint switching based on satellite elevation angle and carrier-to-noise ratio (CNR). We conduct positioning experiments in intricate environments to validate the effectiveness of our model. The experimental outcomes demonstrate that our combined BDS/5G seamless positioning model, employing the joint switching strategy of satellite elevation angle and CNR, achieves impressive positioning accuracies ranging from decimeters to meters. This approach markedly enhances accuracy and reliability of seamless positioning in challenging urban scenarios.