Positioning punch-in method, device, computer equipment and storage medium
By obtaining and judging the target device location and base station information within the check-in range, the problem of misjudgment of virtual positioning punch-in in the existing technology is solved, and the accuracy of positioning punch-in is improved.
Patent Information
- Application Number
- CN202211122139.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-15
- Publication Date
- 2025-04-11
- Estimated Expiration
- 2042-09-15
AI Technical Summary
When detecting virtual positioning and punching in, it is difficult to avoid misjudgment caused by positioning drift or positioning data delay, resulting in low accuracy of positioning and punching in.
By obtaining the preset check-in range data and base station information, we judge whether the target device location information is within the check-in range, and query whether its base station information exists in the base station information in the check-in range to determine the check-in successful.
It improves the accuracy of positioning and punching in, reduces the misjudgment of virtual positioning and punching in, and enhances the prevention of edge virtual punching in behavior.
Smart Images

Figure CN115497186B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of artificial intelligence technology, and in particular to a positioning punch-in method, device, computer equipment and storage medium. Background Art
[0002] At present, the use of positioning functions is becoming more and more common, and clocking in at work is one of the most common usage scenarios. As a result, virtual positioning has also become one of the most common ways to cheat on attendance.
[0003] At present, the implementation method of detecting virtual positioning punching in in the industry mainly collects the differences in multiple position information when the target device punches in to determine whether the target device punches in with virtual positioning, and if it is not virtual positioning, determines that the device punches in successfully. Among them, the method of determining virtual positioning is, for example, method one: if the device uses virtual positioning technology, the device positioning does not change within a period of time in the future, then it is determined that the device uses virtual technology. For another example, method two: if the device has a displacement behavior that exceeds the normal in a short period of time, then it is determined that the device uses virtual positioning technology. However, the method of collecting the differences in multiple position information when the target device punches in through the above method to determine whether it is virtual positioning cannot avoid misjudgment caused by positioning drift or positioning data delay, resulting in low accuracy of positioning punching in. Summary of the invention
[0004] Based on this, it is necessary to provide a positioning punch-in method, device, computer equipment, computer-readable storage medium and computer program product to address the above technical problems.
[0005] In a first aspect, the present application provides a positioning punch-in method. The method comprises:
[0006] Obtaining preset punch-in range data, base station information of the punch-in range data, target device location information, and base station information of the target device;
[0007] When the target device location information is within the punch-in range data, determining whether the base station information of the target device exists in each base station information of the punch-in range data;
[0008] When the base station information of the target device exists in the base station information of the clock-in range data, it is determined that the target device corresponding to the target device location information has clocked in successfully.
[0009] Optionally, after acquiring the clock-in range data and the base station information of the clock-in range data, the method further includes:
[0010] Collecting structured data of the punch-in range data and structured data of base station information within the punch-in range data through a data collection model;
[0011] The structured data of the punch-in range data is processed into data by a data processing model to obtain the position range data of the punch-in range data;
[0012] The structured data of the base station information is processed into data by the data processing model to obtain the base station data of the base station information.
[0013] Optionally, the punch-in range data includes location range data, and the location range data is longitude and latitude data of a longitude and latitude range corresponding to the punch-in range data; when the location information of the target device is within the punch-in range data, determining whether the base station information of the target device exists in each base station information of the punch-in range data includes:
[0014] Extracting the target longitude and latitude data of the target device location information, and determining whether the location range data of the punch-in range data includes the target longitude and latitude data;
[0015] When the location range data of the punch-in range data includes the target longitude and latitude data, it is determined whether the base station information of the target device exists in each base station information of the punch-in range data.
[0016] Optionally, when the base station information of the target device exists in the base station information of the clock-in range data, determining that the target device corresponding to the target device location information has successfully clocked in includes:
[0017] Extracting target base station data corresponding to the base station information of the target device;
[0018] In the base station data of each base station information of the punch-in range data, query the base station data corresponding to the target base station data;
[0019] In the case that base station data corresponding to the target base station data exists, it is determined that the target device of the base station information corresponding to the target base station data has successfully clocked in.
[0020] Optionally, the punch-in range data includes a core area range and a peripheral area range, and when the base station information of the target device exists in each base station information of the punch-in range data, the further comprising:
[0021] When the target device location information is within the core area, determining that the target device corresponding to the target device location information has successfully clocked in;
[0022] When the target device location information is within the edge area and meets the preset time limit, the current location information of the target device is reacquired, and when the current location information is within the punch-in range data, it is determined that the target device corresponding to the current location information has successfully punched in.
[0023] Optionally, when the location information of the target device is within the edge area and meets a preset time limit, reacquiring the current location information of the target device, and when the current location information is within the punch-in range data, determining that the target device corresponding to the current location information has successfully punched in, includes:
[0024] When the location information of the target device is within the edge area, starting timing processing;
[0025] When the timing period corresponding to the timing processing meets the preset time limit, the current location information of the target device is re-acquired, and when the current location information is within the punch-in range data, it is determined that the target device corresponding to the current location information has successfully punched in.
[0026] In a second aspect, the present application also provides a positioning punching device. The device comprises:
[0027] An acquisition module, used to obtain preset punch-in range data, base station information of the punch-in range data, target device location information, and base station information of the target device;
[0028] A judgment module, configured to judge whether the base station information of the target device exists in each base station information of the punch-in range data when the location information of the target device is within the punch-in range data;
[0029] The clock-in module is used to determine that the target device corresponding to the target device location information has successfully clocked in when the base station information of the target device exists in the base station information of the clock-in range data.
[0030] Optionally, the device further comprises:
[0031] A collection module, used for collecting structured data of the punch-in range data and structured data of base station information within the punch-in range data through a data collection model;
[0032] A processing module, used for performing data processing on the structured data of the punch-in range data through a data processing model to obtain position range data of the punch-in range data;
[0033] The data conversion module is used to perform data conversion on the structured data of the base station information through the data processing model to obtain the base station data of the base station information.
[0034] Optionally, the punch-in range data includes location range data, and the location range data is longitude and latitude data of a longitude and latitude range corresponding to the punch-in range data; the judgment module is specifically used to:
[0035] Extracting the target longitude and latitude data of the target device location information, and determining whether the location range data of the punch-in range data includes the target longitude and latitude data;
[0036] When the location range data of the punch-in range data includes the target longitude and latitude data, it is determined whether the base station information of the target device exists in each base station information of the punch-in range data.
[0037] Optionally, the clock-in module is specifically used for:
[0038] Extracting target base station data corresponding to the base station information of the target device;
[0039] In the base station data of each base station information of the punch-in range data, query the base station data corresponding to the target base station data;
[0040] In the case that base station data corresponding to the target base station data exists, it is determined that the target device of the base station information corresponding to the target base station data has successfully clocked in.
[0041] Optionally, the clock-in range data includes a core area range and a marginal area range, and the device further includes:
[0042] A determination module, configured to determine that a target device corresponding to the target device location information has successfully clocked in when the target device location information is within the core area;
[0043] A re-acquisition module is used to re-acquire the current location information of the target device when the target device location information is within the edge area and meets the preset time limit, and to determine that the target device corresponding to the current location information has successfully checked in when the current location information is within the check-in range data.
[0044] Optionally, the re-acquisition module is specifically used to:
[0045] When the location information of the target device is within the edge area, starting timing processing;
[0046] When the timing period corresponding to the timing processing meets the preset time limit, the current location information of the target device is re-acquired, and when the current location information is within the punch-in range data, it is determined that the target device corresponding to the current location information has successfully punched in.
[0047] In a third aspect, the present application provides a computer device, wherein the computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of any one of the methods in the first aspect are implemented.
[0048] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the steps of any one of the methods in the first aspect are implemented.
[0049] In a fifth aspect, the present application provides a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, the steps of any one of the methods in the first aspect are implemented.
[0050] The above positioning punch-in method, device, computer equipment and storage medium obtain preset punch-in range data, base station information of the punch-in range data, target device location information, and base station information of the target device; when the target device location information is within the punch-in range data, determine whether the base station information of the target device exists in each base station information of the punch-in range data; when the base station information of the target device exists in each base station information of the punch-in range data, determine that the target device corresponding to the target device location information has successfully punched in. By determining whether the target device location information is within the punch-in range data, and at the same time determining whether the base station information corresponding to the target device is the base station information corresponding to the punch-in range data, and when the base station information of the target device exists in each base station information corresponding to the punch-in range data, determine that the target device corresponding to the target device location information has successfully punched in, thereby improving the accuracy of positioning punch-in. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] Figure 1 A schematic diagram of a flow chart of a positioning punch-in method in an embodiment;
[0052] Figure 2 It is a structural schematic diagram of the processing steps of the data acquisition module in one embodiment;
[0053] Figure 3 is a structural schematic diagram of the processing steps of a data processing module in one embodiment;
[0054] Figure 4 It is a structural schematic diagram of the punch-in range in another embodiment;
[0055] Figure 5 A schematic diagram of a flow chart of a location check-in example in an embodiment;
[0056] Figure 6 It is a structural block diagram of a positioning punching device in one embodiment;
[0057] Figure 7 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0058] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0059] The positioning punch-in method provided in the embodiment of the present application can be applied to a terminal, a server, or a system including a terminal and a server, and is implemented through the interaction between the terminal and the server. The terminal may include, but is not limited to, various personal computers, laptops, tablet computers, etc. The terminal determines whether the target device location information is within the punch-in range data based on multiple point data, and at the same time determines whether the base station information corresponding to the target device is the base station information corresponding to the punch-in range data, and when the base station information of the target device exists in the base station information corresponding to the punch-in range data, it determines that the target device corresponding to the target device location information has successfully punched in, thereby improving the accuracy of the punch-in judgment.
[0060] In one embodiment, Figure 1 As shown, a positioning punch-in method is provided, which is described by taking the method applied to a terminal as an example, and includes the following steps:
[0061] Step S101, obtaining preset punch-in range data, base station information of the punch-in range data, target device location information, and base station information of the target device.
[0062] In this embodiment, the terminal obtains the radius of the punch-in range data of the place where the user needs to punch in through the user's authorization, and obtains the punch-in longitude and latitude range with the punch-in place as the center and the punch-in range radius as the radius in the geodetic coordinate system according to the punch-in range data radius, and uses the punch-in longitude and latitude range as the punch-in range data. Among them, the longitude and latitude range includes multiple longitude and latitude data. According to the punch-in longitude and latitude range, the terminal obtains the base station information connected to the device closest to the punch-in longitude and latitude range, and uses the base station information as the base station information of the punch-in range data. Among them, the base station information connected to the device can be LAC (location area code) and CID (Customer Identity, platform version). When the target device needs to perform a punch-in operation, the terminal responds to the punch-in request operation of the target device, obtains the longitude and latitude data of the target device when sending the punch-in request, and uses the longitude and latitude data as the location information of the target device. The terminal uses the base station information connected to the target device as the base station information of the target device.
[0063] Step S102: when the location information of the target device is within the punch-in range data, determine whether the base station information of the target device exists in the base station information of the punch-in range data.
[0064] In this embodiment, the terminal determines whether the latitude and longitude data of the target device are within the latitude and longitude range of the punch-in range data based on the latitude and longitude data of the target device. If the latitude and longitude data of the target device are not within the latitude and longitude range of the punch-in range data, the terminal sends a text message such as "Punch in failed, please punch in again" to the display port of the target device. If the latitude and longitude data of the target device are within the latitude and longitude range of the punch-in range data, the terminal determines whether the base station information of the target device exists in the base station information of the punch-in range data.
[0065] Step S103, when the base station information of the target device exists in the base station information of the clock-in range data, it is determined that the target device corresponding to the target device location information has clocked in successfully.
[0066] In this embodiment, when the base station information of the clock-in range data does not include the base station information of the target device, the terminal sends a text message such as "The current location is a virtual location, clock-in is prohibited, please clock-in again" to the display port of the target device. When the base station information of the target device exists in the base station information of the clock-in range data, the terminal sends the clock-in request sent by the target device to the server where the clock-in location is located, and records the clock-in time of the target device and the device number of the target device. Then the terminal sends a text message such as "Card-in successful" to the display port of the target device.
[0067] Based on the above scheme, whether the target device location information is within the check-in range data is judged through multiple point data, and whether the base station information corresponding to the target device is the base station information corresponding to the check-in range data is judged. If the base station information of the target device exists in the base station information corresponding to the check-in range data, it is determined that the target device corresponding to the target device location information has successfully checked in, thereby improving the accuracy of positioning and checking in.
[0068] Optionally, after obtaining the punch-in range data and the base station information of the punch-in range data, it also includes: collecting the structured data of the punch-in range data and the structured data of the base station information within the punch-in range data through a data collection model; digitizing the structured data of the punch-in range data through a data processing model to obtain the location range data of the punch-in range data; digitizing the structured data of the base station information through a data processing model to obtain the base station data of the base station information.
[0069] In this embodiment, after the terminal obtains the punch-in range data and the base station information of the punch-in range data, Figure 2 As shown, through the data collection model, the latitude and longitude range of the punch-in range data is structured to obtain the structured data of the punch-in range data, and the terminal structures the base station information corresponding to the punch-in range data to obtain the structured data of the base station information. Structured data is the structured processing of unstructured data in the database, that is, the conversion and storage of the unstructured data in the database. Structuring the unstructured data allows the subsequent query of the unstructured data to be directly extracted from the database.
[0070] Specifically, for the data collection model, the terminal collects the information of all base stations within the punch-in range data and the longitude and latitude range within the punch-in range data through the model, and obtains the triple information of LAC and CID (i.e., base station information) of all base stations within the punch-in range data and the longitude and latitude range within the punch-in range data by institutional processing of the above data. The specific processing process is: the terminal collects the information of all base stations in a punch-in area and the longitude and latitude data of the punch-in area, and synthesizes the LAC and CID data of all base stations after the above sorting into a unified triple information. The terminal summarizes the longitude and latitude range, and the triple information of the sorted LAC and CID data of the base station, and stores the summarized data set in the database to obtain the structured data of the punch-in range data and the structured data of the base station information.
[0071] Terminal, such as Figure 3As shown, the structured data of the punch-in range data is processed into data through the data processing model to obtain the location range data of the punch-in range data. Specifically, the location range data is the data of each longitude and latitude point in the longitude and latitude range corresponding to the punch-in range data. The terminal processes the structured data of the base station information into data through the data processing model to obtain the base station data of the base station information. The specific base station data is the data corresponding to the address information of the base station and the data corresponding to the version information of the base station.
[0072] Specifically, for the data processing module, the terminal performs digital processing on the triple information of the LAC and CID data of the base station structured in the database, as well as the longitude and latitude range information of the punch-in range data, and performs digital processing on each longitude and latitude point of the punch-in range data to obtain the LAC data and CID data in the triple information of the longitude and latitude data LAC and CID data of each longitude and latitude point, and performs digital processing on them respectively to obtain the LAC data of the base station (i.e., data corresponding to the address information of the base station) and CID data (i.e., data corresponding to the version information of the base station). The terminal uses the digitally processed LAC data and CID data as the base station data of the base station. After obtaining the above data, the terminal stores the digitally processed data back into the database.
[0073] Based on the above solution, by performing structured processing and digitized processing on the clock-in range data and the base station information of the clock-in range data, the accuracy of subsequent judgment on whether the target device has successfully clocked in is improved.
[0074] Optionally, the punch-in range data includes location range data, and the location range data is the longitude and latitude data of the longitude and latitude range corresponding to the punch-in range data; when the target device location information is within the punch-in range data, determine whether the base station information of the target device exists in each base station information of the punch-in range data, including: extracting the target longitude and latitude data of the target device location information, and determining whether the location range data of the punch-in range data includes the target longitude and latitude data; when the location range data of the punch-in range data includes the target longitude and latitude data, determine whether the base station information of the target device exists in each base station information of the punch-in range data.
[0075] In this embodiment, after acquiring the target device location information, the terminal extracts the longitude and latitude data contained in the target device location information. The terminal queries the data of each longitude and latitude point in the longitude and latitude range of the clock-in range data in the database to see whether there is the longitude and latitude data contained in the target device location information. In the case that the longitude and latitude data contained in the target device location information is not present in the data of each longitude and latitude point in the longitude and latitude range of the clock-in range data, the terminal sends a text message such as "Card-in failed, please clock-in again" to the display port of the target device. In the case that the longitude and latitude data contained in the target device location information is present in the data of each longitude and latitude point in the longitude and latitude range of the clock-in range data, the terminal determines whether there is the base station information of the target device in the base station information of the clock-in range data.
[0076] Based on the above scheme, by judging whether the location information of the target device is within the punch-in range data, it can be ensured that the target device is within the punch-in range data to complete the preliminary confirmation of the punch-in.
[0077] Optionally, when the base station information of the target device exists in each base station information of the check-in range data, determining that the target device corresponding to the target device location information has successfully checked in includes: extracting the target base station data corresponding to the base station information of the target device; querying the base station data corresponding to the target base station data in the base station data of each base station information of the check-in range data; when the base station data corresponding to the target base station data exists, determining that the target device of the base station information corresponding to the target base station data has successfully checked in.
[0078] In this embodiment, when the data of each longitude and latitude point in the longitude and latitude range of the punch-in range data contains the longitude and latitude data included in the location information of the target device, the terminal extracts the address information data and the version information data of the base station information according to the acquired base station information of the target device. The terminal queries the data corresponding to the address information of the base station of the punch-in range data in the database and the data corresponding to the version information of the base station of the punch-in range data to see whether there is the address information data and the version information data of the base station information of the target device. When the data corresponding to the address information of the base station of the punch-in range data in the database and the data corresponding to the version information of the base station of the punch-in range data do not contain the address information data and the version information data of the base station information of the target device, the terminal sends a text message such as "punch-in failed, please punch-in again" to the display port of the target device. When the data corresponding to the address information of the base station of the punch-in range data in the database and the data corresponding to the version information of the base station of the punch-in range data contain the address information data and the version information data of the base station information of the target device, the terminal determines that the target device of the base station information has punched in successfully.
[0079] Based on the above scheme, whether the target device location information is within the check-in range data is judged through multiple point data, and whether the base station information corresponding to the target device is the base station information corresponding to the check-in range data is judged. If the base station information of the target device exists in the base station information corresponding to the check-in range data, it is determined that the target device corresponding to the target device location information has successfully checked in, thereby improving the accuracy of positioning and checking in.
[0080] Optionally, the check-in range data includes a core area range and an edge area range. When the base station information of the target device exists in the base station information of each base station information of the check-in range data, it also includes: when the target device location information is within the core area range, determining that the target device corresponding to the target device location information has successfully checked in; when the target device location information is within the edge area range and meets a preset time limit, re-acquiring the current location information of the target device, and when the current location information is within the check-in range data, determining that the target device corresponding to the current location information has successfully checked in.
[0081] In this embodiment, Figure 4 As shown, the clock-in range data includes the core area range and the edge area range. The terminal divides the data of the longitude and latitude points of the longitude and latitude range of the clock-in range data in the database into the data of each longitude and latitude point of the core area and the data of each longitude and latitude point of the edge area. When the base station information of the target device exists in the base station information of the clock-in range data, the terminal determines whether the longitude and latitude data of the target device location information is among the data of each longitude and latitude point of the core area range. When the longitude and latitude data of the target device location information is among the data of each longitude and latitude point of the core area range, the terminal determines that the target device corresponding to the target device location information has successfully clocked in. When the longitude and latitude data of the target device location information is among the data of each longitude and latitude point of the non-core area range, the terminal determines that the longitude and latitude data of the target device location information is among the data of each longitude and latitude point of the edge area. The terminal presets a time limit for re-verifying the target location information, and when the preset time limit is met, the terminal re-acquires the current location information of the target device, and when the current location information of the target device is in the clock-in range data, it determines that the target device corresponding to the current location information has successfully clocked in. The specific operation of re-obtaining the current location information of the target device and determining whether the target device has successfully clocked in based on the current location information will be described in detail later.
[0082] Based on the above scheme, by judging whether the location information of the target device is in the edge area, and obtaining the current location information of the target device in the edge area again, when the current location information of the target device is within the punch-in range data, it is determined that the target device corresponding to the current location information has successfully punched in, thereby improving the prevention of virtual punch-in behavior at the edge.
[0083] Optionally, when the target device location information is within the edge area and meets the preset time limit, the current location information of the target device is reacquired, and when the current location information is within the punch-in range data, it is determined that the target device corresponding to the current location information has successfully punched in, including: when the target device location information is within the edge area, starting the timing operation; when the timing period corresponding to the timing operation meets the preset time limit, the current location information of the target device is reacquired, and when the current location information is within the punch-in range data, it is determined that the target device corresponding to the current location information has successfully punched in.
[0084] In this embodiment, when the longitude and latitude data of the target device location information are among the data of various longitude and latitude points in the non-core area, the terminal presets a time limit for re-verifying the target location information. When the terminal determines that the target device location information is in the edge area, the terminal starts the timing operation. When the timing period corresponding to the timing operation meets the preset time limit, the terminal re-acquires the current location information of the target device, and determines whether the current location information of the target device is within the punch-in range data. When the current location information of the target device is not within the punch-in range data, the terminal sends a text message such as "Punch-in failed, please punch-in again" to the display port of the target device. When the current location information of the target device is within the punch-in range data, the terminal determines that the target device corresponding to the current location information has successfully punched in.
[0085] Based on the above scheme, by judging whether the location information of the target device is in the edge area, and obtaining the current location information of the target device in the edge area again, when the current location information of the target device is within the punch-in range data, it is determined that the target device corresponding to the current location information has successfully punched in, thereby improving the prevention of virtual punch-in behavior at the edge.
[0086] This application also provides a location punch-in example, such as Figure 5 As shown, the specific processing process includes the following steps:
[0087] Step S501, obtaining preset punch-in range data, base station information of the punch-in range data, target device location information, and base station information of the target device.
[0088] Step S502: Collect structured data of the punch-in range data and structured data of the base station information within the punch-in range data through a data collection model.
[0089] Step S503: Data processing is performed on the structured data of the punch-in range data through a data processing model to obtain the location range data of the punch-in range data.
[0090] Step S504: Data-processing the structured data of the base station information through a data processing model to obtain base station data of the base station information.
[0091] Step S505, extracting the target longitude and latitude data of the target device location information, and determining whether the location range data of the punch-in range data includes the target longitude and latitude data.
[0092] Step S506, when the location range data of the punch-in range data includes the target longitude and latitude data, it is determined whether the base station information of the target device exists in the base station information of the punch-in range data.
[0093] Step S507: extracting target base station data corresponding to the base station information of the target device.
[0094] Step S508, query the base station data corresponding to the target base station data in the base station data of each base station information of the punch-in range data.
[0095] Step S509, when there is base station data corresponding to the target base station data, query the area range of the punch-in range where the target device location information is located.
[0096] Step S510: When the target device location information is within the core area, it is determined that the target device corresponding to the target device location information has successfully clocked in.
[0097] Step S511, when the target device location information is within the edge area, start timing processing.
[0098] Step S512, when the timing period corresponding to the timing processing meets the preset time limit, the current location information of the target device is re-acquired, and when the current location information is within the punch-in range data, it is determined that the target device corresponding to the current location information has successfully punched in.
[0099] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0100] Based on the same inventive concept, the embodiment of the present application also provides a positioning punching device for implementing the positioning punching method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more positioning punching device embodiments provided below can refer to the limitations of the positioning punching method above, and will not be repeated here.
[0101] In one embodiment, Figure 6 As shown, a positioning punching device is provided, including: an acquisition module 610, a judgment module 620 and a punching module 630, wherein:
[0102] An acquisition module 610 is used to obtain the punch-in range data, the base station information of the punch-in range data, the target device location information, and the base station information of the target device in a preset manner;
[0103] A determination module 620 is used to determine whether the base station information of the target device exists in the base station information of the punch-in range data when the location information of the target device is within the punch-in range data;
[0104] The clock-in module 630 is used to determine that the target device corresponding to the target device location information has successfully clocked in when the base station information of the target device exists in the base station information of the clock-in range data.
[0105] Optionally, the device further comprises:
[0106] A collection module, used to collect structured data of the punch-in range data and structured data of the base station information within the punch-in range data through a data collection model;
[0107] A processing module, used for digitizing the structured data of the punch-in range data through a data processing model to obtain location range data of the punch-in range data;
[0108] The data module is used to perform data processing on the structured data of the base station information through a data processing model to obtain the base station data of the base station information.
[0109] Optionally, the punch-in range data includes location range data, and the location range data is the longitude and latitude data of the longitude and latitude range corresponding to the punch-in range data; the judgment module 620 is specifically used to:
[0110] Extract the target longitude and latitude data of the target device location information, and determine whether the location range data of the punch-in range data contains the target longitude and latitude data;
[0111] When the location range data of the punch-in range data includes the target longitude and latitude data, it is determined whether the base station information of the target device exists in the base station information of the punch-in range data.
[0112] Optionally, the clock-in module 630 is specifically used for:
[0113] Extract target base station data corresponding to base station information of target device;
[0114] In the base station data of each base station information in the punch-in range data, query the base station data corresponding to the target base station data;
[0115] In the case that base station data corresponding to the target base station data exists, it is determined that the target device of the base station information corresponding to the target base station data has successfully clocked in.
[0116] Optionally, the clock-in range data includes a core area range and a peripheral area range, and the device further includes:
[0117] A determination module, used to determine that the target device corresponding to the target device location information has successfully clocked in when the target device location information is within the core area;
[0118] The re-acquisition module is used to re-acquire the current location information of the target device when the target device location information is within the edge area and meets the preset time limit, and determine that the target device corresponding to the current location information has successfully clocked in when the current location information is within the clock-in range data.
[0119] Optional, retrieval module, specifically used to:
[0120] When the location information of the target device is within the edge area, the timing process starts;
[0121] When the timing period corresponding to the timing processing meets the preset time limit, the current location information of the target device is re-acquired, and when the current location information is within the punch-in range data, it is determined that the target device corresponding to the current location information has successfully punched in.
[0122] Each module in the above-mentioned positioning punching device can be implemented in whole or in part by software, hardware and their combination. Each module can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the corresponding operations of each module above.
[0123] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 7As shown. The computer device includes a processor, a memory, a communication interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a positioning punch-in method is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.
[0124] Those skilled in the art will understand that Figure 7 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0125] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:
[0126] Obtaining preset punch-in range data, base station information of the punch-in range data, target device location information, and base station information of the target device;
[0127] When the target device location information is within the punch-in range data, determining whether the base station information of the target device exists in each base station information of the punch-in range data;
[0128] When the base station information of the target device exists in the base station information of the clock-in range data, it is determined that the target device corresponding to the target device location information has clocked in successfully.
[0129] Optionally, after acquiring the clock-in range data and the base station information of the clock-in range data, the method further includes:
[0130] Collecting structured data of the punch-in range data and structured data of base station information within the punch-in range data through a data collection model;
[0131] The structured data of the punch-in range data is processed into data by a data processing model to obtain the position range data of the punch-in range data;
[0132] The structured data of the base station information is processed into data by the data processing model to obtain the base station data of the base station information.
[0133] Optionally, the punch-in range data includes location range data, and the location range data is longitude and latitude data of a longitude and latitude range corresponding to the punch-in range data; when the location information of the target device is within the punch-in range data, determining whether the base station information of the target device exists in each base station information of the punch-in range data includes:
[0134] Extracting the target longitude and latitude data of the target device location information, and determining whether the location range data of the punch-in range data includes the target longitude and latitude data;
[0135] When the location range data of the punch-in range data includes the target longitude and latitude data, it is determined whether the base station information of the target device exists in each base station information of the punch-in range data.
[0136] Optionally, when the base station information of the target device exists in the base station information of the clock-in range data, determining that the target device corresponding to the target device location information has successfully clocked in includes:
[0137] Extracting target base station data corresponding to the base station information of the target device;
[0138] In the base station data of each base station information of the punch-in range data, query the base station data corresponding to the target base station data;
[0139] In the case that base station data corresponding to the target base station data exists, it is determined that the target device of the base station information corresponding to the target base station data has successfully clocked in.
[0140] Optionally, the punch-in range data includes a core area range and a peripheral area range, and when the base station information of the target device exists in each base station information of the punch-in range data, the further comprising:
[0141] When the target device location information is within the core area, determining that the target device corresponding to the target device location information has successfully clocked in;
[0142] When the target device location information is within the edge area and meets the preset time limit, the current location information of the target device is reacquired, and when the current location information is within the punch-in range data, it is determined that the target device corresponding to the current location information has successfully punched in.
[0143] Optionally, when the location information of the target device is within the edge area and meets a preset time limit, reacquiring the current location information of the target device, and when the current location information is within the punch-in range data, determining that the target device corresponding to the current location information has successfully punched in, includes:
[0144] When the location information of the target device is within the edge area, starting timing processing;
[0145] When the timing period corresponding to the timing processing meets the preset time limit, the current location information of the target device is re-acquired, and when the current location information is within the punch-in range data, it is determined that the target device corresponding to the current location information has successfully punched in.
[0146] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0147] Obtaining preset punch-in range data, base station information of the punch-in range data, target device location information, and base station information of the target device;
[0148] When the target device location information is within the punch-in range data, determining whether the base station information of the target device exists in each base station information of the punch-in range data;
[0149] When the base station information of the target device exists in the base station information of the clock-in range data, it is determined that the target device corresponding to the target device location information has clocked in successfully.
[0150] Optionally, after acquiring the clock-in range data and the base station information of the clock-in range data, the method further includes:
[0151] Collecting structured data of the punch-in range data and structured data of base station information within the punch-in range data through a data collection model;
[0152] The structured data of the punch-in range data is processed into data by a data processing model to obtain the position range data of the punch-in range data;
[0153] The structured data of the base station information is processed into data by the data processing model to obtain the base station data of the base station information.
[0154] Optionally, the punch-in range data includes location range data, and the location range data is longitude and latitude data of a longitude and latitude range corresponding to the punch-in range data; when the location information of the target device is within the punch-in range data, determining whether the base station information of the target device exists in each base station information of the punch-in range data includes:
[0155] Extracting the target longitude and latitude data of the target device location information, and determining whether the location range data of the punch-in range data includes the target longitude and latitude data;
[0156] When the location range data of the punch-in range data includes the target longitude and latitude data, it is determined whether the base station information of the target device exists in each base station information of the punch-in range data.
[0157] Optionally, when the base station information of the target device exists in the base station information of the clock-in range data, determining that the target device corresponding to the target device location information has successfully clocked in includes:
[0158] Extracting target base station data corresponding to the base station information of the target device;
[0159] In the base station data of each base station information of the punch-in range data, query the base station data corresponding to the target base station data;
[0160] In the case that base station data corresponding to the target base station data exists, it is determined that the target device of the base station information corresponding to the target base station data has successfully clocked in.
[0161] Optionally, the punch-in range data includes a core area range and a peripheral area range, and when the base station information of the target device exists in each base station information of the punch-in range data, the further comprising:
[0162] When the target device location information is within the core area, determining that the target device corresponding to the target device location information has successfully clocked in;
[0163] When the target device location information is within the edge area and meets the preset time limit, the current location information of the target device is reacquired, and when the current location information is within the punch-in range data, it is determined that the target device corresponding to the current location information has successfully punched in.
[0164] Optionally, when the location information of the target device is within the edge area and meets a preset time limit, reacquiring the current location information of the target device, and when the current location information is within the punch-in range data, determining that the target device corresponding to the current location information has successfully punched in, includes:
[0165] When the location information of the target device is within the edge area, starting timing processing;
[0166] When the timing period corresponding to the timing processing meets the preset time limit, the current location information of the target device is re-acquired, and when the current location information is within the punch-in range data, it is determined that the target device corresponding to the current location information has successfully punched in.
[0167] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:
[0168] Obtaining preset punch-in range data, base station information of the punch-in range data, target device location information, and base station information of the target device;
[0169] When the target device location information is within the punch-in range data, determining whether the base station information of the target device exists in each base station information of the punch-in range data;
[0170] When the base station information of the target device exists in the base station information of the clock-in range data, it is determined that the target device corresponding to the target device location information has clocked in successfully.
[0171] Optionally, after acquiring the clock-in range data and the base station information of the clock-in range data, the method further includes:
[0172] Collecting structured data of the punch-in range data and structured data of base station information within the punch-in range data through a data collection model;
[0173] The structured data of the punch-in range data is processed into data by a data processing model to obtain the position range data of the punch-in range data;
[0174] The structured data of the base station information is processed into data by the data processing model to obtain the base station data of the base station information.
[0175] Optionally, the punch-in range data includes location range data, and the location range data is longitude and latitude data of a longitude and latitude range corresponding to the punch-in range data; when the location information of the target device is within the punch-in range data, determining whether the base station information of the target device exists in each base station information of the punch-in range data includes:
[0176] Extracting the target longitude and latitude data of the target device location information, and determining whether the location range data of the punch-in range data includes the target longitude and latitude data;
[0177] When the location range data of the punch-in range data includes the target longitude and latitude data, it is determined whether the base station information of the target device exists in each base station information of the punch-in range data.
[0178] Optionally, when the base station information of the target device exists in the base station information of the clock-in range data, determining that the target device corresponding to the target device location information has successfully clocked in includes:
[0179] Extracting target base station data corresponding to the base station information of the target device;
[0180] In the base station data of each base station information of the punch-in range data, query the base station data corresponding to the target base station data;
[0181] In the case that base station data corresponding to the target base station data exists, it is determined that the target device of the base station information corresponding to the target base station data has successfully clocked in.
[0182] Optionally, the punch-in range data includes a core area range and a peripheral area range, and when the base station information of the target device exists in each base station information of the punch-in range data, the further comprising:
[0183] When the target device location information is within the core area, determining that the target device corresponding to the target device location information has successfully clocked in;
[0184] When the target device location information is within the edge area and meets the preset time limit, the current location information of the target device is reacquired, and when the current location information is within the punch-in range data, it is determined that the target device corresponding to the current location information has successfully punched in.
[0185] Optionally, when the location information of the target device is within the edge area and meets a preset time limit, reacquiring the current location information of the target device, and when the current location information is within the punch-in range data, determining that the target device corresponding to the current location information has successfully punched in, includes:
[0186] When the location information of the target device is within the edge area, starting timing processing;
[0187] When the timing period corresponding to the timing processing meets the preset time limit, the current location information of the target device is re-acquired, and when the current location information is within the punch-in range data, it is determined that the target device corresponding to the current location information has successfully punched in.
[0188] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.
[0189] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0190] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0191] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A positioning clock-in method, characterized in that: The method comprises: Obtaining preset punch-in range data, base station information of the punch-in range data, target device location information, and base station information of the target device; Collecting structured data of the punch-in range data and structured data of base station information within the punch-in range data through a data collection model; The structured data of the punch-in range data is processed into data by a data processing model to obtain the position range data of the punch-in range data; The structured data of the base station information is processed into data by the data processing model to obtain base station data of the base station information; the base station data includes data corresponding to the address information of the base station and data corresponding to the version information of the base station; In the case where the target device location information is within the punch-in range data, determining whether the base station information of the target device exists in each base station information of the punch-in range data; the punch-in range data includes a core area range and a marginal area range; If the base station information of the target device exists in each base station information of the punch-in range data and the location information of the target device is within the core area, determining that the target device corresponding to the location information of the target device has successfully punched in; When the base station information of the target device exists in each base station information of the check-in range data, the location information of the target device is within the edge area, and the preset time limit is met, the current location information of the target device is re-acquired, and when the current location information is within the check-in range data, it is determined that the target device corresponding to the current location information has successfully checked in.
2. The method according to claim 1, characterized in that The punch-in range data includes location range data, and the location range data is the longitude and latitude data of the longitude and latitude range corresponding to the punch-in range data; when the location information of the target device is within the punch-in range data, determining whether the base station information of the target device exists in each base station information of the punch-in range data, comprises: Extracting the target longitude and latitude data of the target device location information, and determining whether the location range data of the punch-in range data includes the target longitude and latitude data; When the location range data of the punch-in range data includes the target longitude and latitude data, it is determined whether the base station information of the target device exists in each base station information of the punch-in range data.
3. The method according to claim 1, characterized in that When the base station information of the target device exists in the base station information of the punch-in range data, determining that the target device corresponding to the target device location information has successfully punched in includes: Extracting target base station data corresponding to the base station information of the target device; In the base station data of each base station information of the punch-in range data, query the base station data corresponding to the target base station data; In the case that base station data corresponding to the target base station data exists, it is determined that the target device of the base station information corresponding to the target base station data has successfully clocked in.
4. The method according to claim 1, characterized in that: The step of reacquiring the current location information of the target device when the location information of the target device is within the edge area and meets a preset time limit, and determining that the target device corresponding to the current location information has successfully clocked in when the current location information is within the core area, includes: When the location information of the target device is within the edge area, starting timing processing; When the timing period corresponding to the timing process meets the preset time limit, the current location information of the target device is re-acquired, and when the current location information is within the core area, it is determined that the target device corresponding to the current location information has successfully clocked in.
5. A positioning punching device, characterized in that: The device comprises: An acquisition module is used to acquire preset punch-in range data, base station information of the punch-in range data, target device location information, and base station information of the target device; through a data acquisition model, the structured data of the punch-in range data and the structured data of the base station information within the punch-in range data are acquired; through a data processing model, the structured data of the punch-in range data is digitized to obtain the location range data of the punch-in range data; through the data processing model, the structured data of the base station information is digitized to obtain the base station data of the base station information; the base station data includes data corresponding to the address information of the base station and data corresponding to the version information of the base station; A judgment module, used for judging whether the base station information of the target device exists in each base station information of the punch-in range data when the location information of the target device is within the punch-in range data; the punch-in range data includes a core area range and a marginal area range; A punch-in module is used to determine that the target device corresponding to the target device location information has successfully checked in, if the base station information of the target device exists in each base station information of the punch-in range data and the target device location information is within the core area; to re-acquire the current location information of the target device, if the base station information of the target device exists in each base station information of the punch-in range data, the target device location information is within the edge area, and a preset time limit is met; and to determine that the target device corresponding to the current location information has successfully checked in, if the current location information is within the punch-in range data.
6. The device according to claim 5, characterized in that The punch-in range data includes location range data, and the location range data is the longitude and latitude data of the longitude and latitude range corresponding to the punch-in range data; the judgment module is specifically used to: Extracting the target longitude and latitude data of the target device location information, and determining whether the location range data of the punch-in range data includes the target longitude and latitude data; When the location range data of the punch-in range data includes the target longitude and latitude data, it is determined whether the base station information of the target device exists in each base station information of the punch-in range data.
7. The device according to claim 5, characterized in that The device also includes: A collection module, used for collecting structured data of the punch-in range data and structured data of base station information within the punch-in range data through a data collection model; A processing module, used for performing data processing on the structured data of the punch-in range data through a data processing model to obtain position range data of the punch-in range data; The data conversion module is used to perform data conversion on the structured data of the base station information through the data processing model to obtain the base station data of the base station information.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 4 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 4 are implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 4 are implemented.
Citation Information
Patent Citations
Position coordinate-based method of checking attendance of outworkers
CN104732603A
Method and system for checking mobile attendance position
CN114241612A