Calculation method and query method for occupational and residential places
By converting latitude and longitude data into Geohash encoding, the frequency and time distinction in the grid are determined, and the problems of low calculation efficiency and insufficient coverage of employment and residence in the existing technology are solved, and efficient and accurate calculation and query of employment and residence are achieved, reducing the problem of low calculation and inspection of employment and residence. maintenance costs.
Patent Information
- Application Number
- CN202311657987.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-05
- Publication Date
- 2024-11-19
AI Technical Summary
In the prior art, the calculation efficiency of employment and residence is low, the maintenance cost is high, the coverage rate is low, and the use is limited, which is mainly due to the dependence on POI data for binding and iterative calculation, resulting in low computing efficiency and insufficient coverage rate.
Use Geohash encoding to convert latitude and longitude data into grid encoding, count the frequency of occurrence of each user in each Geohash grid, and distinguish the workplace and residence according to the occurrence time, and perform parallel calculations through equal frequency sampling to reduce dependence on POI. , improve computing efficiency and coverage.
It improves computing efficiency and coverage, reduces maintenance costs, can more accurately reflect users' work and living habits, and supports querying of multiple jobs and residences, provides confidence assessment, and improves external communication efficiency.
Smart Images

Figure CN118981572A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of big data, and in particular to a method for calculating and querying a place of work and residence. Background Art
[0002] When the longitude and latitude information is collected with the user's authorization, the user's workplace and residence are inferred through a large amount of longitude and latitude information and with the user's authorization, which is referred to as work-residence.
[0003] The current common practice is to aggregate the longitude and latitude data to obtain the longitude and latitude information of the user's workplace and residence, and then bind it with the existing POI to determine the name of the user's workplace and residence.
[0004] The traditional job-residence calculation algorithm has low computational efficiency, high maintenance cost, low coverage and limited use. Summary of the invention
[0005] In view of the above problems, the present application is proposed to provide a method for calculating and querying a place of work and residence that overcomes the above problems or at least partially solves the above problems, including:
[0006] A method for calculating a place of residence and a place of work, the method being applied to calculating a user's place of residence and place of work, comprising:
[0007] Get the user's latitude and longitude data within a preset period;
[0008] Determining coded data according to the latitude and longitude data;
[0009] The user's workplace and residence information is determined based on the coded data.
[0010] Preferably, the step of determining the user's workplace and residence information based on the coded data includes:
[0011] Determining the confidence level of the user's workplace and residence based on the coded data;
[0012] The user's workplace and residence information is determined based on the confidence level of the user's workplace and residence.
[0013] Preferably, the step of determining the coded data according to the latitude and longitude data comprises:
[0014] Preprocessing is performed based on the latitude and longitude data to determine processing data;
[0015] The coded data is determined by converting the processed data.
[0016] Preferably, the step of preprocessing and determining the processed data according to the latitude and longitude data comprises:
[0017] Filtering according to the latitude and longitude data to determine the working day data;
[0018] Marking and determining time period data according to the working day data;
[0019] The processing data is determined by sampling according to the time period data.
[0020] Preferably, the step of determining the confidence level of the user's workplace and residence based on the coded data comprises:
[0021] Performing frequency sorting according to the coded data to determine frequency sorting data;
[0022] The confidence level of the user's workplace and residence is determined based on the frequency ranking data.
[0023] To achieve this, the application also includes a method for querying a user's residence and occupation, which includes:
[0024] Receiving location information to be queried, and determining whether the location information is coded data;
[0025] If yes, determining whether the coded data meets the preset reliability;
[0026] If it meets the requirements, the work and residence information of the user who meets the requirements is searched according to the coding data.
[0027] Preferably, the step of determining whether the position information is coded data comprises:
[0028] If not, the position information is converted into coded data.
[0029] To implement the present application, a device for calculating the residence and occupation of a user is also provided. The device is used to calculate the residence and occupation of a user, including:
[0030] The acquisition module is used to obtain the user's latitude and longitude data within a preset period;
[0031] An encoding module, used to determine encoding data according to the latitude and longitude data;
[0032] The work and residence information module is used to determine the user's work and residence information based on the coded data.
[0033] To implement the present application, a device for querying a residence and a job is also provided. The device is used to query a user's residence and a job, and includes:
[0034] A location information module, used to receive location information to be queried and determine whether the location information is coded data;
[0035] A preset reliability module, used for determining whether the coded data meets the preset reliability;
[0036] The work and residence information search module is used to search for the work and residence information of users who meet the conditions according to the coded data if they meet the conditions.
[0037] To implement the present application, a computer electronic device is also included, including a processor, a memory, and a computer program stored in the memory and capable of running on the processor, and when the computer program is executed by the processor, the steps of the work-residence calculation method as described above are implemented.
[0038] This application has the following advantages:
[0039] In the embodiments of the present application, relative to the problems of "low computational efficiency, high maintenance cost, low coverage, and limited use" in the prior art, the present application provides a solution for converting longitude and latitude into Geohash codes, counting the frequency of each user's appearance in each Geohash grid, and then distinguishing the workplace and residence based on the appearance time, specifically: obtaining the longitude and latitude data of the user within a preset period; determining the coding data based on the longitude and latitude data; determining the user's workplace and residence information based on the coding data. The present application uses data from multiple points, and then merges them for higher accuracy, and the merging method is equal-frequency sampling. The present application only needs to convert each longitude and latitude into Geohash codes, and does not need to iteratively calculate the longitude and latitude, so it can be calculated in parallel, which greatly improves the computing efficiency and also saves cluster resources. Since the workplace and residence calculated by this method are marked to the Geohash grid, it does not rely on POI or fence data, so it can cover all users who can collect data. Given longitude and latitude or fence, after being converted into Geohash code, the user's workplace and residence can be queried with high efficiency, without relying on POI binding, which effectively improves the efficiency of external communication. This method only extracts the longitude and latitude data of China's statutory working days for calculation, so the calculated results can better reflect the user's work and living habits. The ordinary calculation method only calculates one workplace or residence. The current method can retain the second workplace and second residence as needed. The current method can give a frequency value, which can be used as a confidence evaluation indicator. The business can extract the required confidence level data according to the actual situation. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the technical solution of the present application, the drawings required for use in the description of the present application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0041] Figure 1 This is a flowchart of a method for calculating a job-residence location provided in one embodiment of the present application;
[0042] Figure 2 This is a flowchart of a method for querying a job and residence provided by an embodiment of the present application;
[0043] Figure 3 It is a structural block diagram of a job-residence calculation device provided by an embodiment of the present application;
[0044] Figure 4 This is a structural block diagram of a job-residence query device provided by an embodiment of the present application;
[0045] Figure 5 This is a flowchart of a method for calculating a job-residence location provided in one embodiment of the present application;
[0046] Figure 6 This is a flowchart of a method for querying a job and residence provided in one embodiment of the present application;
[0047] Figure 7 is a structural schematic diagram of a computer device provided by an embodiment of the present invention;
[0048] 12. Computer equipment; 14. External devices; 16. Processing unit; 18. Bus; 20. Network adapter; 22. I / O interface; 24. Display; 28. Memory; 30. Random access memory; 32. Cache memory; 34. Storage system; 40. Program / utility; 42. Program module. DETAILED DESCRIPTION
[0049] In order to make the objects, features and advantages of the present application more obvious and understandable, the present application is further described in detail below in conjunction with the accompanying drawings and specific implementation methods. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0050] The inventors analyzed the prior art and found that after the user authorized and collected the longitude and latitude information, we can infer the user's workplace and residence through a large amount of longitude and latitude information. The current common practice is to aggregate the longitude and latitude data, obtain the longitude and latitude information of the user's workplace and residence, and then bind it with the existing POI to determine the name of the user's workplace and residence.
[0051] 1. The existing technology has low computational efficiency. The aggregation algorithm requires multiple iterative calculations, so the computational efficiency is low and it takes more time and cluster resources.
[0052] 2. The existing technology has high maintenance costs. Since the aggregated longitude and latitude need to be bound to the existing POIs, and POIs (Point of Interest) require a lot of manpower and material resources to collect and need to be updated regularly, the maintenance cost is very high.
[0053] 3. The existing technology has low coverage. Since POIs need to be maintained manually, there will be a problem that newly added POIs are not updated in a timely manner. At the same time, some people's work and residence are very special, such as construction sites, roadsides, etc., and it is difficult to determine the attributes of POIs, which will lead to a low user coverage rate for calculating work and residence.
[0054] 4. The existing technology is limited in use. When the longitude and latitude that need to be checked are not within the POI fence, or are not bound to the POI, the user's workplace and residence cannot be queried. Therefore, when communicating with the outside world, it is necessary to maintain the POI information first, and then re-run the historical data, which makes the use very limited.
[0055] In the embodiments of the present application, relative to the problems of "low computational efficiency, high maintenance cost, low coverage, and limited use" in the prior art, the present application provides a solution for converting longitude and latitude into Geohash codes, counting the frequency of each user's appearance in each Geohash grid, and then distinguishing the workplace and residence based on the appearance time, specifically: obtaining the longitude and latitude data of the user within a preset period; determining the coding data based on the longitude and latitude data; determining the user's workplace and residence information based on the coding data. The present application uses data from multiple points, and then merges them for higher accuracy, and the merging method is equal-frequency sampling. The present application only needs to convert each longitude and latitude into Geohash codes, and does not need to iteratively calculate the longitude and latitude, so it can be calculated in parallel, which greatly improves the computing efficiency and also saves cluster resources. Since the workplace and residence calculated by this method are marked to the Geohash grid, it does not rely on POI or fence data, so it can cover all users who can collect data. Given longitude and latitude or fence, after being converted into Geohash code, the user's workplace and residence can be queried with high efficiency, without relying on POI binding, which effectively improves the efficiency of external communication. This method only extracts the longitude and latitude data of China's statutory working days for calculation, so the calculated results can better reflect the user's work and living habits. The ordinary calculation method only calculates one workplace or residence. The current method can retain the second workplace and second residence as needed. The current method can give a frequency value, which can be used as a confidence evaluation indicator. The business can extract the required confidence level data according to the actual situation.
[0056] This application converts the longitude and latitude into Geohash codes, counts the frequency of each user appearing in each Geohash grid, and then distinguishes the workplace and residence based on the appearance time. Finally, the Geohash grid with the highest frequency of appearance is taken as the user's workplace and residence. When a query is needed, the given longitude and latitude or fence is converted into Geohash codes, and then the user's workplace and residence are queried.
[0057] This application has the following advantages:
[0058] 1. Fusion of multiple data sources. The traditional method only uses the longitude and latitude of a certain collection method, and the data is relatively limited. Currently, data from multiple points is used and then merged for higher accuracy. The merging method is equal-frequency sampling, for example, all longitude and latitude that appear every 15 minutes or every 30 minutes are calculated only once, so multiple points will only supplement the user data, and will not make the data duplicate and unavailable.
[0059] 2. High computational efficiency. Since this method only needs to convert each longitude and latitude into Geohash code, and does not require iterative calculation of the longitude and latitude, it can be calculated in parallel, greatly improving the computational efficiency and saving cluster resources.
[0060] 3. Improve coverage. Since the workplaces and residences calculated by this method are marked on the Geohash grid, it does not rely on POI or fence data, and can therefore cover all users for whom data can be collected.
[0061] 4. High query efficiency: Given longitude and latitude or fence, after being converted into Geohash code, the user's workplace and residence can be queried with high efficiency without relying on POI binding, which effectively improves the efficiency of external communication.
[0062] 5. Improve accuracy. The traditional calculation method is to take the longitude and latitude data of all days in a month, or take the data from Monday to Friday for calculation. This method will be affected by statutory holidays (for example, users go out for fun and stay in hotels), resulting in deviations in the calculation results. This method only extracts the longitude and latitude data of China's statutory working days for calculation, so the calculated results can better reflect the user's work and living habits.
[0063] 6. Add support for multiple places of work and residence. The common calculation method only calculates one place of work or residence. The current method can retain the second place of work and second place of residence as needed.
[0064] 7. Quantify confidence. The results calculated by ordinary methods cannot know the reliability. The current method can give a frequency value, which can be used as an evaluation indicator of confidence. The business can extract the required confidence level data according to the actual situation.
[0065] It should be noted that the present application refers to implementing indexing and retrieval of geographic locations by establishing a grid in geographic space. The preferred encoding data is Geohash encoding data, but it can also be various encoding methods such as S2 and H3.
[0066] Reference Figure 1 and Figure 5 , shows a flowchart of a method for calculating a job-residence location provided by an embodiment of the present application, which specifically includes the following steps:
[0067] S110, obtaining the longitude and latitude data of the user within a preset period;
[0068] S120, determining encoding data according to the latitude and longitude data;
[0069] S130. Determine the user's workplace and residence information based on the coded data.
[0070] Next, the method for calculating the work-residence location in this exemplary embodiment will be further described.
[0071] As described in the above step S110, the longitude and latitude data of the user within a preset period is obtained.
[0072] In an embodiment of the present invention, the specific process of "obtaining the longitude and latitude data of the user within a preset period" in step S110 can be further explained in combination with the following description.
[0073] As described in the following steps, according to the actual situation, determine the statistical period, such as one month, one quarter, and then extract all the longitude and latitude data of all users in the statistical period.
[0074] As described in the above step S120, the encoding data is determined according to the latitude and longitude data.
[0075] In an embodiment of the present invention, the specific process of "determining the coded data according to the latitude and longitude data" in step S120 can be further explained in combination with the following description.
[0076] As described in the following steps, pre-processing is performed based on the longitude and latitude data to determine processed data; and conversion is performed based on the processed data to determine the encoded data.
[0077] In one embodiment of the present invention, the specific process of the step of "pre-processing and determining processing data according to the latitude and longitude data" can be further explained in combination with the following description.
[0078] As described in the following steps, filtering is performed based on the latitude and longitude data to determine the working day data; marking is performed based on the working day data to determine the time period data; and sampling is performed based on the time period data to determine the processed data.
[0079] As an example, the processing data is determined by performing equal-frequency sampling based on the time period data, and a sampling frequency is performed.
[0080] In a specific embodiment, the extracted data is removed from records of non-legal working days. If the recorded time is a fixed time, such as 2023-10-01 10:00:00, it can be directly removed. If the recorded time is a time period, it is necessary to remove the time period of non-legal working days and retain the time period of legal working days.
[0081] In a specific embodiment, the time periods of day and night are determined according to the actual situation. The place where the user often stays during the day is the workplace, and the place where the user often stays at night is the residence. Considering the commuting situation, the commuting time period can be eliminated. For example, the daytime is defined as 10 am to 7 pm, and the nighttime is defined as 9 pm to 6 am the next day. Then all the user's records are marked with time periods (daytime, nighttime).
[0082] In a specific embodiment, for the case of multiple data sources, it is necessary to perform equal-frequency sampling of longitude and latitude. The sampling frequency can be selected according to the actual situation. For example, sampling is performed once every 15 minutes. Assuming that the time recorded by data source 1 is 00:01-00:13, data source 2 is recorded from 00:10-00:30, and data source 3 is recorded at 00:14, then only one record is made between 00:00-00:15, and only one record is made between 00:16-00:30. Finally, the frequency of all longitude and latitude of each user during the statistical period during the day and night is obtained, as shown in the following table:
[0083] user Time longitude latitude frequency Zhang San daytime 116.397455 39.909187 200 Zhang San night 113.972981 22.534662 100 Zhang San night 113.972967 22.534673 50
[0084] In a specific embodiment, the corresponding Geohash code is calculated for the longitude and latitude in the table. The coding accuracy can be determined according to actual needs, such as using level 7 or level 8, as shown in the following table:
[0085] user Time longitude latitude Geohash encoding frequency Zhang San daytime 116.397455 39.909187 wx4g09np 200 Zhang San night 113.972981 22.534662 ws101w29 100 Zhang San night 113.972967 22.534673 ws101w29 50
[0086] As described in the above step S130, the user's workplace and residence information is determined based on the coded data.
[0087] In one embodiment of the present invention, the specific process of "determining the user's work and residence information based on the coded data" in step S130 can be further explained in combination with the following description.
[0088] As described in the following steps, the confidence of the user's workplace and residence is determined based on the coded data; the user's workplace and residence information is determined based on the confidence of the user's workplace and residence
[0089] As described in the following steps, frequency sorting is performed based on the coded data to determine frequency sorting data; and the confidence level of the user's workplace and residence is determined based on the frequency sorting data.
[0090] In a specific embodiment, the total frequency of occurrence of each Geohash code for each user in different time periods is as follows:
[0091] user Time Geohash encoding frequency Zhang San daytime wx4g09np 200 Zhang San night ws101w29 150
[0092] The frequencies of each user in different time periods are sorted in descending order. The highest frequency is the first job residence, and the second highest frequency is the second job residence. The daytime corresponds to the work place, and the nighttime corresponds to the residence.
[0093] According to the frequency of users appearing in different time periods, the confidence of different time periods is calculated (calculated separately during the day and at night). According to the actual situation, the corresponding calculation method can be adopted. For example, the maximum and minimum value normalization method can be adopted, and the calculation formula is as follows:
[0094]
[0095] in:
[0096] X norm is the normalized data, X is the original data, and X min is the minimum value of the frequency during the day or night, X max is the maximum value of the frequency during the day or night.
[0097] Reference Figure 2 and Figure 6 , shows a flowchart of a method for querying a job and residence provided by an embodiment of the present application, which specifically includes the following steps:
[0098] S210, receiving location information to be queried, and determining whether the location information is coded data;
[0099] S220: If yes, determine whether the coded data meets the preset reliability;
[0100] S230: If the conditions are met, search for the work and residence information of the user who meets the conditions according to the coding data.
[0101] As described in the above step S210, the location information to be queried is received, and it is determined whether the location information is coded data.
[0102] In an embodiment of the present invention, the specific process of "receiving the location information to be queried, and determining whether the location information is coded data" in step S210 may be further explained in combination with the following description.
[0103] As described in the following steps, receive the information you want to query, such as a longitude and latitude, a fence, or a Geohash grid.
[0104] As described in the above step S220, if yes, it is determined whether the encoded data meets the preset reliability.
[0105] In an embodiment of the present invention, the specific process of "if yes, determining whether the encoded data meets the preset reliability" in step S220 can be further explained in combination with the following description.
[0106] As described in the following steps, determine whether the received location information is a Geohash grid. If so, proceed to the next step; if not, convert the location information into coded data; specifically, convert the received latitude and longitude or fence into a Geohash code with the same accuracy as the workplace or residence.
[0107] As described in the above step S230, if it meets the requirements, the work and residence information of the user who meets the requirements is searched according to the coding data.
[0108] In one embodiment of the present invention, the specific process of "if it meets the conditions, searching for the work and residence information of the user who meets the conditions according to the coding data" in step S230 can be further explained in combination with the following description.
[0109] As described in the following steps, query the work and residence users with a given Geohash grid code from the database; determine whether the queried work and residence information meets the confidence level required by the business. If so, proceed to the next step, that is, return the work and residence information of users who meet the conditions; if not, end the process.
[0110] The present application also includes a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method for calculating the place of work and residence are implemented.
[0111] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0112] Reference Figure 3 , shows a device for calculating a workplace and residence provided by an embodiment of the present application, which specifically includes the following modules:
[0113] The acquisition module 310 is used to acquire the longitude and latitude data of the user within a preset period;
[0114] The encoding module 320 is used to determine the encoding data according to the latitude and longitude data;
[0115] The work and residence information module 330 is used to determine the user's work and residence information based on the coded data.
[0116] In one embodiment of the present invention, the encoding module 320 includes:
[0117] Preprocessing submodule: used to perform preprocessing based on the latitude and longitude data to determine the processing data;
[0118] Conversion submodule: used to determine the coded data by converting the processed data.
[0119] In one embodiment of the present invention, the preprocessing submodule includes:
[0120] Filtering submodule: used to filter and determine the working day data according to the latitude and longitude data;
[0121] Marking submodule: used for marking and determining time period data according to the working day data;
[0122] Sampling submodule: used to determine the processing data by sampling according to the time period data.
[0123] In one embodiment of the present invention, the work-residence information module 330 includes:
[0124] Confidence submodule: used to determine the confidence of the user's workplace and residence based on the coded data;
[0125] Work and residence information submodule: used to determine the user's work and residence information based on the confidence level of the user's work and residence.
[0126] In one embodiment of the present invention, the confidence submodule includes:
[0127] Frequency sorting submodule: used to perform frequency sorting according to the coded data to determine frequency sorting data;
[0128] The confidence level determination submodule of the user's workplace and residence is used to determine the confidence level of the user's workplace and residence based on the frequency sorting data.
[0129] Reference Figure 4 , shows a job-residence query device provided by an embodiment of the present application, which specifically includes the following modules:
[0130] Position information module 410: used to receive position information to be queried, and determine whether the position information is coded data;
[0131] Preset reliability module 420: for determining whether the coded data meets the preset reliability;
[0132] The work and residence information search module 430 is used to search for the work and residence information of the user that meets the conditions according to the coding data if the conditions are met.
[0133] In one embodiment of the present invention, the location information module 410 includes:
[0134] The coding data conversion submodule is used to convert the position information into coding data if no.
[0135] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.
[0136] There are repeated operation steps in this specific embodiment and the above specific embodiment, and this specific embodiment is only briefly described. For other solutions, refer to the description of the above specific embodiment.
[0137] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0138] Reference Figure 7 , showing a computer device of a method for calculating a place of work and residence of the present application, which may specifically include the following:
[0139] The computer device 12 is in the form of a general-purpose computing device, and the components of the computer device 12 may include but are not limited to: one or more processors or processing units 16, a memory 28, and a bus 18 connecting different system components (including the memory 28 and the processing unit 16).
[0140] Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus architectures. By way of example, these architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MAC) bus, an Enhanced ISA bus, an Audio Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.
[0141] The computer device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the computer device 12, including volatile and non-volatile media, removable and non-removable media.
[0142] Memory 28 may include computer system readable media in the form of volatile memory, such as random access memory 30 and / or cache memory 32. Computer device 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, storage system 34 may be used to read and write to non-removable, non-volatile magnetic media (commonly referred to as a "hard drive"). Although Figure 7 Not shown, a disk drive for reading and writing to a removable non-volatile disk (such as a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (such as a CD-ROM, DVD-ROM or other optical medium) may be provided. In these cases, each drive may be connected to the bus 18 via one or more data medium interfaces. The memory may include at least one program product having a set (e.g., at least one) of program modules 42, which are configured to perform the functions of the various embodiments of the present application.
[0143] A program / utility 40 having a set (at least one) of program modules 42 may be stored in, for example, a memory, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules 42, and program data, each of which or some combination may include an implementation of a network environment. The program modules 42 generally perform the functions and / or methods of the embodiments described herein.
[0144] The computer device 12 may also communicate with one or more external devices 14 (e.g., keyboards, pointing devices, displays 24, cameras, etc.), one or more devices that enable an operator to interact with the computer device 12, and / or any device that enables the computer device 12 to communicate with one or more other computing devices (e.g., network cards, modems, etc.). Such communication may be performed through the I / O interface 22. Furthermore, the computer device 12 may also communicate with one or more networks (e.g., local area networks (LANs)), wide area networks (WANs), and / or public networks (e.g., the Internet) through a network adapter 20. Figure 7 As shown, the network adapter 20 communicates with other modules of the computer device 12 via the bus 18. It should be understood that although Figure 7 Not shown, other hardware and / or software modules may be used in conjunction with the computer device 12, including but not limited to: microcode, device drivers, redundant processing units 16, external disk drive arrays, RAID systems, tape drives, and data backup storage systems 34, etc.
[0145] The processing unit 16 executes various functional applications and data processing by running the programs stored in the memory 28, such as implementing a method for calculating the work and residence provided in an embodiment of the present application.
[0146] That is, when the processing unit 16 executes the program, the following are achieved: obtaining the longitude and latitude data of the user within a preset period; determining the coding data based on the longitude and latitude data; and determining the work and residence information of the user based on the coding data.
[0147] In an embodiment of the present application, the present application also provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, a method for calculating a job and residence as provided in all embodiments of the present application is implemented.
[0148] That is, when the program is executed by the processor, it is implemented as follows: obtaining the longitude and latitude data of the user within a preset period; determining the coding data based on the longitude and latitude data; and determining the work and residence information of the user based on the coding data.
[0149] Any combination of one or more computer-readable media may be used. A computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any combination thereof. More specific examples of computer-readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In this document, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in conjunction with an instruction execution system, device, or device.
[0150] Computer-readable signal media may include a data signal propagated in baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0151] The computer program code for performing the operation of the present application can be written in one or more programming languages or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" language or similar programming languages. The program code can be executed entirely on the operator's computer, partially on the operator's computer, as an independent software package, partially on the operator's computer, partially on the remote computer, or entirely on the remote computer or server. In the case of a remote computer, the remote computer can be connected to the operator's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, using an Internet service provider to connect through the Internet). The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the various embodiments can be referred to each other.
[0152] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present application.
[0153] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.
[0154] The above is a detailed introduction to a method for calculating and querying a job-residence location provided by the present application. This article uses specific examples to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for general technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A method for calculating a user's place of residence and place of work, the method being applied to calculate a user's place of residence and place of work, characterized in that: include: Get the user's latitude and longitude data within a preset period; Determining coded data according to the latitude and longitude data; The user's workplace and residence information is determined based on the coded data.
2. The method for calculating the work-residence location according to claim 1, characterized in that: The step of determining the user's workplace and residence information based on the coded data comprises: Determining the confidence level of the user's workplace and residence based on the coded data; The user's workplace and residence information is determined based on the confidence level of the user's workplace and residence.
3. The method for calculating the work-residence location according to claim 1, characterized in that: The step of determining the coded data according to the latitude and longitude data comprises: Preprocessing is performed based on the latitude and longitude data to determine processing data; The coded data is determined by converting the processed data.
4. The method for calculating the work-residence location according to claim 3, characterized in that: The step of preprocessing and determining the processed data according to the latitude and longitude data comprises: Filtering according to the latitude and longitude data to determine the working day data; Marking and determining time period data according to the working day data; The processing data is determined by sampling according to the time period data.
5. The method for calculating the work-residence location according to claim 2, characterized in that: The step of determining the confidence level of the user's workplace and residence based on the coded data comprises: Performing frequency sorting according to the coded data to determine frequency sorting data; The confidence level of the user's workplace and residence is determined based on the frequency ranking data.
6. A method for querying a user's place of residence and place of occupation, the method being applied to querying a user's place of residence and place of occupation, characterized in that: include: Receiving location information to be queried, and determining whether the location information is coded data; If yes, determining whether the coded data meets the preset reliability; If it meets the requirements, the work and residence information of the user who meets the requirements is searched according to the coding data.
7. The method for querying job and residence according to claim 6, characterized in that: The step of determining whether the position information is coded data comprises: If not, the position information is converted into coded data.
8. A device for calculating residence and occupation, the device being used to calculate a user's residence and occupation, characterized in that: include: The acquisition module is used to obtain the user's latitude and longitude data within a preset period; An encoding module, used to determine encoding data according to the latitude and longitude data; The work and residence information module is used to determine the user's work and residence information based on the coded data.
9. A device for querying a user's place of residence and place of work, the device being used to query a user's place of residence and place of work, characterized in that: include: A location information module, used to receive location information to be queried and determine whether the location information is coded data; A preset reliability module, used for determining whether the coded data meets the preset reliability; The work and residence information search module is used to search for the work and residence information of users who meet the conditions according to the coded data if they meet the conditions.
10. A computer electronic device, characterized in that: The method comprises a processor, a memory and a computer program stored in the memory and capable of running on the processor, wherein the computer program, when executed by the processor, implements the steps of the method for calculating the work-residence location as described in any one of claims 1 to 5.
Citation Information
Patent Citations
Job and residence distribution confirmation method and device, server and computer readable storage medium
CN110020221A
Method for estimating occupational and residential population characteristics based on mobile phone signaling
CN110990443A
Positioning method and device for user occupational and residential places, control equipment and storage medium
CN111797181A
User job and residence analysis method and device
CN112699206A
