Simulation positioning generation method, simulation positioning generation device, equipment and storage medium
Patent Information
- Application Number
- CN202211131017.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-16
- Publication Date
- 2026-09-29
- Estimated Expiration
- 2042-09-16
AI Technical Summary
但不同地区供应商所能提供的服务存在差异,用户的使用场景、网络环境、设备型号、行政规划变动等都会使部分用户在某些特定情况下获取到错误的定位信息,从而生成了错误订单等,从而导致应用程序无法获取到准确的用户位置,使得用户体验较差
[0018]本申请实施例公开的模拟定位生成方法、模拟定位生成装置、设备及存储介质,通过根据身份标识信息确定对应的用户是否为目标用户;若用户为目标用户,则在对应的调试环境中加载前端调试工具以对定位组件进行调试;当中间件监听到应用程序的回调请求时,调用调试好的定位组件,根据地理定位数据生成对应的模拟定位地址;根据地理定位数据对中间件进行更新,并通过更新后的中间件将模拟定位地址发送至应用程序,由此可以避免用户的使用场景、网络环境、设备型号、行政规划变动等因素使用户在某些特定情况下获取到错误的定位信息,从而能够使应用程序能够准确地获取到用户位置,提高用户体验。
Smart Images

Figure CN115470131B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of artificial intelligence, and in particular to a method for generating simulated positioning, a device for generating simulated positioning, a computer device, and a computer-readable storage medium. Background Technology
[0002] Currently, in certain business scenarios, such as car insurance, it is necessary to obtain the user's location or real-time location to better serve the user. However, the services provided by different suppliers in different regions vary. User usage scenarios, network environments, device models, and changes in administrative planning can all lead to some users receiving incorrect location information under certain circumstances, resulting in incorrect orders and other issues. Consequently, the application may be unable to obtain accurate user locations, leading to a poor user experience. Summary of the Invention
[0003] This application provides a simulated location generation method, a simulated location generation device, a computer device, and a storage medium, which aim to enable applications to accurately obtain the user's location and improve the user experience.
[0004] To achieve the above objectives, this application provides a simulated location generation method, applied to a simulated location generation system including front-end debugging tools, middleware, and applications, the method comprising:
[0005] The application obtains user information, which includes identity information and geolocation data.
[0006] Based on the identity information, determine whether the user corresponding to the user information is the target user;
[0007] If the user information corresponds to the target user, then the front-end debugging tool is loaded in the corresponding debugging environment to debug the positioning component and obtain the target positioning component;
[0008] When the middleware listens to the application's callback request, it calls the target positioning component to generate a corresponding simulated positioning address based on the geographic positioning data;
[0009] The middleware is updated based on the geolocation data, and the simulated location address is sent to the application through the updated middleware.
[0010] To achieve the above objectives, this application also provides a simulated positioning generation device, the simulated positioning generation device comprising:
[0011] The information acquisition module is used to acquire user information through the application, the user information including identity information and geographic location data;
[0012] The user identification module is used to determine whether the user information corresponding to the target user is a target user based on the identity information.
[0013] The component debugging module is used to load a front-end debugging tool in the corresponding debugging environment to debug the positioning component and obtain the target positioning component if the user corresponding to the user information is the target user.
[0014] The address generation module is used to call the target positioning component when the middleware listens to the application's callback request, and generate a corresponding simulated positioning address based on the geographic positioning data.
[0015] The middleware update module is used to update the middleware based on the geolocation data, and send the simulated location address to the application through the updated middleware.
[0016] In addition, to achieve the above objectives, this application also provides a computer device, the computer device including a memory and a processor; the memory is used to store a computer program; the processor is used to execute the computer program and, when executing the computer program, implement any of the simulated positioning generation methods provided in the embodiments of this application.
[0017] In addition, to achieve the above objectives, this application also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, causes the processor to implement any of the simulated positioning generation methods provided in the embodiments of this application.
[0018] The simulated location generation method, apparatus, device, and storage medium disclosed in this application determine whether the corresponding user is the target user based on identity information. If the user is the target user, a front-end debugging tool is loaded in the corresponding debugging environment to debug the location component. When the middleware listens to the application's callback request, it calls the debugged location component and generates the corresponding simulated location address based on geographic location data. The middleware is updated based on the geographic location data, and the simulated location address is sent to the application through the updated middleware. This avoids users obtaining incorrect location information under certain circumstances due to factors such as user usage scenarios, network environment, device model, and changes in administrative planning, thereby enabling the application to accurately obtain the user's location and improving the user experience. Attached Figure Description
[0019] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0020] Figure 1 This is a schematic diagram of a scenario for a simulated positioning generation method provided in an embodiment of this application;
[0021] Figure 2 This is a flowchart illustrating a simulated positioning generation method provided in an embodiment of this application;
[0022] Figure 3 This is a schematic block diagram of a simulated positioning generation device provided in an embodiment of this application;
[0023] Figure 4 This is a schematic block diagram of a computer device provided in one embodiment of this application. Detailed Implementation
[0024] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0025] The flowcharts shown in the accompanying drawings are merely illustrative and do not necessarily include all content and operations / steps, nor do they necessarily need to be performed in the described order. For example, some operations / steps can be broken down, combined, or partially merged, so the actual execution order may change depending on the actual situation. Furthermore, although functional modules are divided in the device diagram, in some cases, a different module division may be used.
[0026] The term “and / or” as used in this application specification and the appended claims means any combination of one or more of the associated listed items, as well as all possible combinations, and includes such combinations.
[0027] Currently, in certain business scenarios, such as car insurance, it is necessary to obtain the user's location or real-time location beforehand to better serve the user. However, the services provided by different suppliers in different regions vary, and factors such as user usage scenarios, network environment, device model, and changes in administrative planning can lead to some users receiving incorrect location information under certain circumstances.
[0028] With the improvement of various laws and regulations in my country, software such as VPNs and virtual location services are currently classified as controlled tools. Virtual location software provided or sold by individual developers is questionable in terms of security and compliance, or has many usage conditions, such as requiring root access on the phone, jailbreaking on iOS, or requiring PC software to assist with location tracking. Furthermore, currently, for WebView embedded in applications to obtain user location, compliance standards require it to be obtained natively through the app. Therefore, applications may still fail to obtain accurate user locations, resulting in a poor user experience.
[0029] To address the aforementioned issues, this application provides a simulated location generation method. This method can be applied to a server and also to a simulated location generation system that includes a whitelist system, front-end debugging tools, applications, location components, and middleware. This method can prevent users from obtaining incorrect location information under certain circumstances due to factors such as user scenarios, network environments, device models, and changes in administrative planning. As a result, applications can accurately obtain the user's location, thereby improving the user experience.
[0030] The server can be a single server or a server cluster. However, for ease of understanding, the following embodiments will be described in detail using a simulated location generation method applied to a server.
[0031] The following detailed description of some embodiments of this application is provided in conjunction with the accompanying drawings. Unless otherwise specified, the following embodiments and features can be combined with each other.
[0032] like Figure 1 As shown, the simulated positioning generation method provided in this application embodiment can be applied to, for example... Figure 1The application environment shown includes a terminal device 110 and a server 120. The terminal device 110 can communicate with the server 120 via a network. Specifically, the server 120 obtains user information, including identity information and geolocation data; it determines whether the corresponding user is the target user based on the identity information; if the user is the target user, it loads a front-end debugging tool in the corresponding debugging environment to debug the positioning component; when the middleware listens to the application's callback request, it calls the debugged positioning component and generates a corresponding simulated positioning address based on the geolocation data; it updates the middleware based on the geolocation data and sends the simulated positioning address to the terminal device 110 through the updated middleware. The server 120 can be a standalone server or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms. Terminal device 110 may be a smartphone, tablet, laptop, desktop computer, smart speaker, smartwatch, etc., but is not limited to these. The terminal and server can be connected directly or indirectly through wired or wireless communication, and this application does not impose any restrictions.
[0033] Please see Figure 2 , Figure 2 This is a schematic flowchart illustrating a simulated location generation method provided in an embodiment of this application. This simulated location generation method can be applied to a server or a simulated location generation system, thereby avoiding the possibility that users may obtain incorrect location information under certain circumstances due to factors such as user scenarios, network environment, device model, and changes in administrative planning. This fills the gap in addressing the difficulty of geolocation debugging in mobile production environments, enabling applications to accurately obtain user locations and improving user experience.
[0034] like Figure 2 As shown, the simulation positioning generation method includes steps S101 to S105.
[0035] S101. Obtain user information through the application, the user information including identity information and geographic location data.
[0036] User information typically includes identity information and geolocation data, and may also include business information used to determine the business scenario. Identity information can be an identity identifier, or it can be table or form information used to identify the user. For example, identity information can be extracted from table or form information. Geolocation data can be location information obtained from the application.
[0037] The embodiments of this application can acquire and process relevant data based on artificial intelligence technology. Artificial intelligence (AI) refers to the theories, methods, technologies, and application systems that use digital computers or machines controlled by digital computers to simulate, extend, and expand human intelligence, perceive the environment, acquire knowledge, and use that knowledge to obtain optimal results.
[0038] Foundational technologies for artificial intelligence generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing, operating / interactive systems, and mechatronics. AI software technologies mainly encompass computer vision, robotics, biometrics, speech processing, natural language processing, and machine learning / deep learning.
[0039] S102. Determine whether the user corresponding to the user information is the target user based on the identity information.
[0040] If a user's identity information is in the pre-stored whitelist, then that user is the target user; if the user's identity information is not in the pre-stored whitelist, then that user is not the target user.
[0041] Specifically, identity information can be input into the whitelist system of the simulated location generation system. After processing the identity information, the whitelist system will give corresponding instructions, thereby indicating whether the user information corresponds to the target user.
[0042] The whitelist system can be used to determine whether to load the vConsole tool in the test environment based on identity information. Generally, an existing whitelist system can be directly integrated, requiring only a small amount of code to determine whether to load the front-end debugging tool; alternatively, it can be extracted into middleware for direct use by business projects.
[0043] Specifically, based on the identity information, it is determined whether the user corresponding to the user information is the target user; if the user corresponding to the user information is the target user, a front-end debugging tool is loaded in the corresponding debugging environment to debug the positioning component and obtain the target positioning component; if the user corresponding to the user information is not the target user, it is not necessary to load the front-end debugging tool in the corresponding debugging environment and obtain new user information again.
[0044] In some embodiments, the identity information is parsed to obtain the identity information corresponding to the user information; it is determined whether the pre-stored whitelist includes the identity information corresponding to the user information; if the pre-stored whitelist includes the identity information corresponding to the user information, then the user corresponding to the user information is determined to be the target user. This allows for accurate determination of whether the user corresponding to the user information is the target user, thereby generating a corresponding simulated location address for them and avoiding the generation of simulated location addresses for other users not in the whitelist.
[0045] The identity information can be used to represent the identity of each user, and the pre-stored whitelist is used to store the identity information corresponding to users who can generate simulated location addresses.
[0046] Specifically, it is determined whether the pre-stored whitelist includes the identity information corresponding to the user information; if the pre-stored whitelist includes the identity information corresponding to the user information, the user corresponding to the user information is determined to be the target user; if the pre-stored whitelist does not include the identity information corresponding to the user information, the user corresponding to the user information is determined not to be the target user, and new user information is obtained again.
[0047] For example, if the pre-stored whitelist includes the identity information corresponding to user A, user B, and user C, and the identity information corresponding to the user information is the identity information corresponding to user A, then it is determined that the pre-stored whitelist includes the identity information corresponding to the user information, and user A is determined to be the target user.
[0048] S103. If the user corresponding to the user information is the target user, then load the front-end debugging tool in the corresponding debugging environment to debug the positioning component and obtain the target positioning component.
[0049] The debugging environment can include a front-end debugging environment and a back-end debugging environment. Specifically, the corresponding debugging environment can be determined according to user requirements; generally, the debugging environment is the front-end debugging environment. The target positioning component is a positioning component after parameter debugging. The front-end debugging tool is the vConsole tool, which can be used to extend plugins for debugging more functions, such as extending plugins and debugging to obtain the target positioning component. This method only requires connecting to the extended vConsole; the completed middleware (npm package) can be used directly without writing any additional business logic code.
[0050] In some embodiments, before loading the front-end debugging tool in the corresponding debugging environment to debug the positioning component, the corresponding debugging environment can be determined based on the user requirement information, and the code corresponding to the debugging environment can be called to load the front-end debugging tool in the debugging environment. This allows for accurate determination of the corresponding debugging environment and accurate parameter debugging of the positioning component, thereby obtaining the target positioning component.
[0051] The user information also includes user requirement information, which can be used to determine how the positioning component is used. For example, the positioning component can obtain latitude, longitude, province, city, and district by clicking on a point on the map; or it can be obtained by directly inputting latitude, longitude, province, city, and district information. Since it only involves the basic functions of the map platform, the free version can implement this function, thereby achieving simulated positioning at a low cost.
[0052] For example, the user's requirements information can be used to determine a front-end debugging environment, and the code corresponding to the front-end debugging environment can be called to run the corresponding code in the front-end debugging environment, thereby loading the front-end debugging tool.
[0053] In some embodiments, the positioning accuracy requirement of the positioning component is determined based on the user requirement information; the front-end debugging tool is loaded in the corresponding debugging environment, and the positioning accuracy parameters of the positioning component are adjusted according to the positioning accuracy requirement to obtain the target positioning component. This allows for accurate adjustment of the positioning accuracy parameters of the positioning component, thereby enabling the target positioning component to generate an accurate simulated positioning address.
[0054] The positioning accuracy requirement can be determined by the user, such as accuracy down to the street level or accuracy down to the specific household. Positioning accuracy parameters can include positioning location accuracy, positioning interval, positioning range, etc.
[0055] For example, if the positioning accuracy requirement is street-level precision, the front-end debugging tool can be loaded in the corresponding debugging environment, and the corresponding positioning accuracy parameters such as positioning position accuracy, positioning interval, and positioning range can be determined according to the positioning accuracy requirement. Finally, the positioning accuracy parameters of the positioning component can be debugged according to these positioning accuracy requirements to obtain the target positioning component.
[0056] S104. When the middleware listens to the callback request of the application, it calls the target positioning component to generate a corresponding simulated positioning address based on the geographic positioning data.
[0057] The middleware, upon detecting a native method callback in the application, determines whether a simulated location address exists and outputs it to the application.
[0058] Specifically, it can be used to intercept native methods in the umc-ui library for the service management team's front end, and can also be used for subsequent expansion of other functions.
[0059] In some embodiments, the geolocation data is parsed to obtain the corresponding regional range and latitude / longitude range; location point simulation is performed based on the regional range and latitude / longitude range to generate a simulated location address corresponding to the user information. This allows for accurate generation of the corresponding simulated location address and achieves the simulated location function without requiring root access to the phone's operating system.
[0060] The area range can be a street area, a residential area, etc.; the latitude and longitude range can be a set of longitudes and a set of latitudes within a certain range.
[0061] Specifically, the corresponding regional range and latitude / longitude range can be determined by parsing geolocation data; within the regional range and latitude / longitude range, the location points are simulated and the regional range and latitude / longitude range are continuously reduced; when the regional range is reduced to a preset regional range and the latitude / longitude range is reduced to a preset latitude / longitude range, the address of the geographical location is used as the simulated location address corresponding to the user information.
[0062] Among them, the preset latitude and longitude range can be a preset latitude and longitude range with a pre-set interval range, and the preset area range can be a preset area range with a pre-set interval range.
[0063] For example, the corresponding regional range and latitude and longitude range can be determined by parsing geolocation data; then, the midpoint of the regional range or the midpoint of the latitude and longitude range can be determined, and the address of the geographical location of the midpoint of the regional range or the midpoint of the latitude and longitude range can be used as the simulated location address corresponding to the user information.
[0064] In some embodiments, it is determined whether the simulated location address meets preset address constraints. If the simulated location address does not meet the preset address constraints, the simulated location address is filtered out, and a new simulated location address is generated using the region range and the latitude and longitude range. This avoids generating simulated location addresses that do not meet the address constraints, thus preventing excessive deviations in the generated simulated location addresses.
[0065] The preset address constraints can be set by the user and are not specifically limited here.
[0066] Specifically, it is determined whether the simulated location address meets the preset address constraints; if the simulated location address meets the preset address constraints, the simulated location address is sent to the application through the updated middleware; if the simulated location address does not meet the preset address constraints, the simulated location address is filtered out, and a new simulated location address is generated based on the region range and the latitude and longitude range.
[0067] For example, if the generated simulated location address does not meet the regional range and / or the latitude and longitude range, it indicates that the simulated location address does not meet the preset address constraints.
[0068] S105. Update the middleware according to the geolocation data, and send the simulated location address to the application through the updated middleware.
[0069] The middleware mentioned here can be an npm package. npm is a package management tool for Node.js, which provides us with commands such as install and delete to manage modules.
[0070] In some embodiments, the working logic of the middleware is determined based on the geolocation data; the logic data of the middleware is updated according to the working logic of the middleware to obtain the updated middleware. This allows for accurate determination and updating of the middleware's working logic, enabling the simulated location address to be sent to the application through the updated middleware.
[0071] The working logic of the middleware can be the code's execution flow or sequence, so that the simulated location address can be sent to the application through the updated middleware.
[0072] Specifically, the execution flow or sequence of the middleware code can be determined based on geolocation data; and the corresponding code can be run according to the execution flow or sequence of the middleware code to update the logical data of the middleware, thereby obtaining the updated middleware. Finally, the simulated location address can be sent to the application through the updated middleware.
[0073] The simulated location generation method provided in this application can determine whether the corresponding user is the target user based on the identity information. If the user is the target user, a front-end debugging tool is loaded in the corresponding debugging environment to debug the location component. When the middleware listens to the application's callback request, it calls the debugged location component and generates the corresponding simulated location address based on the geographic location data. The middleware is updated based on the geographic location data, and the simulated location address is sent to the application through the updated middleware. This can avoid users obtaining incorrect location information under certain specific circumstances due to factors such as user usage scenarios, network environment, device model, and changes in administrative planning. As a result, the application can accurately obtain the user's location, filling the gap in the difficulty of geographic location debugging in mobile production environments and improving user experience.
[0074] Please see Figure 3 , Figure 3 This is a schematic block diagram of a simulated location generation device provided in an embodiment of this application. The simulated location generation device can be configured on a server or in a simulated location generation system including a whitelist system, a front-end debugging tool, an application, a location component, and middleware, for executing the aforementioned simulated location generation method.
[0075] like Figure 3 As shown, the simulated positioning generation device 200 includes: an information acquisition module 201, a user determination module 202, a component debugging module 203, an address generation module 204, and a middleware update module 205.
[0076] Information acquisition module 201 is used to acquire user information through an application, the user information including identity information and geographic location data;
[0077] User identification module 202 is used to determine whether the user corresponding to the user information is the target user based on the identity information;
[0078] The component debugging module 203 is used to load a front-end debugging tool in the corresponding debugging environment to debug the positioning component and obtain the target positioning component if the user corresponding to the user information is the target user.
[0079] Address generation module 204 is used to call the target positioning component and generate a corresponding simulated positioning address based on the geographic positioning data when the middleware listens to the callback request of the application.
[0080] The middleware update module 205 is used to update the middleware according to the geolocation data, and send the simulated location address to the application through the updated middleware.
[0081] The information acquisition module 201 is further configured to parse and process the identity information to obtain the identity information corresponding to the user information; determine whether the pre-stored whitelist includes the identity information corresponding to the user information; if the pre-stored whitelist includes the identity information corresponding to the user information, then determine the user corresponding to the user information as the target user.
[0082] The debugging module 206 is used to determine the corresponding debugging environment based on the user requirement information and call the code corresponding to the debugging environment to load the front-end debugging tool in the debugging environment.
[0083] The component debugging module 203 is also used to determine the positioning accuracy requirement of the positioning component based on the user requirement information; load the front-end debugging tool in the corresponding debugging environment, and debug the positioning accuracy parameters of the positioning component according to the positioning accuracy requirement to obtain the target positioning component.
[0084] The address generation module 204 is further configured to parse and process the geographic location data to obtain the corresponding regional range and latitude and longitude range; and to simulate location points based on the regional range and latitude and longitude range to generate a simulated location address corresponding to the user information.
[0085] The address generation module 204 is also used to determine whether the simulated location address meets the preset address constraints; if the simulated location address does not meet the preset address constraints, the simulated location address is filtered out, and a new simulated location address is generated using the region range and the latitude and longitude range.
[0086] The middleware update module 205 is further configured to determine the working logic of the middleware based on the geolocation data; and update the logical data of the middleware according to the working logic of the middleware to obtain the updated middleware.
[0087] It should be noted that those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the above-described apparatus and its modules and units can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0088] The methods and apparatus of this application can be used in a wide variety of general-purpose or special-purpose computing system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer terminal devices, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc.
[0089] For example, the above-described method and apparatus can be implemented as a computer program, which can be used in, for example... Figure 4 It runs on the computer device shown.
[0090] Please see Figure 4 , Figure 4 This is a schematic diagram of a computer device provided in an embodiment of this application. The computer device may be a server.
[0091] like Figure 4 As shown, the computer device includes a processor, memory, and network interface connected via a system bus, wherein the memory may include volatile storage media, non-volatile storage media, and internal memory.
[0092] Non-volatile storage media can store operating systems and computer programs. These computer programs include program instructions that, when executed, cause the processor to perform any simulation location generation method.
[0093] The processor provides computing and control capabilities, supporting the operation of the entire computer device.
[0094] Internal memory provides an environment for the execution of computer programs stored in non-volatile storage media. When executed by a processor, the computer program can enable the processor to perform any simulation location generation method.
[0095] This network interface is used for network communication, such as sending assigned tasks. Those skilled in the art will understand that the structure of this computer device is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than shown in the figure, or combine certain components, or have different component arrangements.
[0096] It should be understood that the processor can be a Central Processing Unit (CPU), but it can also be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among these, a general-purpose processor can be a microprocessor or any conventional processor.
[0097] In some embodiments, the processor is used to run a computer program stored in memory to perform the following steps: obtaining user information through the application, the user information including identity information and geolocation data; determining whether the user corresponding to the user information is a target user based on the identity information; if the user corresponding to the user information is a target user, loading the front-end debugging tool in the corresponding debugging environment to debug the positioning component and obtain the target positioning component; when the middleware listens to the callback request of the application, calling the target positioning component to generate a corresponding simulated positioning address based on the geolocation data; updating the middleware based on the geolocation data, and sending the simulated positioning address to the application through the updated middleware.
[0098] In some implementations, the processor is further configured to parse and process the identity information to obtain the identity information corresponding to the user information; determine whether the pre-stored whitelist includes the identity information corresponding to the user information; if the pre-stored whitelist includes the identity information corresponding to the user information, then determine the user corresponding to the user information as the target user.
[0099] In some implementations, the user information also includes user requirement information, and the processor is further configured to determine the corresponding debugging environment based on the user requirement information, and call the code corresponding to the debugging environment to load the front-end debugging tool in the debugging environment.
[0100] In some implementations, the processor is further configured to determine the positioning accuracy requirement of the positioning component based on the user requirement information; load the front-end debugging tool in the corresponding debugging environment, and debug the positioning accuracy parameters of the positioning component according to the positioning accuracy requirement to obtain the target positioning component.
[0101] In some embodiments, the processor is further configured to parse the geolocation data to obtain the corresponding regional range and latitude / longitude range; and to perform location point simulation based on the regional range and latitude / longitude range to generate a simulated location address corresponding to the user information.
[0102] In some implementations, the processor is further configured to determine whether the simulated location address meets preset address constraints; if the simulated location address does not meet the preset address constraints, the simulated location address is filtered out, and a new simulated location address is generated using the region range and the latitude and longitude range.
[0103] In some implementations, the processor is further configured to determine the working logic of the middleware based on the geolocation data; and update the logic data of the middleware according to the working logic of the middleware to obtain the updated middleware.
[0104] This application also provides a computer-readable storage medium storing a computer program, the computer program including program instructions, which, when executed, implement any of the simulation positioning generation methods provided in this application.
[0105] The computer-readable storage medium may be an internal storage unit of the computer device described in the foregoing embodiments, such as the hard disk or memory of the computer device. The computer-readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, SmartMedia Card (SMC), Secure Digital (SD) card, or Flash Card equipped on the computer device.
[0106] Furthermore, the computer-readable storage medium may primarily include a program storage area and a data storage area, wherein the program storage area may store the operating system, at least one application required for a function, etc.; and the data storage area may store data created based on the use of blockchain nodes, etc.
[0107] This invention refers to a novel application model of computer technologies such as storage, peer-to-peer transmission, consensus mechanisms, and encryption algorithms in the blockchain language model. A blockchain, essentially a decentralized database, is a chain of data blocks linked using cryptographic methods. Each data block contains information about a batch of network transactions, used to verify the validity of the information (anti-counterfeiting) and generate the next block. A blockchain can include an underlying blockchain platform, a platform product service layer, and an application service layer.
[0108] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in this application, and these modifications or substitutions should all be covered within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A method for generating simulated positioning, characterized in that, The method, applied to a simulation localization generation system including front-end debugging tools, middleware, and applications, comprises: The application obtains user information, which includes identity information and geolocation data. Based on the identity information, determine whether the user corresponding to the user information is the target user; If the user information corresponds to the target user, then the front-end debugging tool is loaded in the corresponding debugging environment to debug the positioning component and obtain the target positioning component; When the middleware listens to the application's callback request, it calls the target positioning component to generate a corresponding simulated positioning address based on the geographic positioning data; The middleware is updated based on the geolocation data, and the simulated location address is sent to the application through the updated middleware. The step of loading the front-end debugging tool in the corresponding debugging environment to debug the positioning component and obtain the target positioning component includes: Obtain user demand information and determine the positioning accuracy requirement of the positioning component based on the user demand information; The front-end debugging tool is loaded in the corresponding debugging environment, and the positioning accuracy parameters of the positioning component are adjusted according to the positioning accuracy requirements to obtain the target positioning component. The positioning accuracy parameters include positioning position accuracy, positioning interval, and positioning range.
2. The method according to claim 1, characterized in that, The step of determining whether the user corresponding to the user information is the target user based on the identity information includes: The identity information is parsed and processed to obtain the identity information corresponding to the user information; Determine whether the pre-stored whitelist includes the identity information corresponding to the user information; If the pre-stored whitelist includes the identity information corresponding to the user information, then the user corresponding to the user information is determined to be the target user.
3. The method according to claim 1, characterized in that, The user information also includes user requirement information, and before loading the front-end debugging tool in the corresponding debugging environment to debug the positioning component, it also includes: The corresponding debugging environment is determined based on the user's requirements information, and the code corresponding to the debugging environment is called to load the front-end debugging tool in the debugging environment.
4. The method according to claim 1, characterized in that, The step of invoking the target positioning component to generate a corresponding simulated positioning address based on the geographic positioning data includes: The geographic location data is parsed and processed to obtain the corresponding regional range and latitude and longitude range; Based on the stated geographical area and latitude / longitude range, location point simulation is performed to generate a simulated location address corresponding to the user information.
5. The method according to claim 4, characterized in that, After generating the simulated location address corresponding to the user information by simulating location points based on the region range and the latitude and longitude range, the method further includes: Determine whether the simulated location address meets the preset address constraint conditions; If the simulated location address does not meet the preset address constraints, the simulated location address will be filtered out, and a new simulated location address will be generated using the region range and the latitude and longitude range.
6. The method according to claim 1, characterized in that, The step of updating the middleware based on the geolocation data includes: The working logic of the middleware is determined based on the geolocation data; The logical data of the middleware is updated according to the working logic of the middleware to obtain the updated middleware.
7. A simulated positioning generation device, characterized in that, include: The information acquisition module is used to acquire user information through the application, the user information including identity information and geographic location data; The user identification module is used to determine whether the user information corresponding to the target user is a target user based on the identity information. The component debugging module is used to load a front-end debugging tool in the corresponding debugging environment to debug the positioning component and obtain the target positioning component if the user corresponding to the user information is the target user. The address generation module is used to call the target positioning component when the middleware listens to the application's callback request, and generate a corresponding simulated positioning address based on the geographic positioning data. The middleware update module is used to update the middleware based on the geolocation data, and send the simulated location address to the application through the updated middleware; The step of loading a front-end debugging tool in the corresponding debugging environment to debug the positioning component and obtain the target positioning component includes: Obtain user demand information and determine the positioning accuracy requirement of the positioning component based on the user demand information; The front-end debugging tool is loaded in the corresponding debugging environment, and the positioning accuracy parameters of the positioning component are adjusted according to the positioning accuracy requirements to obtain the target positioning component. The positioning accuracy parameters include positioning position accuracy, positioning interval, and positioning range.
8. A computer device, characterized in that, The computer device includes a memory and a processor; The memory is used to store computer programs; The processor is configured to execute the computer program and, in executing the computer program, implement: The simulation positioning generation method as described in any one of claims 1-6.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, causes the processor to implement the simulation positioning generation method as described in any one of claims 1-6.
Citation Information
Patent Citations
Location method, device and equipment based on telecommunication card as well as readable storage medium
CN108924762A
Simulation positioning method and device based on applet, electronic equipment and storage medium
CN110928769A