CN114205455A - Application positioning processing method, device, equipment and storage medium - Google Patents

Application positioning processing method, device, equipment and storage medium Download PDF

Info

Publication number
CN114205455A
CN114205455A CN202111488060.9A CN202111488060A CN114205455A CN 114205455 A CN114205455 A CN 114205455A CN 202111488060 A CN202111488060 A CN 202111488060A CN 114205455 A CN114205455 A CN 114205455A
Authority
CN
China
Prior art keywords
position information
request
application
target application
precision level
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111488060.9A
Other languages
Chinese (zh)
Other versions
CN114205455B (en
Inventor
魏凯凯
李涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhengzhou Apas Digital Cloud Information Technology Co ltd
Original Assignee
Zhengzhou Apas Digital Cloud Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhengzhou Apas Digital Cloud Information Technology Co ltd filed Critical Zhengzhou Apas Digital Cloud Information Technology Co ltd
Priority to CN202111488060.9A priority Critical patent/CN114205455B/en
Publication of CN114205455A publication Critical patent/CN114205455A/en
Application granted granted Critical
Publication of CN114205455B publication Critical patent/CN114205455B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72457User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to geographic location
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72463User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions to restrict the functionality of the device
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

One embodiment of the present specification provides an application positioning processing method, apparatus, device and storage medium, wherein the method includes: acquiring a position information acquisition request sent by a target application, and judging whether the position information acquisition request is a redundant request or not based on the application type of the target application; if the position information is determined to be a redundant request, intercepting the position information acquisition request, and if the position information is determined not to be the redundant request, determining the position information precision level corresponding to the position information acquisition request; judging whether effective position information corresponding to the position information precision level is cached or not; and if the valid position information is not cached, requesting the operating system of the user terminal for the position information, and returning the valid position information corresponding to the position information precision level to the target application. Through the embodiment, the problem that excessive positioning operation consumes the electric quantity of the mobile phone, and multiple positioning results are possibly the same, so that repeated positioning is caused can be solved.

Description

Application positioning processing method, device, equipment and storage medium
Technical Field
The present invention relates to the field of internet, and in particular, to a method, an apparatus, a device, and a storage medium for processing application positioning.
Background
Currently, most application programs can obtain the position information of the mobile phone from the operating system of the mobile phone and use the position information. In a conventional scheme, each time an application program needs to acquire position information, a request is sent to an operating system of a mobile phone, the operating system performs positioning based on the request, and a positioning result is returned to the application program. When an application program requests for obtaining position information for multiple times in a short time, an operating system needs to respond to each request for positioning, the excessive positioning operation consumes the electric quantity of a mobile phone greatly, and the multiple positioning results are possibly the same, so that repeated positioning is caused.
Disclosure of Invention
An embodiment of the present disclosure provides an application positioning processing method, an application positioning processing apparatus, an application positioning processing device, and a storage medium, so as to solve the problem that excessive positioning operations consume the electric quantity of a mobile phone, and multiple positioning results may be the same, thereby causing repeated positioning.
To solve the above technical problem, one embodiment of the present specification is implemented as follows:
in a first aspect, an embodiment of the present specification provides an application positioning processing method, which is applied to a user terminal, and includes:
acquiring a position information acquisition request sent by a target application, and judging whether the position information acquisition request is a redundant request or not based on the application type of the target application;
if the position information acquisition request is determined to be a redundant request, intercepting the position information acquisition request, and if the position information acquisition request is determined not to be a redundant request, determining the position information precision level corresponding to the position information acquisition request;
judging whether effective position information corresponding to the position information precision level is cached or not;
and if the valid position information is not cached, requesting the position information from an operating system of the user terminal, and returning the valid position information corresponding to the position information precision level to the target application based on the position information obtained by the request.
In a second aspect, another embodiment of the present specification provides an application positioning processing apparatus, applied to a user terminal, including:
the request judging unit is used for acquiring a position information acquisition request sent by a target application and judging whether the position information acquisition request is a redundant request or not based on the application type of the target application;
the request processing unit is used for intercepting the position information acquisition request if the position information acquisition request is determined to be a redundant request, and determining the position information precision level corresponding to the position information acquisition request if the position information acquisition request is not determined to be the redundant request;
the cache judging unit is used for judging whether effective position information corresponding to the position information precision level is cached or not;
and an information returning unit, configured to return the cached valid location information to the target application if the location information is cached, and request location information from an operating system of the user terminal if the location information is not cached, and return valid location information corresponding to the location information accuracy level to the target application based on the requested location information.
In a third aspect, a further embodiment of the present specification provides an application positioning processing apparatus, including: a memory, a processor and computer executable instructions stored on the memory and executable on the processor, which when executed by the processor implement the steps of the application positioning processing method as described in the first aspect above.
In a fourth aspect, a further embodiment of the present specification provides a computer-readable storage medium for storing computer-executable instructions which, when executed by a processor, implement the steps of the application positioning processing method according to the first aspect.
In an embodiment of this specification, after a location information acquisition request sent by a target application is acquired, first, based on an application type of the target application, it is determined whether the location information acquisition request is a redundant request, if so, the location information acquisition request is intercepted, if not, a location information accuracy level corresponding to the location information acquisition request is determined, then, it is determined whether valid location information corresponding to the location information accuracy level is cached, if cached, the cached valid location information is returned to the target application, if not, the location information is requested from an operating system of a user terminal, and based on the location information obtained by the request, valid location information corresponding to the location information accuracy level is returned to the target application. It can be seen that, in this embodiment, the redundant location information acquisition request sent by the target application can be identified and intercepted, and when the cached location information meets the requirement of the target application, the cached location information can be returned to the target application, and the location information is not requested from the operating system of the user terminal any more, so that the user terminal is prevented from executing excessive location operations, the power consumption of the user terminal is saved, and moreover, the location results of multiple location operations executed by the user terminal are prevented from being the same, and the problem of repeated location is avoided.
Drawings
In order to more clearly illustrate the technical solutions in one or more embodiments of the present disclosure, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the present disclosure, and for those skilled in the art, other drawings can be obtained according to these drawings without any creative effort.
Fig. 1 is a schematic flowchart of an application positioning processing method according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart illustrating a process of determining whether a location information obtaining request sent by a target application is a redundant request according to an embodiment of the present disclosure;
fig. 3 is a schematic flowchart of determining whether a location information obtaining request sent by a target application is a redundant request according to another embodiment of the present disclosure;
fig. 4 is a schematic flowchart of determining a position information accuracy level corresponding to a position information obtaining request according to an embodiment of the present disclosure;
fig. 5 is a flowchart illustrating a process of determining whether valid location information is cached according to an embodiment of the present disclosure;
fig. 6 is a schematic flowchart of a process of returning effective location information corresponding to the accuracy level of the location information to a target application according to an embodiment of the present disclosure;
fig. 7 is a schematic diagram illustrating a module composition of an application positioning processing apparatus according to an embodiment of the present disclosure;
fig. 8 is a schematic structural diagram of an application positioning processing device according to an embodiment of the present disclosure.
Detailed Description
In order to make those skilled in the art better understand the technical solutions in one or more embodiments of the present disclosure, the technical solutions in one or more embodiments of the present disclosure will be clearly and completely described below with reference to the drawings in one or more embodiments of the present disclosure, and it is obvious that the described embodiments are only a part of the embodiments of the present disclosure, and not all embodiments. All other embodiments that can be derived by a person skilled in the art from one or more of the embodiments described herein without making any inventive step shall fall within the scope of protection of this document.
An embodiment of the present specification provides an application positioning processing method, which is applied to a user terminal and executed by the user terminal, where the user terminal includes, but is not limited to, an electronic device with a positioning function, such as a mobile phone, a computer, a tablet computer, a notebook computer, a vehicle-mounted computer, and a wearable device.
Fig. 1 is a schematic flowchart of an application positioning processing method according to an embodiment of the present disclosure, and as shown in fig. 1, the method includes the following steps:
step S102, acquiring a position information acquisition request sent by a target application, and judging whether the position information acquisition request is a redundant request or not based on the application type of the target application;
step S104, if the redundant request is determined, intercepting the position information acquisition request, and if the redundant request is not determined, determining the position information precision level corresponding to the position information acquisition request;
step S106, judging whether effective position information corresponding to the position information precision level is cached;
and step S108, if the position information is cached, returning the cached effective position information to the target application, if the position information is not cached, requesting the position information from an operating system of the user terminal, and returning the effective position information corresponding to the position information precision level to the target application based on the position information obtained by the request.
In this embodiment, after a location information acquisition request sent by a target application is acquired, it is first determined whether the location information acquisition request is a redundant request based on an application type of the target application, if so, the location information acquisition request is intercepted, if not, a location information accuracy level corresponding to the location information acquisition request is determined, then it is determined whether valid location information corresponding to the location information accuracy level is cached, if cached, the cached valid location information is returned to the target application, if not, the location information is requested from an operating system of a user terminal, and based on the location information acquired by the request, the valid location information corresponding to the location information accuracy level is returned to the target application. It can be seen that, in this embodiment, the redundant location information acquisition request sent by the target application can be identified and intercepted, and when the cached location information meets the requirement of the target application, the cached location information can be returned to the target application, and the location information is not requested from the operating system of the user terminal any more, so that the user terminal is prevented from executing excessive location operations, the power consumption of the user terminal is saved, and moreover, the location results of multiple location operations executed by the user terminal are prevented from being the same, and the problem of repeated location is avoided.
The user terminal is provided with an intelligent positioning service, which can communicate with an operating system of the user terminal on one hand and various applications in the user terminal on the other hand, and the process in fig. 1 can be executed by the intelligent positioning service, and a specific process of the process in fig. 1 is described below.
In step S102, the intelligent positioning service obtains a location information obtaining request sent by the target application. The target application may be any application program in the user terminal, and is not limited herein. The position information acquisition request sent by the target application to the operating system of the user terminal is intercepted by the intelligent positioning service, so that the intelligent positioning service acquires the position information acquisition request sent by the target application. Then, the intelligent positioning service judges whether the position information acquisition request sent by the target application is a redundant request or not based on the application type of the target application.
Fig. 2 is a schematic flowchart of a process of determining whether a location information acquisition request sent by a target application is a redundant request according to an embodiment of the present disclosure, and as shown in fig. 2, in an embodiment, determining whether a location information acquisition request sent by a target application is a redundant request based on an application type of the target application specifically includes:
step S202, if the target application is a trip application, determining that the position information acquisition request is not a redundant request, and if the target application is not the trip application, acquiring a preset request frequency threshold value of the application type where the target application is located for the position information;
step S204, if the request frequency of the target application for the location information within the first preset time range is greater than a preset request frequency threshold, determining that the location information acquisition request is a redundant request, otherwise, determining that the location information acquisition request is not a redundant request.
First, category information of the target application may be acquired from an application store or from description information of the target application, thereby determining an application category of the target application. Next, it is determined whether the target application is a travel-class application, including but not limited to navigation, map, and the like. If the target application is determined to be a travel application, the travel application is determined not to be a redundant request in consideration of the importance and the necessity of acquiring the position information. If the target application is determined not to be the travel application, acquiring a preset request frequency threshold value of the application category where the target application is located for the position information, wherein the preset request frequency threshold value is used for representing reasonable position request frequency of each application program in the application category where the target application is located, and if the frequency of requesting the position information from an operating system of the user terminal for a certain application in the application category is greater than the preset request frequency threshold value, it is indicated that the position request of the application is too frequent, and redundant requests exist. It can be understood that each application category corresponds to a preset request frequency threshold value for the location information, and when the applications are classified, category description information of the applications can be acquired from an application store, so as to determine the application category of the applications.
Then, the request frequency of the target application for the position information within a first preset time range is obtained. The first preset time range may be, for example, one hour before or a certain time before the intelligent positioning service starts to calculate when the intelligent positioning service intercepts the location information obtaining request sent by the target application. If the request frequency of the target application for the location information in the first preset time range is greater than the preset request frequency threshold of the application type of the target application for the location information, it is indicated that the frequency of the target application requesting the location information from the user terminal is too high in a certain period of time, and thus the location information acquisition request of this time is determined to be a redundant request. On the contrary, if the request frequency of the target application for the location information within the first preset time range is less than or equal to the preset request frequency threshold value of the application type of the target application for the location information, it indicates that the frequency of the target application requesting the location information from the user terminal within a certain period of time is reasonable, and therefore it is determined that the location information acquisition request of this time is not a redundant request.
In this embodiment, by determining whether the request frequency of the target application for the location information within the first preset time range is greater than the corresponding preset request frequency threshold, the redundant request of the target application can be accurately identified, so that power consumption of the user terminal due to positioning operation is reduced.
Fig. 3 is a schematic flowchart of a process for determining whether a location information acquisition request sent by a target application is a redundant request according to another embodiment of the present disclosure, and as shown in fig. 3, in another embodiment, similar to the above manner, based on an application type of the target application, it is determined whether the location information acquisition request sent by the target application is a redundant request, specifically:
step S302, if the target application is a trip application, determining that the position information acquisition request is not a redundant request, and if the target application is not the trip application, judging whether position information with the position information accuracy level lower than a set level is returned to the target application within a second preset time range;
step S304, if the request is returned, determining that the position information acquisition request is not a redundant request, and if the request is not returned, acquiring a preset request frequency threshold value of the application type of the target application for the position information;
step S306, if the request frequency of the target application for the location information within the first preset time range is greater than a preset request frequency threshold, determining that the location information acquisition request is a redundant request, otherwise, determining that the location information acquisition request is not a redundant request.
First, in a similar manner to the foregoing, if it is determined that the target application is a travel-type application, it is determined that the above-described position information acquisition request is not a redundant request. And if the target application is determined not to be the trip application, judging whether position information with the position information precision level lower than the set level is returned to the target application within a second preset time range.
The second preset time range may be, for example, within 5 seconds or within 3 seconds before the intelligent positioning service starts to calculate when intercepting the location information acquisition request sent by the target application, a time length corresponding to the second preset time range is smaller than a time length corresponding to the first preset time range, and may be set to several seconds generally. The position information precision level is used for describing the precision of the position information, when the position information is latitude and longitude information, the position information precision level can be represented by digits after decimal point, and the higher the position information precision level is, the more digits after decimal point are. The predetermined level may be a preset level, and the predetermined level may represent corresponding position accuracy, for example, the predetermined level represents longitude and latitude accuracy corresponding to 2 bits after the decimal point. If the position information with the position information accuracy level lower than the set level is returned to the target application within the second preset time range, for example, the longitude and latitude information of 1 bit after only the decimal point is marked is returned, it indicates that the accuracy of the returned position information is too low, and the target application may request the position information with higher accuracy this time.
Based on this, if the position information with the position information accuracy level lower than the predetermined level is returned to the target application within the second preset time range, it is determined that the position information acquisition request is not a redundant request, and is for requesting the position information with the higher position information accuracy level. Conversely, if the position information with the position information accuracy level lower than the predetermined level is not returned to the target application within the second preset time range, similar to the above, the preset request frequency threshold value of the application class in which the target application is located for the position information is obtained, and the request frequency of the target application for the position information within the first preset time range is obtained.
Similar to the foregoing, if the request frequency of the target application for the location information within the first preset time range is greater than the preset request frequency threshold of the application type of the target application for the location information, it is determined that the location information acquisition request of this time is a redundant request. On the contrary, if the request frequency of the target application for the location information within the first preset time range is less than or equal to the preset request frequency threshold of the application type of the target application for the location information, it is determined that the location information acquisition request of this time is not a redundant request.
In this embodiment, by determining whether to return the location information with the location information accuracy level lower than the predetermined level to the target application within the second preset time range, the situation that the target application acquires the location information with higher accuracy can be accurately identified, so that the required location information is accurately returned to the target application.
The above provides two ways of determining whether the location information acquisition request sent by the target application is a redundant request based on the application category of the target application. In this embodiment, by analyzing whether the location information acquisition request is a redundant request, intercepting the location information acquisition request if the location information acquisition request is a redundant request, and continuing the process in fig. 1 if the location information acquisition request is not a redundant request, the user terminal can be prevented from executing a redundant positioning operation, and power consumption of the user terminal is saved.
In step S104, if it is determined that the request is a redundant request, the location information acquisition request is intercepted. Specifically, after receiving the location information acquisition request, the intelligent positioning service may not return any information to the target application, that is, does not respond to the request, or returns a null value to the target application, thereby achieving an effect of intercepting the location information acquisition request. If the request is not the redundant request, the intelligent positioning service determines the position information precision level corresponding to the position information acquisition request.
The position information precision level is used for indicating the precision of the position information, and the position information precision level can be indicated by the number of digits after the decimal point, for example, a certain position information precision level indicates the longitude and latitude precision corresponding to 2 digits after the decimal point. The position information accuracy level corresponding to the position information acquisition request means a position information accuracy level of the position information requested by the position information acquisition request.
Fig. 4 is a schematic flowchart of a process of determining a position information accuracy level corresponding to a position information acquisition request according to an embodiment of the present specification, and as shown in fig. 4, in an embodiment, determining the position information accuracy level corresponding to the position information acquisition request specifically includes:
step S402, if the target application is a trip application, determining that the position information precision level is the highest level, and if the target application is not the trip application, judging whether position information is returned to the target application within a second preset time range;
step S404, if the position information is returned, the position information precision level is determined to be higher than the position information precision level of the position information returned to the target application in the previous time, and if the position information is not returned, whether the standard position information precision level corresponding to the application type of the target application is recorded or not is judged;
in step S406, if a record is made, the recorded standard positional information accuracy level is set as the positional information accuracy level corresponding to the positional information acquisition request, and if not, the default positional information accuracy level is set as the positional information accuracy level corresponding to the positional information acquisition request.
The application type of the target application can be acquired from an application store and the like, and if the target application is a trip type application, such as a navigation application or a map type application, it is determined that the position information accuracy level corresponding to the position information acquisition request is the highest level, that is, the position information with the highest accuracy is returned to the target application based on the position information acquisition request, so that the map or navigation application can better serve the user. The position information obtained by the operating system of the user terminal is usually the position information with the highest accuracy. And if the target application is not the travel application, judging whether position information is returned to the target application within a second preset time range. The second preset time range and the second preset time range of the previous text are the same concept, the action can be the same as the action of the previous text, and whether the position information with the position information accuracy level lower than the set level is returned to the target application in the second preset time range or not is judged.
If the position information is returned, the accuracy of the position information returned last time is low, and the target application may request position information with higher accuracy, so that the accuracy level of the position information corresponding to the position information acquisition request is determined to be higher than the accuracy level of the position information returned to the target application last time, and the position information with higher accuracy is returned to the target application based on the position information acquisition request. If not, judging whether the standard position information precision level corresponding to the application type of the target application is recorded or not.
In this embodiment, the standard position information accuracy level corresponding to other types of applications except for the travel type may be determined, and a specific determination process will be described in detail later. And if the judgment result shows that the standard position information precision level corresponding to the application type of the target application is recorded, taking the recorded standard position information precision level as the position information precision level corresponding to the position information acquisition request so as to return the position information to the target application according to the position information precision level, if the judgment result shows that the standard position information precision level corresponding to the application type of the target application is recorded, acquiring a prestored default position information precision level, and taking the default position information precision level as the position information precision level corresponding to the position information acquisition request so as to return the position information to the target application according to the default position information precision level.
In general, it is possible to specify a standard positional information accuracy level corresponding to an application of a class other than the travel class, and when the target application requests the positional information, if the target application is not the travel class application, return the positional information to the target application based on the standard positional information accuracy level corresponding to the target application. In some cases, the standard position information accuracy level corresponding to the application category where the target application is located cannot be successfully determined, and then a preset default position information accuracy level may be used as the position information accuracy level corresponding to the target application, and position information may be returned to the target application based on the default position information accuracy level. Wherein the default position information accuracy level can be a preset level.
After the position information accuracy level corresponding to the position information acquisition request is determined, in step S106, it is determined whether valid position information corresponding to the position information accuracy level is cached. Fig. 5 is a schematic flowchart of a process of determining whether valid location information is cached, according to an embodiment of the present disclosure, as shown in fig. 5, in an embodiment, determining whether valid location information corresponding to the location information precision level is cached specifically as follows:
step S502, judging whether the position information meeting the position information precision level is cached or not;
step S504, if not, determining that effective position information corresponding to the position information precision level is not cached, and if so, judging whether the cached position information is invalid according to the moving speed of the user terminal and the time for obtaining the cached position information by positioning;
in step S506, if the valid location information corresponding to the location information accuracy level is invalid, it is determined that valid location information corresponding to the location information accuracy level is not cached, and if the valid location information is not invalid, it is determined that valid location information corresponding to the location information accuracy level is cached.
First, it is determined whether or not the position information satisfying the position information accuracy level is cached. For example, when the accuracy level of the location information requires that the location information is latitude and longitude, if the location information is accurate to 4 bits behind the decimal point, whether the latitude and longitude information accurate to 4 bits behind the decimal point is cached in the cache is checked.
If not, it is determined that valid location information corresponding to the location information accuracy level is not cached, which means that location information is not cached in one case, and cached location information does not meet or exceed the requirement of the location information accuracy level in another case. If the location information is cached, it is determined whether the cached location information is invalid according to the moving speed of the user terminal and the time for obtaining the cached location information by positioning, considering that the cached location information may be invalid if the user terminal moves for a long distance in a short time.
Here, a rule of invalidation of the location information may be preset, for example, when the moving speed of the user terminal is less than V1 and the time of locating the cached location information does not exceed the time duration T1 from the current time, it is determined that the cached location information is not invalidated, when the moving speed of the user terminal is greater than or equal to V1 and less than V2 and the time of locating the cached location information does not exceed the time duration T2 from the current time, and when the moving speed of the user terminal is greater than or equal to V3, it is determined that the cached location information is invalidated whenever the location information is located. And judging whether the cached position information is invalid or not based on a preset invalidation rule by combining the moving speed of the user terminal and the time for obtaining the cached position information by positioning.
If the valid position information corresponding to the position information precision level is not cached, the valid position information corresponding to the position information precision level is cached.
In the embodiment, whether the cached position information is invalid or not is judged by combining the moving speed of the user terminal and the time for obtaining the cached position information by positioning, and the effect of accurately judging whether the cached position information is invalid or not is achieved by considering the influence of the moving condition of the user terminal and the data caching duration on the position accuracy degree of the user terminal.
In the step S108, if it is determined that valid location information corresponding to the location information accuracy level is cached, the cached valid location information is returned to the target application, so that location information of a required accuracy level can be returned to the target application without extra power consumption in a case where the user terminal operating system is not required to perform a positioning operation. On the contrary, if the valid location information corresponding to the location information accuracy level is determined not to be cached, the location information is requested to the operating system of the user terminal, and the valid location information corresponding to the location information accuracy level is returned to the target application based on the requested location information.
Fig. 6 is a schematic flowchart of a process of returning effective location information corresponding to the location information accuracy level to a target application according to an embodiment of the present specification, and as shown in fig. 6, the process specifically includes:
step S602, determining the processing mode of the requested position information according to the precision level of the requested position information and the precision level of the position information corresponding to the position information acquisition request;
step S604, based on the processing mode, processing the position information requested to be obtained to obtain effective position information corresponding to the position information precision level;
step S606, the valid location information is returned to the target application.
Specifically, when the operating system is requested for location information, the operating system returns the location information with higher accuracy, and usually returns the most accurate location information (i.e., the highest level mentioned above) that the operating system can locate. After the position information returned by the operating system is obtained, the processing mode of the position information obtained by the request is determined according to the precision level of the position information obtained by the request and the precision level of the position information corresponding to the position information obtaining request.
For example, the latitude and longitude returned by the operating system is accurate to 6 bits after the decimal point, and the accuracy level of the position information corresponding to the position information obtaining request requires that the latitude and longitude is accurate to 2 bits after the decimal point, so that the processing mode for determining the position information obtained by the request is as follows: the last 4 bits of the decimal point are omitted by rounding. Of course, if the accuracy level of the requested location information is less than the accuracy level of the location information corresponding to the location information obtaining request, the requested location information cannot be processed, and at this time, the intelligent positioning service may perform error reporting processing. For example, if the longitude and latitude returned by the operating system is accurate to 2 bits after the decimal point, and the accuracy level of the position information corresponding to the position information acquisition request requires that the longitude and latitude is accurate to 6 bits after the decimal point, the position information acquired by the request cannot be processed, and the intelligent positioning service can perform error reporting processing at this time.
After the processing mode of the requested position information is determined, the requested position information is processed based on the processing mode, and effective position information corresponding to the position information precision level is obtained. For example, the last four bits of the requested position information are rounded to obtain the effective position information corresponding to the accuracy level of the position information.
And finally, sending the effective position information obtained by processing to the target application, thereby meeting the positioning requirement of the target application and ensuring the normal operation of the target application based on a real-time positioning and data processing mode.
In one embodiment, after a position information acquisition request sent by a target application is acquired, whether a user terminal is in a preset non-working mode is judged, if yes, the position information acquisition request is intercepted, and if not, a step of judging whether the position information acquisition request is a redundant request based on an application category of the target application is executed.
The preset non-working mode may be a screen locking mode, or may be that no user operation is performed in a certain time period in the screen unlocking mode, for example, no user operation is performed in ten minutes in the screen unlocking mode. When it is determined that the user terminal is in the non-operating mode, it may be determined that the user terminal does not have a positioning requirement, and thus the location information acquisition request is intercepted, for example, the location information acquisition request is not responded to or a null value is returned to the target application. And when the user terminal is determined not to be in the non-working mode, executing the step of judging whether the position information acquisition request is a redundant request or not based on the application type of the target application.
It has been described above that a respective preset request frequency threshold can be calculated for each class of applications, the preset request frequency threshold being used to indicate a reasonable location request frequency for each application in the respective application class. Taking the application category of the target application as an example, in an embodiment, the intelligent positioning service may calculate the preset request frequency threshold of the application category of the target application for the location information in the following manner, and it can be understood that the preset request frequency thresholds corresponding to other application categories may also be calculated by the same method:
(1) counting each application in the application category where the target application is located, and according to the historical request frequency of the position information within a preset time length;
(2) and determining a preset request frequency threshold value of the application category where the target application is located for the position information based on the historical request frequency.
The preset time period may be, for example, 24 hours before the action of counting the historical request frequency is performed. And counting the historical request frequency of each application in the application category where the target application is located for the position information within 24 hours before the current time, wherein each application corresponds to one historical request frequency. Each application in the application category in which the target application is located as referred to herein may be each application in an application store, and the user terminal is not required to install each application in its entirety. The historical frequency of requests for location information for each application in the application category in which the target application is located may be obtained from the network or otherwise obtained for 24 hours prior to the current time.
Then, the historical request frequency of each application is averaged to obtain a preset request frequency threshold value of the application type where the target application is located for the position information. In one embodiment, the historical request frequency of each application for the location information in the application category where the target application is located within 24 hours of the previous day may be counted at 0 point of each day, an average value of the historical request frequencies of the applications is calculated to serve as a preset request frequency threshold value of the application category where the target application is located for the location information on a new day, and the preset request frequency threshold value of the application category where the target application is located for the location information is repeatedly recalculated at the next 0 point, so that the effect of updating the preset request frequency threshold value every day is achieved.
The preset request frequency threshold value aiming at the position information of the corresponding application category is obtained by averaging the historical request frequency of each application in the category, so that the preset request frequency threshold value can represent the reasonable request frequency of the position information of the corresponding application category, and whether the position information acquisition request of the target application is a redundant request is judged based on the preset request frequency threshold value.
In an embodiment, the intelligent positioning service may calculate the standard position information accuracy level corresponding to the application category where the target application is located in the following manner, and it can be understood that the standard position information accuracy level corresponding to other application categories may also be calculated by the same method:
(1) determining the precision level of historical used position information of each application in the application category where the target application is located;
(2) and determining the standard position information precision level corresponding to the application category of the target application based on the precision level of the historical used position information of each application in the application category of the target application.
Firstly, determining the precision level of historical used position information of each application in the application category where the target application is located, taking longitude and latitude as the position information as an example, the precision level can be represented by the number of digits reserved behind a decimal point, wherein the level number is equal to the number of digits, and the higher the number of digits is, the higher the level is. Each application in the application category in which the target application is located as referred to herein may be each application in an application store, and the user terminal is not required to install each application in its entirety. The level of accuracy of the historically used location information for each application in the application category in which the target application is located may be obtained from the network or by other means.
Then, calculating the average value of the precision levels of the historical used position information of each application in the application category where the target application is located, and determining the standard position information precision level corresponding to the application category where the target application is located according to the average value.
For example, there are three applications ABC in the application category where the target application is located, the accuracy levels are 3, 4, and 5, respectively, the average value is 4, and the accuracy level 4 is used as the standard position information accuracy level corresponding to the application category where the target application is located. For another example, there are three application classes to which the target application belongs, ABC is used among the application classes to which a uses the position information with the accuracy class 3 30 times, and uses the position information with the accuracy class 4 10 times, B uses the position information with the accuracy class 4 30 times, and uses the position information with the accuracy class 5 10 times, and C uses the position information with the accuracy class 5 10 times, and if the average value is equal to (30 × 3+10 + 4+30 + 4+10 + 5+10 × 5)/(30+10+30+10+10) ═ 3.89, the accuracy class is rounded to 4, and the accuracy class 4 is set as the standard accuracy class of the position information corresponding to the application class to which the target application belongs.
In one embodiment, a preset request frequency threshold and a standard position information precision level corresponding to each application can be set in a user-defined mode, whether each application has positioning authority or not can be set, and the like. The above method processes are all executed by the intelligent positioning service in the user terminal, and it can be understood that the intelligent positioning service can be registered in the user terminal and also can be unregistered from the user terminal.
The application effect of the above-described method flow is illustrated by two specific examples.
Scenario example 1:
the intelligent positioning service user King does not intercept the positioning request of the navigation application under the condition that the King uses the application navigation during driving, and the King does not encounter the condition of inaccurate navigation positioning during driving. In the navigation process, the intelligent positioning service acquires the positioning requests of other applications and returns the cached positioning information of the navigation applications to the other applications, so that the positioning requests of the other applications are prevented from being processed by an operating system, and the power consumption of the mobile phone is reduced.
Scenario example 2:
the intelligent positioning service user King purchases in online shopping application, orders in consumption application and other operations, the positioning is normally used, the normal use of the user is not influenced, but the intelligent positioning service intercepts a plurality of redundant positioning requests and returns null values to the redundant positioning requests, the power consumption of the mobile phone is greatly reduced, and the service life of the mobile phone is prolonged.
In summary, according to the embodiment, redundant location information acquisition requests sent by the target application can be identified and intercepted, and when the cached location information meets the requirements of the target application, the cached location information can be returned to the target application, and the location information is not requested from the operating system of the user terminal any more, so that excessive location operations executed by the user terminal are avoided, power consumption of the user terminal is saved, and moreover, the problem of repeated location is avoided because the location results of multiple location operations executed by the user terminal are the same.
Fig. 7 is a schematic diagram illustrating a module composition of an application positioning processing apparatus according to an embodiment of the present disclosure, and as shown in fig. 7, the apparatus is applied to a user terminal, and includes:
a request determining unit 71, configured to obtain a location information obtaining request sent by a target application, and determine whether the location information obtaining request is a redundant request based on an application type of the target application;
a request processing unit 72, configured to intercept the location information obtaining request if the location information obtaining request is determined to be a redundant request, and determine a location information accuracy level corresponding to the location information obtaining request if the location information obtaining request is not determined to be a redundant request;
a cache determination unit 73 configured to determine whether valid location information corresponding to the location information accuracy level is cached;
an information returning unit 74, configured to return the cached valid location information to the target application if the location information is cached, and request location information from an operating system of the user terminal if the location information is not cached, and return valid location information corresponding to the location information accuracy level to the target application based on the requested location information.
Optionally, the request determining unit is specifically configured to: if the target application is a trip application, determining that the position information acquisition request is not a redundant request, and if the target application is not a trip application, acquiring a preset request frequency threshold value of an application type where the target application is located for position information; if the request frequency of the target application for the position information in a first preset time range is larger than the preset request frequency threshold, determining that the position information acquisition request is a redundant request, otherwise, determining that the position information acquisition request is not a redundant request.
Optionally, the request processing unit is specifically configured to: if the target application is a trip application, determining that the position information precision level is the highest level, and if the target application is not the trip application, judging whether position information is returned to the target application within a second preset time range; if the position information is returned, determining that the position information precision level is higher than the position information precision level of the position information returned to the target application at the previous time, and if the position information is not returned, judging whether a standard position information precision level corresponding to the application type where the target application is located is recorded; and if the position information is recorded, the recorded standard position information precision level is used as the position information precision level corresponding to the position information acquisition request, and if the position information is not recorded, the default position information precision level is used as the position information precision level corresponding to the position information acquisition request.
Optionally, the cache determining unit is specifically configured to: judging whether the position information meeting the position information precision level is cached or not; if the current position information is not cached, determining that effective position information corresponding to the position information precision level is not cached, and if the current position information is cached, judging whether the cached position information is invalid or not according to the moving speed of the user terminal and the time for obtaining the cached position information by positioning; if the position information is invalid, determining that valid position information corresponding to the position information precision level is not cached, and if the position information is invalid, determining that valid position information corresponding to the position information precision level is cached.
Optionally, the information returning unit is specifically configured to: determining a processing mode of the position information obtained by the request according to the precision level of the position information obtained by the request and the precision level of the position information corresponding to the position information obtaining request; processing the position information requested to be obtained based on the processing mode to obtain effective position information corresponding to the position information precision level; and returning the effective position information to the target application.
Optionally, the apparatus further includes a mode determining unit, configured to: after a position information acquisition request sent by the target application is acquired, judging whether the user terminal is in a preset non-working mode; if yes, intercepting the position information acquisition request, and if not, executing a step of judging whether the position information acquisition request is a redundant request or not based on the application type of the target application.
Optionally, the apparatus further comprises a threshold determination unit configured to: counting each application in the application category where the target application is located, and according to the historical request frequency of the position information within a preset time length; and determining a preset request frequency threshold value of the application category where the target application is located for the position information based on the historical request frequency.
Optionally, the apparatus further comprises a level determining unit configured to: determining the precision level of historical used position information of each application in the application category where the target application is located; and determining the standard position information precision level corresponding to the application type of the target application based on the precision level of the historical used position information of each application in the application type of the target application.
In this embodiment, the redundant location information acquisition request sent by the target application can be identified and intercepted, and when the cached location information meets the requirement of the target application, the cached location information can be returned to the target application, and the location information is not requested from the operating system of the user terminal any more, so that the user terminal is prevented from executing excessive location operations, the power consumption of the user terminal is reduced, and moreover, the location results of multiple location operations executed by the user terminal are prevented from being identical, and the problem of repeated location is avoided.
The application positioning processing device provided in an embodiment of the present specification can implement each process in the foregoing application positioning processing method embodiment, and achieve the same function and effect, which is not repeated here.
Further, an embodiment of the present specification further provides an application positioning processing device, fig. 8 is a schematic structural diagram of the application positioning processing device provided in an embodiment of the present specification, and as shown in fig. 8, the device includes: a memory 801, a processor 802, a bus 803, and a communication interface 804. The memory 801, processor 802, and communication interface 804 communicate via the bus 803, and the communication interface 804 may include input and output interfaces including, but not limited to, a keyboard, mouse, display, microphone, and the like.
In fig. 8, the memory 801 stores thereon computer-executable instructions executable on the processor 802, and when executed by the processor 802, implement the following processes:
acquiring a position information acquisition request sent by a target application, and judging whether the position information acquisition request is a redundant request or not based on the application type of the target application;
if the position information acquisition request is determined to be a redundant request, intercepting the position information acquisition request, and if the position information acquisition request is determined not to be a redundant request, determining the position information precision level corresponding to the position information acquisition request;
judging whether effective position information corresponding to the position information precision level is cached or not;
and if the valid position information is not cached, requesting the position information from an operating system of the user terminal, and returning the valid position information corresponding to the position information precision level to the target application based on the position information obtained by the request.
Optionally, when executed by the processor, the determining whether the location information obtaining request is a redundant request based on the application category of the target application includes: if the target application is a trip application, determining that the position information acquisition request is not a redundant request, and if the target application is not a trip application, acquiring a preset request frequency threshold value of an application type where the target application is located for position information; if the request frequency of the target application for the position information in a first preset time range is larger than the preset request frequency threshold, determining that the position information acquisition request is a redundant request, otherwise, determining that the position information acquisition request is not a redundant request.
Optionally, when executed by the processor, the determining a position information accuracy level corresponding to the position information obtaining request includes: if the target application is a trip application, determining that the position information precision level is the highest level, and if the target application is not the trip application, judging whether position information is returned to the target application within a second preset time range; if the position information is returned, determining that the position information precision level is higher than the position information precision level of the position information returned to the target application at the previous time, and if the position information is not returned, judging whether a standard position information precision level corresponding to the application type where the target application is located is recorded; and if the position information is recorded, the recorded standard position information precision level is used as the position information precision level corresponding to the position information acquisition request, and if the position information is not recorded, the default position information precision level is used as the position information precision level corresponding to the position information acquisition request.
Optionally, the computer-executable instructions, when executed by the processor, determining whether valid location information corresponding to the location information accuracy level is cached comprises: judging whether the position information meeting the position information precision level is cached or not; if the current position information is not cached, determining that effective position information corresponding to the position information precision level is not cached, and if the current position information is cached, judging whether the cached position information is invalid or not according to the moving speed of the user terminal and the time for obtaining the cached position information by positioning; if the position information is invalid, determining that valid position information corresponding to the position information precision level is not cached, and if the position information is invalid, determining that valid position information corresponding to the position information precision level is cached.
Optionally, when executed by the processor, the computer-executable instructions return valid location information corresponding to the location information accuracy level to the target application based on the requested location information, including: determining a processing mode of the position information obtained by the request according to the precision level of the position information obtained by the request and the precision level of the position information corresponding to the position information obtaining request; processing the position information requested to be obtained based on the processing mode to obtain effective position information corresponding to the position information precision level; and returning the effective position information to the target application.
Optionally, the computer executable instructions, when executed by the processor, further comprise: after a position information acquisition request sent by the target application is acquired, judging whether the user terminal is in a preset non-working mode; if yes, intercepting the position information acquisition request, and if not, executing a step of judging whether the position information acquisition request is a redundant request or not based on the application type of the target application.
Optionally, the computer executable instructions, when executed by the processor, further comprise: counting each application in the application category where the target application is located, and according to the historical request frequency of the position information within a preset time length; and determining a preset request frequency threshold value of the application category where the target application is located for the position information based on the historical request frequency.
Optionally, the computer executable instructions, when executed by the processor, further comprise: determining the precision level of historical used position information of each application in the application category where the target application is located; and determining the standard position information precision level corresponding to the application type of the target application based on the precision level of the historical used position information of each application in the application type of the target application.
In this embodiment, the redundant location information acquisition request sent by the target application can be identified and intercepted, and when the cached location information meets the requirement of the target application, the cached location information can be returned to the target application, and the location information is not requested from the operating system of the user terminal any more, so that the user terminal is prevented from executing excessive location operations, the power consumption of the user terminal is reduced, and moreover, the location results of multiple location operations executed by the user terminal are prevented from being identical, and the problem of repeated location is avoided.
The application positioning processing device provided in an embodiment of the present specification can implement each process in the foregoing application positioning processing method embodiment, and achieve the same function and effect, which is not repeated here.
Further, another embodiment of the present specification also provides a computer-readable storage medium for storing computer-executable instructions, which when executed by a processor implement the following process:
acquiring a position information acquisition request sent by a target application, and judging whether the position information acquisition request is a redundant request or not based on the application type of the target application;
if the position information acquisition request is determined to be a redundant request, intercepting the position information acquisition request, and if the position information acquisition request is determined not to be a redundant request, determining the position information precision level corresponding to the position information acquisition request;
judging whether effective position information corresponding to the position information precision level is cached or not;
and if the valid position information is not cached, requesting the position information from an operating system of the user terminal, and returning the valid position information corresponding to the position information precision level to the target application based on the position information obtained by the request.
Optionally, when executed by a processor, the determining whether the location information obtaining request is a redundant request based on the application category of the target application includes: if the target application is a trip application, determining that the position information acquisition request is not a redundant request, and if the target application is not a trip application, acquiring a preset request frequency threshold value of an application type where the target application is located for position information; if the request frequency of the target application for the position information in a first preset time range is larger than the preset request frequency threshold, determining that the position information acquisition request is a redundant request, otherwise, determining that the position information acquisition request is not a redundant request.
Optionally, when executed by a processor, the determining a position information accuracy level corresponding to the position information obtaining request includes: if the target application is a trip application, determining that the position information precision level is the highest level, and if the target application is not the trip application, judging whether position information is returned to the target application within a second preset time range; if the position information is returned, determining that the position information precision level is higher than the position information precision level of the position information returned to the target application at the previous time, and if the position information is not returned, judging whether a standard position information precision level corresponding to the application type where the target application is located is recorded; and if the position information is recorded, the recorded standard position information precision level is used as the position information precision level corresponding to the position information acquisition request, and if the position information is not recorded, the default position information precision level is used as the position information precision level corresponding to the position information acquisition request.
Optionally, the determining whether valid location information corresponding to the location information accuracy level is cached by the processor comprises: judging whether the position information meeting the position information precision level is cached or not; if the current position information is not cached, determining that effective position information corresponding to the position information precision level is not cached, and if the current position information is cached, judging whether the cached position information is invalid or not according to the moving speed of the user terminal and the time for obtaining the cached position information by positioning; if the position information is invalid, determining that valid position information corresponding to the position information precision level is not cached, and if the position information is invalid, determining that valid position information corresponding to the position information precision level is cached.
Optionally, when executed by the processor, the computer-executable instructions return, to the target application, valid location information corresponding to the location information accuracy level based on the requested location information, including: determining a processing mode of the position information obtained by the request according to the precision level of the position information obtained by the request and the precision level of the position information corresponding to the position information obtaining request; processing the position information requested to be obtained based on the processing mode to obtain effective position information corresponding to the position information precision level; and returning the effective position information to the target application.
Optionally, the computer executable instructions, when executed by the processor, further comprise: after a position information acquisition request sent by the target application is acquired, judging whether the user terminal is in a preset non-working mode; if yes, intercepting the position information acquisition request, and if not, executing a step of judging whether the position information acquisition request is a redundant request or not based on the application type of the target application.
Optionally, the computer executable instructions, when executed by the processor, further comprise: counting each application in the application category where the target application is located, and according to the historical request frequency of the position information within a preset time length; and determining a preset request frequency threshold value of the application category where the target application is located for the position information based on the historical request frequency.
Optionally, the computer executable instructions, when executed by the processor, further comprise: determining the precision level of historical used position information of each application in the application category where the target application is located; and determining the standard position information precision level corresponding to the application type of the target application based on the precision level of the historical used position information of each application in the application type of the target application.
In this embodiment, the redundant location information acquisition request sent by the target application can be identified and intercepted, and when the cached location information meets the requirement of the target application, the cached location information can be returned to the target application, and the location information is not requested from the operating system of the user terminal any more, so that the user terminal is prevented from executing excessive location operations, the power consumption of the user terminal is reduced, and moreover, the location results of multiple location operations executed by the user terminal are prevented from being identical, and the problem of repeated location is avoided.
When executed by a processor, the computer-executable instructions stored in the storage medium provided in an embodiment of the present specification can implement the processes in the foregoing embodiment of the application positioning processing method, and achieve the same functions and effects, which are not repeated here.
The computer-readable storage medium includes a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only an example of the present specification and is not intended to limit the present document. Various modifications and changes may occur to the embodiments described herein, as will be apparent to those skilled in the art. Any modifications, equivalents, improvements, etc. which come within the spirit and principle of the disclosure are intended to be included within the scope of the claims of this document.

Claims (14)

1. An application positioning processing method is applied to a user terminal, and comprises the following steps:
acquiring a position information acquisition request sent by a target application, and judging whether the position information acquisition request is a redundant request or not based on the application type of the target application;
if the position information acquisition request is determined to be a redundant request, intercepting the position information acquisition request, and if the position information acquisition request is determined not to be a redundant request, determining the position information precision level corresponding to the position information acquisition request;
judging whether effective position information corresponding to the position information precision level is cached or not;
and if the valid position information is not cached, requesting the position information from an operating system of the user terminal, and returning the valid position information corresponding to the position information precision level to the target application based on the position information obtained by the request.
2. The method of claim 1, wherein determining whether the location information acquisition request is a redundant request based on the application class of the target application comprises:
if the target application is a trip application, determining that the position information acquisition request is not a redundant request, and if the target application is not a trip application, acquiring a preset request frequency threshold value of an application type where the target application is located for position information;
if the request frequency of the target application for the position information in a first preset time range is larger than the preset request frequency threshold, determining that the position information acquisition request is a redundant request, otherwise, determining that the position information acquisition request is not a redundant request.
3. The method of claim 1, wherein determining the accuracy level of the location information corresponding to the location information acquisition request comprises:
if the target application is a trip application, determining that the position information precision level is the highest level, and if the target application is not the trip application, judging whether position information is returned to the target application within a second preset time range;
if the position information is returned, determining that the position information precision level is higher than the position information precision level of the position information returned to the target application at the previous time, and if the position information is not returned, judging whether a standard position information precision level corresponding to the application type where the target application is located is recorded;
and if the position information is recorded, the recorded standard position information precision level is used as the position information precision level corresponding to the position information acquisition request, and if the position information is not recorded, the default position information precision level is used as the position information precision level corresponding to the position information acquisition request.
4. The method of claim 1, wherein determining whether valid location information corresponding to the location information accuracy level is cached comprises:
judging whether the position information meeting the position information precision level is cached or not;
if the current position information is not cached, determining that effective position information corresponding to the position information precision level is not cached, and if the current position information is cached, judging whether the cached position information is invalid or not according to the moving speed of the user terminal and the time for obtaining the cached position information by positioning;
if the position information is invalid, determining that valid position information corresponding to the position information precision level is not cached, and if the position information is invalid, determining that valid position information corresponding to the position information precision level is cached.
5. The method of claim 1, wherein returning valid location information corresponding to the location information accuracy level to the target application based on the requested location information comprises:
determining a processing mode of the position information obtained by the request according to the precision level of the position information obtained by the request and the precision level of the position information corresponding to the position information obtaining request;
processing the position information requested to be obtained based on the processing mode to obtain effective position information corresponding to the position information precision level;
and returning the effective position information to the target application.
6. The method of claim 1, further comprising:
after a position information acquisition request sent by the target application is acquired, judging whether the user terminal is in a preset non-working mode;
if yes, intercepting the position information acquisition request, and if not, executing a step of judging whether the position information acquisition request is a redundant request or not based on the application type of the target application.
7. The method of claim 2, further comprising:
counting each application in the application category where the target application is located, and according to the historical request frequency of the position information within a preset time length;
and determining a preset request frequency threshold value of the application category where the target application is located for the position information based on the historical request frequency.
8. The method of claim 3, further comprising:
determining the precision level of historical used position information of each application in the application category where the target application is located;
and determining the standard position information precision level corresponding to the application type of the target application based on the precision level of the historical used position information of each application in the application type of the target application.
9. An application positioning processing device, applied to a user terminal, includes:
the request judging unit is used for acquiring a position information acquisition request sent by a target application and judging whether the position information acquisition request is a redundant request or not based on the application type of the target application;
the request processing unit is used for intercepting the position information acquisition request if the position information acquisition request is determined to be a redundant request, and determining the position information precision level corresponding to the position information acquisition request if the position information acquisition request is not determined to be the redundant request;
the cache judging unit is used for judging whether effective position information corresponding to the position information precision level is cached or not;
and an information returning unit, configured to return the cached valid location information to the target application if the location information is cached, and request location information from an operating system of the user terminal if the location information is not cached, and return valid location information corresponding to the location information accuracy level to the target application based on the requested location information.
10. The apparatus according to claim 9, wherein the request determining unit is specifically configured to:
if the target application is a trip application, determining that the position information acquisition request is not a redundant request, and if the target application is not a trip application, acquiring a preset request frequency threshold value of an application type where the target application is located for position information;
if the request frequency of the target application for the position information in a first preset time range is larger than the preset request frequency threshold, determining that the position information acquisition request is a redundant request, otherwise, determining that the position information acquisition request is not a redundant request.
11. The apparatus according to claim 9, wherein the request processing unit is specifically configured to:
if the target application is a trip application, determining that the position information precision level is the highest level, and if the target application is not the trip application, judging whether position information is returned to the target application within a second preset time range;
if the position information is returned, determining that the position information precision level is higher than the position information precision level of the position information returned to the target application at the previous time, and if the position information is not returned, judging whether a standard position information precision level corresponding to the application type where the target application is located is recorded;
and if the position information is recorded, the recorded standard position information precision level is used as the position information precision level corresponding to the position information acquisition request, and if the position information is not recorded, the default position information precision level is used as the position information precision level corresponding to the position information acquisition request.
12. The apparatus according to claim 9, wherein the cache determination unit is specifically configured to:
judging whether the position information meeting the position information precision level is cached or not;
if the current position information is not cached, determining that effective position information corresponding to the position information precision level is not cached, and if the current position information is cached, judging whether the cached position information is invalid or not according to the moving speed of the user terminal and the time for obtaining the cached position information by positioning;
if the position information is invalid, determining that valid position information corresponding to the position information precision level is not cached, and if the position information is invalid, determining that valid position information corresponding to the position information precision level is cached.
13. The apparatus according to claim 9, wherein the information returning unit is specifically configured to:
determining a processing mode of the position information obtained by the request according to the precision level of the position information obtained by the request and the precision level of the position information corresponding to the position information obtaining request;
processing the position information requested to be obtained based on the processing mode to obtain effective position information corresponding to the position information precision level;
and returning the effective position information to the target application.
14. The apparatus of claim 9, further comprising a mode determination unit configured to:
after a position information acquisition request sent by the target application is acquired, judging whether the user terminal is in a preset non-working mode;
if yes, intercepting the position information acquisition request, and if not, executing a step of judging whether the position information acquisition request is a redundant request or not based on the application type of the target application.
CN202111488060.9A 2021-12-07 2021-12-07 Application positioning processing method and device Active CN114205455B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111488060.9A CN114205455B (en) 2021-12-07 2021-12-07 Application positioning processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111488060.9A CN114205455B (en) 2021-12-07 2021-12-07 Application positioning processing method and device

Publications (2)

Publication Number Publication Date
CN114205455A true CN114205455A (en) 2022-03-18
CN114205455B CN114205455B (en) 2023-04-25

Family

ID=80651212

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111488060.9A Active CN114205455B (en) 2021-12-07 2021-12-07 Application positioning processing method and device

Country Status (1)

Country Link
CN (1) CN114205455B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115412633A (en) * 2022-08-22 2022-11-29 深圳市神州路路通网络科技有限公司 Position information acquisition method, device, terminal equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106658412A (en) * 2016-12-14 2017-05-10 北京小米移动软件有限公司 Locating method and apparatus
CN106953928A (en) * 2017-04-28 2017-07-14 上海与德科技有限公司 The acquisition methods and device of positional information
CN107704754A (en) * 2017-08-22 2018-02-16 努比亚技术有限公司 A kind of terminal control method and device, computer-readable recording medium
CN107862217A (en) * 2017-10-31 2018-03-30 努比亚技术有限公司 A kind of location information acquisition method, mobile terminal and computer-readable storage medium
CN108076429A (en) * 2017-12-13 2018-05-25 广东欧珀移动通信有限公司 Localization method, device, storage medium and mobile terminal
CN108151730A (en) * 2017-12-13 2018-06-12 广东欧珀移动通信有限公司 Position control method, device, storage medium and terminal device
CN110830658A (en) * 2019-11-29 2020-02-21 捷开通讯(深圳)有限公司 Mobile terminal control method and device, mobile terminal and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106658412A (en) * 2016-12-14 2017-05-10 北京小米移动软件有限公司 Locating method and apparatus
CN106953928A (en) * 2017-04-28 2017-07-14 上海与德科技有限公司 The acquisition methods and device of positional information
CN107704754A (en) * 2017-08-22 2018-02-16 努比亚技术有限公司 A kind of terminal control method and device, computer-readable recording medium
CN107862217A (en) * 2017-10-31 2018-03-30 努比亚技术有限公司 A kind of location information acquisition method, mobile terminal and computer-readable storage medium
CN108076429A (en) * 2017-12-13 2018-05-25 广东欧珀移动通信有限公司 Localization method, device, storage medium and mobile terminal
CN108151730A (en) * 2017-12-13 2018-06-12 广东欧珀移动通信有限公司 Position control method, device, storage medium and terminal device
CN110830658A (en) * 2019-11-29 2020-02-21 捷开通讯(深圳)有限公司 Mobile terminal control method and device, mobile terminal and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115412633A (en) * 2022-08-22 2022-11-29 深圳市神州路路通网络科技有限公司 Position information acquisition method, device, terminal equipment and storage medium

Also Published As

Publication number Publication date
CN114205455B (en) 2023-04-25

Similar Documents

Publication Publication Date Title
CN107911487B (en) Information pushing method and device, server and readable storage medium
CN105992338B (en) Positioning method and device
WO2021012509A1 (en) Method, device, and computer storage medium for detecting abnormal account
CN109219953B (en) Alarm clock reminding method, electronic equipment and computer readable storage medium
CN111339200A (en) Data verification method and data verification system based on database synchronization
CN111787075A (en) Equipment positioning method and device
CN112039861B (en) Risk identification method and device, electronic equipment and computer readable storage medium
CN110650146A (en) Anti-cheating method and device and electronic equipment
WO2016127880A1 (en) Method and device for determining quality of offline positioning data
CN114205455B (en) Application positioning processing method and device
WO2017125092A1 (en) Number marking method and system
CN108966340B (en) Equipment positioning method and device
CN114189818A (en) Message sending method, device, server and storage medium
CN110599278A (en) Method, apparatus, and computer storage medium for aggregating device identifiers
CN113672669B (en) Data query method and device based on distributed storage
EP3433817B1 (en) Reliability metrics for real-time auctions
US20210258723A1 (en) Intelligent geofence provisioning
CN115834675A (en) Data pushing method, electronic equipment and storage medium
CN110907963B (en) Satellite positioning engine control method and device and electronic equipment
CN113515612A (en) Heiyou mobile phone number identification method and device
CN117743206B (en) Data storage method and device
KR100631033B1 (en) Local information providing system trough network and method thereof
CN110046167A (en) Data-updating method and system
CN113810992B (en) Data processing method and device
CN116017694B (en) Indoor terminal positioning method and device for multi-terminal signal interaction

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant