Patent ID: 11421994

Abstract:
An embodiment of the invention provides a method and apparatus for partitioning an electronic fence, relating to the technical field of computers. The method in the embodiment of the invention comprises: partitioning a coordinate system of a planimetric map, and taking one vertex of each partition in the same direction as a base point; generalizing, according to a predetermined rule, a station to the base point corresponding to the partition where the station is located; mapping, according to the predetermined rule, a vehicle position to the base point corresponding to the partition where the vehicle position is located, wherein all the stations included in the base point are stations where a vehicle may appear; and acquiring electronic fence information of the stations where the vehicle may appear, and comparing vehicle position information with the electronic fence information of the stations where the vehicle may appear so as to determine whether the vehicle enters or leaves the stations. In the embodiment of the invention, by partitioning the coordinate system of the planimetric map, and comparing the vehicle position information with the electronic fence information of the stations where the vehicle may appear, time complexity of a determination program is reduced, and occupation of hard disk read resources is reduced at the same time.