A vehicle electronic fence warning algorithm based on NB-IoT and Goole-S2 is proposed,in order to solve the problem of vehicle location monitoring and entry/exit domain real-time warning.By drawing electronic fences of circle,rectangle,polygon and administritive division types in the Web terminal,and by installing an IoT location terminal on the vehicle,users can access the real-time location of the vehicle using the MQTT protocol.The fence warning service determines whether the vehicle triggers an inbound/outbound alarm by processing the latest location information on the RabbitMQ message queue,and analyzing the latest location and the location relationship between the latest fence and the latest vehicle in the cache.If a warning is generated,the real-time warning information is pushed to the Web terminal through WebSocket,and the aurora push is used to push the warning information to the user.Experiments have shown that the algorithm has strong real-time performance,high accuracy,and high promotion value.
location monitoringelectronic fenceNB-IoTregional point setentry and exit domain alarm