Most companies get in the GPS[1] vehicle trace information mainly through the vehicle terminal and GPS communicated, to store in database. For transportation enterprises, the above method to the acquisition of vehicle trace information , will generate a large economic burden. Therefore , this paper proposes a combination way of Java Timer and Guava cache to get the vehicle trace information of transport enterprise from Redis[2-5] database.The aim to make transport enterprise get vehicle trace information and query vehicle trajectory[6].%目前大多数公司主要是通过车载终端与GPS通信,获取GPS上面车辆轨迹信息,存入数据库.但针对运输企业来说,上述获取车辆轨迹信息的做法,会造成很大的经济负担.为此,文章提出了一种Java Timer和Guava cache结合的方式从Redis数据库上获取运输企业车辆的轨迹信息,存储到本地数据库,便于运输企业了解车辆信息,查询车辆历史轨迹.
展开▼