Virtual geographic position generation method and device, electronic equipment and medium
By generating and adjusting virtual geographical locations, combining sensor parameter changes and authorization logic, the problem that virtual locations in the existing technology cannot effectively protect user privacy, realizing dynamic updates of virtual locations and secure outputs of real locations, and protecting user privacy.
Patent Information
- Application Number
- CN202310800686.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-30
- Publication Date
- 2024-12-31
AI Technical Summary
Existing virtual location setting software cannot effectively protect user privacy. Third-party applications can use a variety of technical methods to detect whether users use virtual locations, thereby limiting functions or obtaining real locations, and unable to achieve effective location privacy protection.
By generating the initial virtual geographical location, obtaining changes in sensor parameters, adjusting the virtual geographical location according to the changes in sensor parameters, and outputting virtual or real geographical locations in response to location information acquisition requests, combining virtual displacement information and logic during authorization, providing a virtual geographical location generation method. , avoid third-party applications from using virtual location functions.
Effectively update the virtual geographical location, simulate the real usage of users, avoid third-party applications from obtaining the real location of users through continuous positioning or satellite information, protecting user privacy, and taking into account the privacy needs of different application scenarios.
Smart Images

Figure CN119226411A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of intelligent terminal technology, and in particular to a method, device, electronic device and medium for generating a virtual geographic location. Background Art
[0002] As more and more applications need to obtain location permissions when in use, and provide targeted push and services based on the user's location, some users have the need to protect their personal privacy and do not want to disclose their real location information to the outside world. For example, some shopping applications actually only require geographic information to be filled in when purchasing, but often obtain user location information by grabbing chat words or at a high frequency, which far exceeds the actual use needs and is disliked by users. Especially for some industries or departments with security and confidentiality requirements, they cannot expose their real location in daily life. Therefore, in daily use, they often use virtual locations instead.
[0003] Currently, the virtual location setting software on the market can only simply set a virtual location. This means that once a third-party application uses a variety of technical methods, it can clearly detect whether the user is currently using a virtual location. If the third-party application determines that the user has used a virtual location, it can restrict the normal use of some functions and may even obtain the user's location through other means, thus failing to achieve the purpose of protecting user privacy. Summary of the invention
[0004] To solve the problems in the related art, the embodiments of the present disclosure provide a method, device, electronic device and medium for generating a virtual geographic location.
[0005] One aspect of an embodiment of the present disclosure provides a method for generating a virtual geographic location, including generating an initial virtual geographic location, obtaining parameter changes of a sensor, adjusting the virtual geographic location according to the parameter changes of the sensor, and outputting the current virtual geographic location in response to a location information acquisition request.
[0006] According to an embodiment of the present disclosure, generating an initial virtual geographic location includes determining a preset virtual geographic location as the initial virtual geographic location.
[0007] According to an embodiment of the present disclosure, generating an initial virtual geographic location includes generating a random virtual geographic location as the initial virtual geographic location within a preset virtual geographic area.
[0008] According to an embodiment of the present disclosure, adjusting the virtual geographic location according to the change in sensor parameters includes determining real displacement information based on the position change represented by the sensor parameters, generating virtual displacement information based on the real displacement information, and adjusting the virtual geographic location based on the virtual displacement information. The virtual displacement information and the real displacement information may be the same or different.
[0009] According to an embodiment of the present disclosure, generating virtual displacement information based on real displacement information includes obtaining mapping parameters, processing the real displacement information based on the mapping parameters, and generating virtual displacement information.
[0010] According to an embodiment of the present disclosure, adjusting the virtual geographic location according to changes in sensor parameters includes obtaining a virtual geographic area, generating a temporary virtual geographic location according to position changes represented by the sensor parameters, determining the temporary virtual geographic location as an updated virtual geographic location when the temporary virtual geographic location is within the virtual geographic area, and regenerating the temporary virtual geographic location when the temporary virtual geographic location exceeds the virtual geographic area.
[0011] According to an embodiment of the present disclosure, in response to a location information acquisition request, outputting the current virtual geographic location includes outputting the current virtual geographic location when the application generating the location information acquisition request is a first type of application. The method also includes: outputting the real geographic location when the application generating the location information acquisition request is a second type of application.
[0012] According to an embodiment of the present disclosure, when the application generating the location information acquisition request is a second-category application, outputting the real geographic location includes, when the application generating the location information acquisition request is a second-category application, determining an authorization period, and outputting the real geographic location when it is within the authorization period. The method also includes, outside the authorization period, determining the current virtual geographic location based on the real geographic location output during the authorization period, and outputting the current virtual geographic location.
[0013] According to an embodiment of the present disclosure, the method for generating a virtual geographic location further includes generating satellite virtual information, and outputting the satellite virtual information in response to a satellite information acquisition request, wherein the satellite virtual information may be related to the current virtual geographic location.
[0014] Another aspect of the embodiments of the present disclosure provides a virtual geographic location generation device, including a generation module, an acquisition module, an update module, and an output module. The generation module is configured to generate an initial virtual geographic location. The acquisition module is configured to acquire parameter changes of a sensor. The update module is configured to adjust the virtual geographic location according to the parameter changes of the sensor. The output module is configured to output the current virtual geographic location in response to a location information acquisition request.
[0015] Another aspect of the embodiments of the present disclosure provides an electronic device, including at least one processor and a memory in communication with the at least one processor, wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the processor implements the method described above.
[0016] Another aspect of an embodiment of the present disclosure provides a computer-readable storage medium having computer-readable instructions stored thereon, which, when executed by a processor, enables the processor to implement the method described above.
[0017] Another aspect of an embodiment of the present disclosure provides a computer program, which, when executed by a processor, enables the processor to implement the method described above.
[0018] According to the technical solution of the embodiment of the present disclosure, by obtaining the user's location changes and updating the virtual geographic location according to the user's location changes, it is possible to perform virtual location simulation based on the user's actual usage, thereby preventing third-party applications from detecting that the user is using the virtual location function through multiple positioning, satellite information assistance, and other methods. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Other features, objectives and advantages of the present disclosure will become more apparent through the following detailed description of non-limiting embodiments in conjunction with the accompanying drawings. In the accompanying drawings:
[0020] Figure 1 A schematic diagram schematically illustrates an application scenario of the method for generating a virtual geographic location according to an embodiment of the present disclosure;
[0021] Figure 2 A flowchart schematically illustrating a method for generating a virtual geographic location according to an embodiment of the present disclosure;
[0022] Figure 3 A flowchart schematically illustrating the process of adjusting a virtual geographic location according to an embodiment of the present disclosure;
[0023] Figure 4 Schematically showing a flow chart of generating virtual displacement information according to an embodiment of the present disclosure;
[0024] Figure 5 A flowchart schematically illustrating another embodiment of the present disclosure for adjusting a virtual geographic location;
[0025] Figure 6 A flowchart schematically illustrating a method for generating a virtual geographic location according to another embodiment of the present disclosure;
[0026] Figure 7 A flowchart schematically illustrating outputting satellite virtual information according to an embodiment of the present disclosure;
[0027] Figure 8A flowchart schematically illustrating a method for generating a virtual geographic location according to another embodiment of the present disclosure;
[0028] Fig. 9 A block diagram schematically shows a virtual geographic location generating device according to an embodiment of the present disclosure;
[0029] Fig.10 The structure diagram of a computer system suitable for implementing the method and device for generating a virtual geographic location according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION
[0030] Hereinafter, exemplary embodiments of the present disclosure will be described in detail with reference to the accompanying drawings so that those skilled in the art can more easily implement them. In addition, for the sake of clarity, parts not related to the description of the exemplary embodiments are omitted in the accompanying drawings.
[0031] In the present disclosure, it should be understood that terms such as "include" or "have" are intended to indicate the presence of features, numbers, steps, behaviors, components, parts, or a combination thereof disclosed in the present specification, and are not intended to exclude the possibility that one or more other features, numbers, steps, behaviors, components, parts, or a combination thereof exist or are added.
[0032] It should also be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present disclosure may be combined with each other. The present disclosure will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0033] It should be noted that the acquisition or display of data in the present disclosure is authorized, confirmed, or actively selected by the user.
[0034] The disclosed embodiments provide a method for generating a virtual geographic location, including generating an initial virtual geographic location; obtaining parameter changes of a sensor; adjusting the virtual geographic location according to the parameter changes of the sensor; and outputting the current virtual geographic location in response to a location information acquisition request, thereby simulating a virtual location based on the user's actual usage, thereby preventing a third-party application from detecting that the user is using a virtual location function through a continuous positioning method.
[0035] The technical solutions provided by various embodiments of the present disclosure are described in detail below in conjunction with the accompanying drawings.
[0036] Figure 1 A schematic diagram schematically illustrates an application scenario of the method for generating a virtual geographic location according to an embodiment of the present disclosure.
[0037] like Figure 1As shown, the system architecture 100 may include a terminal device 101, a terminal device 102, a terminal device 103, a network 104, and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103, and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or optical fiber cables, etc.
[0038] The terminal devices 101, 102, and 103 may be various dedicated or general-purpose electronic devices, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers, etc. The terminal devices 101, 102, and 103 interact with the server 105 through the network 104 to receive or send messages, etc. Various client applications may be installed on the terminal devices 101, 102, and 103, such as browser applications, search applications, instant messaging tools, etc.
[0039] The server 105 may be a server that provides various services, such as a backend server that provides services for client applications installed on the terminal devices 101, 102, and 103. When the server 105 provides application services to the terminal devices 101, 102, and 103, it usually requests location permission to obtain location information of the terminal devices 101, 102, and 103.
[0040] The server 105 may be hardware or software. When the server 105 is hardware, it may be implemented as a distributed server cluster consisting of multiple servers, or as a single server. When the server 105 is software, it may be implemented as multiple software or software modules (e.g., multiple software or software modules for providing distributed services), or as a single software or software module.
[0041] The virtual geographic location generation method provided by the embodiment of the present disclosure may be executed by, for example, terminal device 101 , terminal device 102 , or terminal device 103 .
[0042] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to the implementation requirements.
[0043] Figure 2 The flowchart of the method for generating a virtual geographic location according to an embodiment of the present disclosure is schematically shown.
[0044] like Figure 2 As shown, the virtual geographic location generating method includes operations S210-S240.
[0045] In operation S210, an initial virtual geographic location is generated.
[0046] In operation S220, a parameter change of the sensor is acquired.
[0047] In operation S230, the virtual geographic location is adjusted according to the parameter change of the sensor.
[0048] In operation S240, in response to the location information acquisition request, the current virtual geographical location is output.
[0049] According to an embodiment of the present disclosure, the initial virtual geographic location may be the virtual geographic location generated for the first time when the location virtualization function is enabled. In other embodiments of the present disclosure, the initial virtual geographic location may also refer to the virtual geographic location at any previous moment relative to the updated virtual geographic location.
[0050] According to an embodiment of the present disclosure, a default virtual geographic location may be preset, that is, generating an initial virtual geographic location includes determining a preset virtual geographic location as the initial virtual geographic location. There may be one or more preset virtual geographic locations, and when there are multiple preset virtual geographic locations, one may be selected according to a rule or randomly selected as the initial virtual geographic location.
[0051] According to the embodiment of the present disclosure, a virtual geographic area can be preset so as to randomly generate an initial virtual geographic location within the preset virtual geographic area. That is, generating the initial virtual geographic location includes generating a random virtual geographic location as the initial virtual geographic location within the preset virtual geographic area. In this way, while increasing randomness, the certainty of the virtual geographic location is guaranteed to a certain extent.
[0052] According to the embodiment of the present disclosure, the sensor may include, for example, GPS, Wi-Fi module, acceleration sensor, gyroscope, altitude sensor, barometer, etc. The position change of the user terminal device may be reflected through the parameter change of one or more sensors.
[0053] According to the embodiments of the present disclosure, the virtual geographic location can be updated based on the parameter changes of the sensor, that is, the virtual geographic location can change with the location change of the user terminal device. When a location information acquisition request is received from a third-party application, the updated virtual geographic location is provided to it to protect the user's privacy. The provided virtual geographic location is related to the state of the user in the real environment, and is no longer a single fixed address, so as to prevent third-party applications from detecting that the user is using the virtual location function through continuous positioning methods.
[0054] Figure 3 The flowchart of adjusting the virtual geographic location according to an embodiment of the present disclosure is schematically shown.
[0055] like Figure 3 As shown, adjusting the virtual geographic location according to the parameter change of the sensor may include operations S310 - S330 .
[0056] In operation S310, the real displacement information is determined based on the position change situation represented by the sensor parameters.
[0057] In operation S320, virtual displacement information is generated based on the real displacement information, wherein the virtual displacement information is the same as or different from the real displacement information.
[0058] In operation S330, the virtual geographic location is adjusted based on the virtual displacement information.
[0059] According to an embodiment of the present disclosure, the position change represented by the sensor parameters may include the terminal device moving from a first position to a second position. In a certain coordinate system, a displacement vector from the first position to the second position may be determined as the actual displacement information of the terminal device.
[0060] According to the embodiment of the present disclosure, each generation of virtual displacement depends on the occurrence of real displacement. When real displacement occurs, a virtual displacement can be triggered and generated, but the virtual displacement can be the same as or different from the real displacement. For example, if the real displacement is 1 meter to the east, the virtual displacement can be 1 meter to the east, or 2 meters to the south, and so on.
[0061] The virtual position is generated according to the real displacement of the terminal device, which makes it look more like the user is actually moving. In particular, when the virtual displacement information is different from the real displacement information, the moving distance and moving direction of the virtual displacement and the real position are not related, which effectively protects the user's privacy.
[0062] Figure 4 The flowchart of generating virtual displacement information according to an embodiment of the present disclosure is schematically shown.
[0063] like Figure 4 As shown, generating virtual displacement information based on the real displacement information may include operations S410 and S420.
[0064] In operation S410, mapping parameters are obtained.
[0065] In operation S420, the real displacement information is processed based on the mapping parameters to generate virtual displacement information.
[0066] According to an embodiment of the present disclosure, the real displacement information can be expressed as a displacement vector, the mapping parameter can be, for example, a non-zero real number, and the virtual displacement information can be the product of the two. For example, the mapping parameter k can be taken from 0<|k|≤N, and N can be 2, 3, 5, 10, etc. When k=1, the virtual displacement is the same as the real displacement. When k=-1, the virtual displacement and the real displacement have the same distance but opposite direction. When |k|>1, the distance of the virtual displacement is greater than the distance of the real displacement. When |k|<1, the distance of the virtual displacement is less than the distance of the real displacement.
[0067] Alternatively, the mapping parameter may be a linear transformation matrix that maps the real displacement vector to a virtual displacement vector.
[0068] In this way, the virtual geographic location can change with the actual location of the user terminal, making it look more like the user is actually moving, effectively protecting the user's privacy.
[0069] Figure 5 A flowchart for adjusting a virtual geographic location according to another embodiment of the present disclosure is schematically shown.
[0070] like Figure 5 As shown, adjusting the virtual geographic location according to the parameter change of the sensor may include operations S510 - S540 .
[0071] In operation S510, a virtual geographical area is obtained.
[0072] In operation S520, a temporary virtual geographic location is generated according to the location change situation represented by the sensor parameters.
[0073] In operation S530, it is determined whether the temporary virtual geographic location is within the virtual geographic area. If so, operation S540 is performed; otherwise, the process returns to operation S520 to regenerate the temporary virtual geographic location.
[0074] In operation S540, the temporary virtual geographic location is determined to be an updated virtual geographic location.
[0075] According to the embodiments of the present disclosure, the virtual geographic area may also be referred to as a geo-fence, which is used to limit the generated virtual geographic location within the virtual geographic area. The virtual geographic location can be moved within the geo-fence to prevent the change of the virtual geographic location from being unnatural, such as directly crossing a location with a large altitude difference, moving back and forth across borders, or staying at a certain location at sea for a long time.
[0076] Figure 6 The following is a flowchart schematically showing a method for generating a virtual geographic location according to another embodiment of the present disclosure.
[0077] like Figure 6As shown, based on the foregoing embodiment, operation S240 may include operations S610 - S630 .
[0078] In operation S610, the type of the application generating the location information acquisition request is determined. If it is a first type of application, operation S620 is performed; if it is a second type of application, operation S630 is performed.
[0079] In operation S620, the current virtual geographical location is output.
[0080] In operation S630, the real geographic location is output.
[0081] According to the embodiments of the present disclosure, users can set some applications as second-category applications, or they can be called trusted applications, and the virtual geographic location generation method does not take effect on these applications. Alternatively, some applications are forcibly defined as second-category applications, and users are not allowed to actively configure them. For example, an application used for clocking in and out of a company requires the use of real geographic location information and can be forcibly defined or self-configured as a second-category application. Applications other than the second-category applications are first-category applications, which are general applications and can be provided with a virtual geographic location using the virtual geographic location generation method to protect user privacy.
[0082] According to an embodiment of the present disclosure, restrictions may also be imposed on the second category of applications that are authorized to use the real geographic location. Operation S630 may include, if the application generating the location information acquisition request is a second category application, determining an authorization period; and if it is within the authorization period, outputting the real geographic location.
[0083] Taking the application for clocking in and out as an example, during the working hours, the application can be authorized to use the real geographic location, but at other times, it may still not be allowed to obtain the real geographic location. Taking the working hours as 9 o'clock and the off-get off work time as 18 o'clock as an example, the authorization period can be set to 8-10 o'clock and 17-19 o'clock. At other times, the virtual geographic location generation method of the embodiment of the present disclosure can still be used to provide it with a virtual geographic location. For example, in the time period of 10-17 o'clock, a real-time virtual geographic location can be generated based on the clocking-in location with subsequent changes in sensor parameters.
[0084] According to the embodiment of the present disclosure, since the method of the embodiment of the present disclosure returns virtual information, the GPS module does not need to work frequently, thus saving power consumption.
[0085] According to the disclosed embodiments, the terminal device can automatically turn off the virtual location function in a timely manner according to the usage scenario. For example, when the terminal device detects that the user is using a professional outdoor sports app and the location displayed is in the mountains, the terminal device can authorize the outdoor sports app to use the real geographic location, thereby improving the safety of outdoor survival and eliminating the operating cost of the user manually turning off the virtual location function.
[0086] By distinguishing between the first category of applications and the second category of applications, it is possible to take into account the privacy needs of different applications and different application scenarios, and provide virtual geographic locations or real geographic locations in a targeted manner.
[0087] In addition, satellite information is similar to geographic location information and can also be stored in the terminal device. If a third-party application determines the simulated location used by the user through methods such as continuous positioning, it may make a comprehensive judgment by requesting satellite information to obtain the user's current real location.
[0088] Figure 7 The flowchart of outputting satellite virtual information according to an embodiment of the present disclosure is schematically shown.
[0089] like Figure 7 As shown, the virtual geographic location generation method can further include operations S710 and S720 based on the above-mentioned embodiment.
[0090] In operation S710, satellite virtual information is generated.
[0091] In operation S720, the satellite virtual information is output in response to the satellite information acquisition request.
[0092] According to the embodiments of the present disclosure, when the location is modified, the reported satellite information, including NMEA data, etc., is also modified accordingly, which can prevent third-party applications from detecting the real location through other interfaces.
[0093] According to an embodiment of the present disclosure, the satellite virtual information may be correlated with the current virtual geographic location, thereby making the virtual geographic location more like a real location.
[0094] Figure 8 The following is a flowchart schematically showing a method for generating a virtual geographic location according to another embodiment of the present disclosure.
[0095] like Figure 8 As shown, the method includes operations S801-S810.
[0096] In operation S801, a virtual positioning function is turned on.
[0097] In operation S802, a virtual geographical location and a virtual geographical area are set.
[0098] In operation S803, it is determined whether the terminal position has changed. If not, operation S804 is executed, otherwise operation S805 is executed.
[0099] According to the disclosed embodiment, after the virtual location protection function is turned on, the mobile phone can periodically detect whether the user is stationary or moving. This detection can be judged based on the Wi-Fi hotspot and signal strength currently detected by the mobile phone, as well as the changes in the cell ID of the cell base station. If the Wi-Fi hotspot, signal strength, and cell ID do not change, it means that the current user is in a stationary state. If there are continuous changes, it means that the current user is in a moving state. If the user is in a stationary state, the virtual location coordinates will not change. If the user is in a moving state, the virtual location coordinates can change in seconds.
[0100] In operation S804, a virtual geographic location is generated.
[0101] In operation S805, the terminal movement speed is acquired.
[0102] In operation S806, a virtual geographic location is generated according to the movement speed.
[0103] According to the embodiment of the present disclosure, the mobile phone can obtain the current moving speed and report a new longitude and latitude every second based on the virtual position of the previous second. The difference between the new longitude and latitude and the previous longitude and latitude should be less than the moving distance within 1 second.
[0104] In operation S807, it is determined whether the virtual geographical location is within the virtual geographical area. If so, operation S809 is executed; otherwise, operation S808 is executed.
[0105] In operation S808, the virtual geographic location is regenerated.
[0106] In operation S809, the virtual geographic location is reported.
[0107] In operation S810, satellite data is synchronously modified.
[0108] According to the disclosed embodiment, while reporting the longitude and latitude coordinates every second, the mobile phone system will also synchronously modify the reported satellite information (including NMEA data). For example, modify the GGA, GSA, and GSV of the NMEA data to make the longitude and latitude consistent with the generated virtual location longitude and latitude, so as to prevent third-party applications from detecting the real location through NMEA data. At the same time, the azimuth and elevation angles of the available satellites are pseudo-randomized to avoid calculating the real location through satellite information.
[0109] This method mainly targets the common virtual location detection methods on the market, and provides multiple protections for the setting and reporting of virtual locations, which can more safely protect user privacy.
[0110] Based on the same inventive concept, the present disclosure also provides a virtual geographic location generating device, as shown below: Fig. 9 The virtual geographic location generating device according to the embodiment of the present disclosure is described.
[0111] Fig. 9 The block diagram of the virtual geographic location generating device 900 according to the embodiment of the present disclosure is schematically shown.
[0112] The device 900 may be implemented as part or all of an electronic device through software, hardware, or a combination of both.
[0113] like Fig. 9 As shown, the virtual geographic location generating device 900 includes a generating module 910, an acquiring module 920, an updating module 930 and an output module 940. The virtual geographic location generating device 900 can execute the various methods described above.
[0114] The generating module 910 is configured to generate an initial virtual geographic location.
[0115] The acquisition module 920 is configured to acquire parameter changes of the sensor.
[0116] The updating module 930 is configured to adjust the virtual geographic location according to the parameter changes of the sensor.
[0117] The output module 940 is configured to output the current virtual geographic location in response to a location information acquisition request.
[0118] Fig.10 The structure diagram of a computer system suitable for implementing the method and device for generating a virtual geographic location according to an embodiment of the present disclosure is schematically shown.
[0119] like Fig.10 As shown, the computer system 1000 includes a processor 1001, which can perform various processes in the above-mentioned embodiments according to a program stored in a read-only memory (ROM) 1002 or a program loaded from a storage part 1008 into a random access memory (RAM) 1003. In the RAM 1003, various programs and data required for the operation of the system 1000 are also stored. The processor 1001, the ROM 1002, and the RAM 1003 are connected to each other via a bus 1004. An input / output (I / O) interface 1005 is also connected to the bus 1004.
[0120] The following components are connected to the I / O interface 1005: an input part 1006 including a keyboard, a mouse, etc.; an output part 1007 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage part 1008 including a hard disk, etc.; and a communication part 1009 including a network interface card such as a LAN card, a modem, etc. The communication part 1009 performs communication processing via a network such as the Internet. The drive 1010 is also connected to the I / O interface 1005 as needed. A removable medium 1011, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1010 as needed, so that the computer program read therefrom is installed into the storage part 1008 as needed. Among them, the processor 1001 can be implemented as a processing unit such as a CPU, a GPU, a TPU, an FPGA, and an NPU.
[0121] In particular, according to an embodiment of the present disclosure, the method described above can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program tangibly contained on a machine-readable medium, and the computer program includes a program code for executing the above method. In such an embodiment, the computer program can be downloaded and installed from a network through the communication part 1009, and / or installed from the removable medium 1011.
[0122] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0123] The units or modules involved in the embodiments described in the present disclosure may be implemented by software or programmable hardware. The units or modules described may also be set in a processor, and the names of these units or modules do not constitute limitations on the units or modules themselves in some cases.
[0124] As another aspect, the present disclosure further provides a computer-readable storage medium, which may be a computer-readable storage medium included in the electronic device or computer system in the above-mentioned embodiment; or a computer-readable storage medium that exists independently and is not assembled into a device. The computer-readable storage medium stores one or more programs, and the programs are used by one or more processors to execute the method of the embodiment of the present disclosure.
[0125] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the present disclosure is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the inventive concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other.
Claims
1. A method for generating a virtual geographic location, characterized in that: include: Generate an initial virtual geographic location; Get the parameter changes of the sensor; Adjust the virtual geographic location according to the changes in sensor parameters; as well as In response to the location information acquisition request, the current virtual geographic location is output.
2. The method according to claim 1, characterized in that Generating the initial virtual geographic location comprises: determining a preset virtual geographic location as an initial virtual geographic location; or In a preset virtual geographic area, a random virtual geographic location is generated as an initial virtual geographic location.
3. The method according to claim 1, characterized in that The step of adjusting the virtual geographic location according to the parameter change of the sensor includes: Determine the real displacement information based on the position change represented by the sensor parameters; generating virtual displacement information based on the real displacement information, wherein the virtual displacement information is the same as or different from the real displacement information; The virtual geographic location is adjusted based on the virtual displacement information.
4. The method according to claim 3, characterized in that: The generating virtual displacement information based on the real displacement information comprises: Get mapping parameters; The real displacement information is processed based on the mapping parameters to generate virtual displacement information.
5. The method according to claim 1, characterized in that The step of adjusting the virtual geographic location according to the parameter change of the sensor includes: Obtain virtual geographic areas; generating a temporary virtual geographic location according to the position change represented by the sensor parameters; In a case where the temporary virtual geographical location is within the virtual geographical area, determining the temporary virtual geographical location to be an updated virtual geographical location; In the case where the temporary virtual geographic location exceeds the virtual geographic area, the temporary virtual geographic location is regenerated.
6. The method according to claim 1, characterized in that The step of outputting the current virtual geographical location in response to the location information acquisition request includes: When the application generating the location information acquisition request is a first-class application, the current virtual geographic location is output. The method further comprises: When the application generating the location information acquisition request is a second-category application, the real geographic location is output.
7. The method according to claim 6, characterized in that When the application generating the location information acquisition request is a second type of application, outputting the real geographical location includes: If the application generating the location information acquisition request is a second-category application, determining the authorization period; Output the real geographic location within the authorization period. The method further includes, outside the authorization period, determining a current virtual geographic location based on the real geographic location output during the authorization period, and outputting the current virtual geographic location.
8. The method according to claim 1, characterized in that Also includes: Generate satellite virtual information, where the satellite virtual information is related to the current virtual geographical location; In response to a satellite information acquisition request, the satellite virtual information is output.
9. A virtual geographic location generating device, characterized in that: include: A generating module, configured to generate an initial virtual geographic location; An acquisition module is configured to acquire parameter changes of the sensor; An update module, configured to adjust the virtual geographic location according to a parameter change of the sensor; as well as The output module is configured to output the current virtual geographic location in response to a location information acquisition request.
10. An electronic device, characterized in that: include: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 8.
11. A computer-readable storage medium, characterized in that: Computer-readable instructions are stored thereon, and when the instructions are executed by a processor, the processor is caused to execute the method according to any one of claims 1 to 8.
Citation Information
Cited By
Virtual geographic address generation method and device, electronic equipment and storage medium
CN121542447A
