摘要
尝试将Ajax技术融入Django框架,以实现经纬度的动态显示和汽车在地图中的定位。基于Django框架的Web服务器响应来自Web网页的HTTP请求并读取数据库的数据,通过Ajax引擎动态地将数据实时显示到网页端。百度地图通过其Web API接口同时也收到服务器的数据,可以实时显示汽车当前位置及其运行轨迹。经过实际测试,服务器能满足GPS功能要求。
This paper focuses on the integration of Ajax technology into the Django framework to realize the dynamic display of latitude and longitude and the positioning of the vehicle in the map. The Web server based on the Django framework responds to the HTTP request from the Web page and reads the data from the database, dynamically displaying the data through the Ajax engine to the Web page in real time. Meanwhile the data is also received by the Baidu Maps through its Web API to display the current position and running pathof the vehicle.
出处
《机电一体化》
2017年第11期43-48,共6页
Mechatronics