摘要
【目的】针对传统关系型数据库扩展性差、存取效率低等问题,提出一种基于非关系型数据库(NoSQL)的海量出租车GPS数据Web服务方案,满足海量空间数据高效存储管理与实时在线服务的需求。【方法】利用MongoDB地理空间索引实现基于位置的查询,基于Node.js技术提供Web service服务,采用Express MVC框架构建Web应用。【结果】与MySQL Spatial相比,MongoDB在区域查询方面具有较高的查询效率,数据量多时,其性能尤为显著。【结论】基于NoSQL的出租车GPS数据Web服务方案可以支持海量位置数据的实时查询与地图显示,具有一定的应用参考价值。
【Objective】In order to meet the demand of massive spatial data storage management and real-time online service,the massive taxi GPS data Web service based on NoSQL was discussed in this paper.The solution is to overcome the problem of poor scalability and low access efficiency in traditional relational database.【Methods】In our solution,locationbased query was realized by the MongoDB geospatial indexes.Web services was built on the Node.js technology.The Express MVC framework was used for building Web application.【Results】The region query experiments on the MongoDB and MySQL Spatial Extensions was carried out for performance comparisons.The results showed that MongoDB had higher query efficiency.When there was large amount of data,its performance was particularly significant.【Conclusion】The taxi GPS data Web service based on NoSQL can support the real-time query and display of location data on the digital map.The result has certain reference value for the similar study.
出处
《广西科学院学报》
2016年第3期231-236,共6页
Journal of Guangxi Academy of Sciences
基金
2016年度广西高校中青年教师基础能力提升项目(KY2016YB911)
2015年度广西职业教育教学改革立项项目"计算机应用技术(Web方向)‘产品驱动’实践教学体系的改革研究与实践"
桂林理工大学南宁分校课程改革与建设立项建设项目(2014KGB09
2015KGA06)资助