This is an early access version, the complete PDF, HTML, and XML versions will be available soon.
Open AccessArticle
Efficient k-NN Trajectory Queries on Mobility Databases
by
Linghui Lou
Linghui Lou †
,
Dong June Lew
Dong June Lew †
and
Kwang Woo Nam
Kwang Woo Nam *
Department of Computer and Information Engineering, Kunsan National University, Gunsan 54150, Republic of Korea
*
Author to whom correspondence should be addressed.
†
These authors contributed equally to this work.
ISPRS Int. J. Geo-Inf. 2025, 14(12), 458; https://doi.org/10.3390/ijgi14120458 (registering DOI)
Submission received: 22 September 2025
/
Revised: 19 November 2025
/
Accepted: 21 November 2025
/
Published: 23 November 2025
Abstract
The rapid adoption of GPS-enabled mobile devices has produced massive trajectory datasets that drive modern applications in traffic prediction, logistics, and spatio-temporal analytics. Yet traditional database management systems (DBMSs) still lack native operators to process such data efficiently. To overcome this limitation, we introduce a set of k-nearest neighbor (k-NN) user-defined aggregates (UDAs) that embed k-NN processing directly within the PostgreSQL engine. By integrating computation into the database core, our approach minimizes data transfer and latency while maintaining low storage overhead. Experiments on benchmarked BerlinMOD-derived datasets demonstrate that the proposed UDAs reduce query execution time by 6–23%, depending on dataset size and query complexity.
Share and Cite
MDPI and ACS Style
Lou, L.; Lew, D.J.; Nam, K.W.
Efficient k-NN Trajectory Queries on Mobility Databases. ISPRS Int. J. Geo-Inf. 2025, 14, 458.
https://doi.org/10.3390/ijgi14120458
AMA Style
Lou L, Lew DJ, Nam KW.
Efficient k-NN Trajectory Queries on Mobility Databases. ISPRS International Journal of Geo-Information. 2025; 14(12):458.
https://doi.org/10.3390/ijgi14120458
Chicago/Turabian Style
Lou, Linghui, Dong June Lew, and Kwang Woo Nam.
2025. "Efficient k-NN Trajectory Queries on Mobility Databases" ISPRS International Journal of Geo-Information 14, no. 12: 458.
https://doi.org/10.3390/ijgi14120458
APA Style
Lou, L., Lew, D. J., & Nam, K. W.
(2025). Efficient k-NN Trajectory Queries on Mobility Databases. ISPRS International Journal of Geo-Information, 14(12), 458.
https://doi.org/10.3390/ijgi14120458
Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details
here.
Article Metrics
Article metric data becomes available approximately 24 hours after publication online.