CN114205455B - Application positioning processing method and device - Google Patents

Application positioning processing method and device Download PDF

Info

Publication number
CN114205455B
CN114205455B CN202111488060.9A CN202111488060A CN114205455B CN 114205455 B CN114205455 B CN 114205455B CN 202111488060 A CN202111488060 A CN 202111488060A CN 114205455 B CN114205455 B CN 114205455B
Authority
CN
China
Prior art keywords
position information
request
target application
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.)
Active
Application number
CN202111488060.9A
Other languages
Chinese (zh)
Other versions
CN114205455A (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

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Position Fixing By Use Of Radio Waves (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

An embodiment of the present specification provides an application positioning processing method, apparatus, device, and storage medium, where 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; if the effective position information is cached, the effective position information is returned to the target application, if the effective position information is not cached, the position information is requested to an operating system of the user terminal, and the effective position information corresponding to the position information precision level is returned to the target application. Through the embodiment, the problem that excessive positioning operation consumes mobile phone electric quantity and repeated positioning is caused because multiple positioning results are probably the same can be solved.

Description

Application positioning processing method and device
Technical Field
The present document relates to the field of the internet, and in particular, to an application positioning processing method, apparatus, device, and storage medium.
Background
Currently, most application programs can acquire and use the location information of a mobile phone from an operating system of the mobile phone. In the conventional scheme, each time the application program needs to acquire the position information, a request is sent to the operating system of the 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 to acquire position information for multiple times in a short time, an operating system needs to respond to each request to perform positioning, so that excessive positioning operations consume the mobile phone electric quantity greatly, and the positioning results of the multiple times may be the same, thereby causing repeated positioning.
Disclosure of Invention
An objective of an embodiment of the present disclosure is to provide a method, an apparatus, a device, and a storage medium for positioning, so as to solve the problem that excessive positioning operations consume mobile phone power, and the positioning results of multiple times may be the same, thereby causing repeated positioning.
To solve the above technical problems, an embodiment of the present specification is implemented as follows:
in a first aspect, an embodiment of the present disclosure provides an application positioning processing method, applied to a user terminal, including:
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 a redundant request, determining a 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 effective position information is cached, returning the cached effective position information to the target application, and if the effective 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 a second aspect, another embodiment of the present disclosure 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 determined not to be a redundant request;
The buffer judgment unit is used for judging whether valid position information corresponding to the position information precision level is buffered;
and the information return unit is used for returning the cached effective position information to the target application if the effective position information is cached, requesting the position information from an operating system of the user terminal if the effective position information is not cached, 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 a third aspect, still another 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 localization process 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 as described in the first aspect above.
In one embodiment of the present disclosure, after acquiring a location information acquisition request sent by a target application, determining whether the location information acquisition request is a redundant request based on an application type of the target application, if yes, intercepting the location information acquisition request, if not, determining a location information precision level corresponding to the location information acquisition request, then determining whether valid location information corresponding to the location information precision level is cached, if cached, returning the cached valid location information to the target application, if not, requesting the location information from an operating system of the user terminal, and returning the valid location information corresponding to the location information precision level to the target application based on the location information obtained by the request. 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, so that the location information is not requested from the operating system of the user terminal, thereby avoiding the user terminal from executing excessive positioning operations, saving the power consumption of the user terminal, avoiding the problem that the positioning results of multiple positioning operations executed by the user terminal are the same, and avoiding repeated positioning.
Drawings
In order to more clearly illustrate the technical solution in one or more embodiments of the present description, the following description will briefly introduce the drawings that are needed in the embodiments or the description of the prior art, it is obvious that the drawings in the following description are only some embodiments described in the present description, and other drawings may be obtained according to these drawings without inventive effort to a person of ordinary skill in the art.
Fig. 1 is a flow chart of an application positioning processing method according to an embodiment of the present disclosure;
fig. 2 is a schematic flow chart of determining whether a location information obtaining request sent by a target application is a redundancy request according to an embodiment of the present disclosure;
fig. 3 is a schematic flow chart of determining whether a location information obtaining request sent by a target application is a redundancy request according to another embodiment of the present disclosure;
fig. 4 is a schematic flow chart 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 method for determining whether to cache valid location information according to an embodiment of the present disclosure;
FIG. 6 is a flowchart of returning valid location information corresponding to the location information accuracy level to a target application according to an embodiment of the present disclosure;
Fig. 7 is a schematic diagram of module composition of an application positioning processing device 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 enable a person skilled in the art to better understand the technical solutions in one or more embodiments of the present specification, the technical solutions in one or more embodiments of the present specification will be clearly and completely described below with reference to the drawings in one or more embodiments of the present specification, and it is obvious that the described embodiments are only some embodiments of the present specification, not all embodiments. All other embodiments, which can be made by one or more embodiments of the present disclosure without inventive faculty, are intended to be within the scope of the present disclosure.
An embodiment of the present disclosure provides an application positioning processing method, where the method is applied to a user terminal, and 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, a wearable device, and the like.
Fig. 1 is a flow chart of an application positioning processing method according to an embodiment of the present disclosure, 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, the position information acquisition request is intercepted, and if the redundant request is determined, the position information precision level corresponding to the position information acquisition request is determined;
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 acquiring a location information acquisition request sent by a target application, it is first determined, based on an application type of the target application, whether the location information acquisition request is a redundant request, if yes, the location information acquisition request is intercepted, if not, a location information precision level corresponding to the location information acquisition request is determined, then it is determined whether valid location information corresponding to the location information precision level is cached, if cached, the cached valid location information is returned to the target application, if not, location information is requested to an operating system of the user terminal, and based on the location information obtained by the request, valid location information corresponding to the location information precision 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, so that the location information is not requested from the operating system of the user terminal, thereby avoiding the user terminal from executing excessive positioning operations, saving the power consumption of the user terminal, avoiding the problem that the positioning results of multiple positioning operations executed by the user terminal are the same, and avoiding repeated positioning.
The user terminal is provided with an intelligent positioning service which can communicate with an operating system of the user terminal on the one hand and with various application programs in the user terminal on the other hand, and by which the flow in fig. 1 can be executed, and the specific procedure of the flow in fig. 1 is described below.
In step S102, the intelligent positioning service acquires a location information acquisition request sent by the target application. The target application may be any application program within the user terminal, without limitation. The location information acquisition request of the operating system sent by the target application to the user terminal is intercepted by the intelligent positioning service, so that the intelligent positioning service acquires the location 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 flow chart 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, as shown in fig. 2, in an embodiment, based on an application type of the target application, determining whether the location information obtaining request sent by the target application is a redundant request, specifically includes:
Step S202, if the target application is a travel application, determining that the position information acquisition request is not a redundant request, and if the target application is not a travel application, acquiring a preset request frequency threshold of an application category where the target application is located for the position information;
in step S204, 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, it is determined that the location information acquisition request is a redundant request, otherwise, it is determined that the location information acquisition request is not a redundant request.
First, the category information of the target application may be acquired from the application store or from the description information of the target application, thereby determining the 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 class application, it is determined that the above-described location information acquisition request is not a redundant request in view of the importance and necessity of the travel class application to acquire the location information. If the target application is not the travel application, acquiring a preset request frequency threshold of an application class where the target application is located for the position information, wherein the preset request frequency threshold is used for indicating reasonable position request frequencies of all application programs in the application class where the target application is located, and if the frequency of requesting the position information from an operating system of a user terminal in one of the application classes is greater than the preset request frequency threshold, the application position request is indicated to be 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 classifying each application, category description information of each application can be obtained from the application store, so as to determine the application category of each application.
Next, a request frequency of the target application for the location information within a first preset time range is acquired. The first preset time range may be, for example, an hour before or a certain period before the intelligent positioning service starts to calculate when intercepting the position information acquisition request sent by the target application. If the request frequency of the target application for the position information within the first preset time range is greater than the preset request frequency threshold of the application category of the target application for the position information, the frequency of the target application for requesting the position information from the user terminal within a period of time is too high, so that the position information acquisition request is determined to be a redundant request. Otherwise, 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 category of the target application for the location information, it is indicated that the frequency of the target application for requesting the location information from the user terminal within a period of time is reasonable, so that it is determined that the current location information acquisition request 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 the power consumption of the user terminal due to the positioning operation is reduced.
Fig. 3 is a schematic flow chart 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, as shown in fig. 3, in another embodiment, similarly to the above manner, based on an application class of the target application, whether the location information obtaining request sent by the target application is a redundant request is determined, specifically:
step S302, if the target application is a travel application, determining that the position information acquisition request is not a redundant request, and if the target application is not a travel application, judging whether position information with the position information accuracy level lower than a preset 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 of an application category of the target application aiming at the position information;
in step S306, 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, it is determined that the location information acquisition request is a redundant request, otherwise, it is determined that the location information acquisition request is not a redundant request.
First, similarly to the foregoing manner, if it is determined that the target application is a travel class application, it is determined that the above-described position information acquisition request is not a redundant request. If the target application is determined not to be the travel application, judging whether the position information with the position information precision level lower than the preset level is returned to the target application within the second preset time range.
The second preset time range may be, for example, within 5 seconds or within 3 seconds before the start of calculation when the intelligent positioning service intercepts the position information acquisition request sent by the target application, where the time length corresponding to the second preset time range is smaller than the time length corresponding to the first preset time range, and may be generally set to be a few seconds. The position information precision level is used for describing the precision of the position information, and when the position information is longitude and latitude information, the position information precision level can be represented by the number of bits behind decimal points, and the higher the position information precision level is, the more the number of bits behind decimal points is. The predetermined level may be a preset level, and the predetermined level may represent a corresponding position accuracy, for example, the predetermined level represents a 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 preset level is returned to the target application within the second preset time range, for example, the longitude and latitude information which is only marked to the 1 bit after the decimal point is returned, the returned position information accuracy is too low, and the target application may be requesting position information with higher accuracy.
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 the position information with the higher position information accuracy level is requested. Conversely, if no position information with the position information accuracy level lower than the preset level is returned to the target application within the second preset time range, similar to the previous steps, the preset request frequency threshold of the application type of the target application 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.
Similarly, 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 class of the target application for the location information, the current location information obtaining request is determined to be a redundant request. Otherwise, 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 class of the target application for the location information, determining that the current location information acquisition request is not a redundant request.
In this embodiment, by determining whether or not to return the position information with the position 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 position information with higher accuracy can be accurately identified, so that the required position information is accurately returned to the target application.
The above provides two ways of judging whether the position 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 obtaining request is a redundant request, and intercepting the location information obtaining request if the location information obtaining request is a redundant request, and continuing the flow in fig. 1 if the location information obtaining request is not a redundant request, it is possible to avoid the user terminal from executing the redundant positioning operation, and save the power consumption of the user terminal.
In step S104, if the redundant request is determined, the location information acquisition request is intercepted. Specifically, after receiving the location information obtaining request, the intelligent positioning service may not return any information to the target application, that is, not respond to the request, or return a null value to the target application, so as to achieve the effect of intercepting the location information obtaining request. If the position information acquisition request is not a 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 representing the precision of the position information, and the position information precision level can be represented by the number of bits after the decimal point, for example, a certain position information precision level represents the longitude and latitude precision corresponding to 2 bits after the decimal point. The position information accuracy level corresponding to the position information acquisition request refers to the position information accuracy level of the position information requested by the position information acquisition request.
Fig. 4 is a schematic flow chart of determining a location information accuracy level corresponding to a location information obtaining request according to an embodiment of the present disclosure, as shown in fig. 4, in an embodiment, the determining a location information accuracy level corresponding to the location information obtaining request specifically includes:
step S402, if the target application is a travel application, determining that the accuracy level of the position information is the highest level, and if the target application is not the travel application, judging whether the position information is returned to the target application within a second preset time range;
step S404, 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 in the previous time, and if the position information is not returned, judging whether the standard position information precision level corresponding to the application type of the target application is recorded;
In step S406, if the position information is recorded, the standard position information precision level recorded 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.
The application category of the target application can be obtained from an application store and the like, if the target application is a travel application, such as a navigation application or a map application, the position information accuracy level corresponding to the position information obtaining request is determined to be the highest level, namely, the position information with the highest accuracy is returned to the target application based on the position information obtaining request, so that the map or the navigation application can better serve users. The location information obtained by locating the operating system of the user terminal is generally used as the location information with the highest precision. If the target application is not the travel application, judging whether the position information is returned to the target application within a second preset time range. The second preset time range and the previous second preset time range are the same concept, and the action can be the same as the previous action, so that whether the position information with the position information accuracy level lower than the preset level is returned to the target application in the second preset time range is judged.
If the position information is returned, the accuracy of the position information returned in the previous time is too low, and the target application may be the position information with higher request accuracy, so that the position information accuracy level corresponding to the position information acquisition request is determined to be higher than the position information accuracy level of the position information returned to the target application in the previous time, and the position information with higher accuracy is returned to the target application based on the position information acquisition request. If the standard position information is not returned, judging whether the standard position information precision level corresponding to the application type of the target application is recorded.
In this embodiment, the standard position information accuracy level corresponding to other class applications other than the travel class may be determined, and the specific determination process will be described in detail later. If the judgment result shows that the standard position information precision level corresponding to the application type of the target application is recorded, the recorded standard position information precision level is used as the position information precision level corresponding to the position information acquisition request so as to be convenient for returning the position information to the target application according to the position information precision level, if the judgment result shows that the position information is not recorded, the default position information precision level stored in advance is acquired, and the default position information precision level is used as the position information precision level corresponding to the position information acquisition request so as to be convenient for returning the position information to the target application according to the default position information precision level.
In general, it is possible to determine a standard position information accuracy level corresponding to other types of applications except for travel types, and when the target application requests position information, if the target application is not a travel type application, the position information is returned to the target application based on the standard position information accuracy level corresponding to the target application. In some cases, the standard position information precision level corresponding to the application category where the target application is located cannot be successfully determined, and then the preset default position information precision level can be used as the position information precision level corresponding to the target application, and position information is returned to the target application based on the level. The default position information accuracy level can be a preset level.
After determining the position information accuracy level corresponding to the position information acquisition request, in step S106, it is determined whether or not valid position information corresponding to the position information accuracy level is cached. Fig. 5 is a flowchart of determining whether to cache valid location information according to an embodiment of the present disclosure, as shown in fig. 5, in an embodiment, determining whether to cache valid location information corresponding to the location information precision level specifically includes:
Step S502, judging whether the position information meeting the precision level of the position information is cached;
step S504, if not, determining that the effective position information corresponding to the position information precision level is not cached, if so, judging whether the cached position information is invalid according to the moving speed of the user terminal and the time of obtaining the cached position information by positioning;
in step S506, if the position information is invalid, it is determined that the valid position information corresponding to the position information precision level is not cached, and if the position information is not invalid, it is determined that the valid position information corresponding to the position information precision level is cached.
First, it is determined whether or not position information satisfying the above-described position information accuracy level is cached. For example, when the position information precision level requires that the position information is longitude and latitude, the position information is to be accurate to 4 bits after the decimal point, and whether the longitude and latitude information accurate to 4 bits after the decimal point is cached in the cache is checked.
If the position information is not cached, it is determined that the effective position information corresponding to the position information precision level is not cached, because the position information cached in one case does not meet or exceeds the position information precision level requirement in the other case. If the position information is cached, considering that the cached position information may be invalid if the user terminal moves a long distance in a short time, 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.
Here, a rule of invalidating the location information may be preset, for example, when the moving speed of the user terminal is less than V1 and the time distance of the location obtaining the cached location information from the current time is not longer than the time period T1, 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 distance of the location obtaining the cached location information from the current time is not longer than the time period T2, it is determined that the cached location information is not invalidated, 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 obtaining the location information is located. Based on a preset invalidation rule, combining the moving speed of the user terminal and the time for obtaining the cached position information by positioning, and judging whether the cached position information is invalid or not.
If the position information is invalid, the effective position information corresponding to the position information precision level is determined not to be cached, and if the position information is not invalid, the effective position information corresponding to the position information precision level is determined to be cached.
In this embodiment, by combining the moving speed of the user terminal and the time for obtaining the cached location information by positioning, it is determined whether the cached location information is invalid, and the effect of accurately determining whether the cached location information is invalid is achieved by considering the influence of the moving situation of the user terminal and the data caching duration on the accuracy of the location of the user terminal.
In the step S108, if it is determined that the valid position information corresponding to the precision level of the position information is cached, the cached valid position information is returned to the target application, so that the position information of the required precision level can be returned to the target application without additional power consumption when the user terminal operating system is not required to perform the positioning operation. On the other hand, if it is determined that the valid position information corresponding to the position information precision level is not cached, the position information is requested to the operating system of the user terminal, and the valid position information corresponding to the position information precision level is returned to the target application based on the position information obtained by the request.
Fig. 6 is a schematic flow chart of returning, to a target application, valid location information corresponding to the location information accuracy level according to an embodiment of the present disclosure, where, as shown in fig. 6, the process specifically includes:
step S602, 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;
step S604, based on the processing mode, processing the position information obtained by the request to obtain effective position information corresponding to the precision level of the position information;
Step S606, the valid location information is returned to the target application.
Specifically, when the location information is generally requested from the operating system, the operating system returns location information with higher accuracy, typically the most accurate location information (i.e., the highest level described above) that the operating system can locate. After the position information returned by the operating system is obtained, 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.
For example, the longitude and latitude returned by the operating system are accurate to 6 bits after the decimal point, and the position information accuracy level corresponding to the position information acquisition request requires that the longitude and latitude are accurate to 2 bits after the decimal point, so that the processing mode of the position information obtained by the request is determined as follows: the last 4 bits of the decimal point are omitted by rounding. Of course, if the accuracy level of the position information obtained by the request is smaller than the accuracy level of the position information corresponding to the position information obtaining request, the position information obtained by the request cannot be processed, and at this time, the intelligent positioning service can do error processing. For example, if the longitude and latitude returned by the operating system are accurate to 2 bits after the decimal point, and the position information accuracy level corresponding to the position information acquisition request requires that the longitude and latitude are accurate to 6 bits after the decimal point, the position information acquired by the request cannot be processed, and at this time, the intelligent positioning service can perform error processing.
After determining the processing mode of the position information obtained by the request, the position information obtained by the request is processed based on the processing mode, so that the effective position information corresponding to the precision level of the position information is obtained. For example, rounding the last four bits of the requested position information to obtain valid position information corresponding to the position information precision level.
And finally, the effective position information obtained by processing is sent to the target application, so that the positioning requirement of the target application is met based on a real-time positioning and data processing mode, and the normal operation of the target application is ensured.
In one embodiment, after a location information obtaining request sent by a target application is obtained, determining whether the user terminal is in a preset non-working mode, if yes, intercepting the location information obtaining request, and if not, executing a step of determining whether the location information obtaining request is a redundant request based on an application type of the target application.
The preset non-working mode can be a screen locking mode, or can be a screen unlocking mode, wherein no user operation is performed within a certain period of time, for example, no user operation is performed within 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 has no need for positioning, and thus intercepts the location information acquisition request, e.g., does not respond to the location information acquisition request or returns a null value to the target application. And when the user terminal is not in the non-working mode, executing the step of judging whether the position information acquisition request is a redundant request based on the application type of the target application.
The foregoing describes that a corresponding preset request frequency threshold may be calculated for each class of applications, the preset request frequency threshold being indicative of a reasonable location request frequency for each application in the corresponding application class. Taking the application class of the target application as an example, in one embodiment, the intelligent positioning service may calculate the preset request frequency threshold of the application class of the target application for the location information by the following manner, and it can be understood that the preset request frequency threshold corresponding to other application classes may also be calculated by the same method:
(1) Counting historical request frequencies of each application in the application category of the target application aiming at the position information within a preset duration;
(2) And determining a preset request frequency threshold of the application category of the target application aiming at the position information based on the historical request frequency.
The preset duration may be, for example, within 24 hours before the execution of the action of counting the history request frequency. And counting historical request frequencies of each application in the application category of the target application 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 of the target application here may be each application in the application store, and the user terminal is not required to install each application entirely. Each application in the application class in which the target application is located may be obtained or otherwise obtained from the network, with a historical request frequency for location information within 24 hours prior to the current time.
And then, averaging the historical request frequency of each application to obtain a preset request frequency threshold value of the application category of the target application aiming at the position information. In one embodiment, the historical request frequency of each application in the application category of the target application for the location information in 24 hours a day before 0 point of each day can be counted, an average value of the historical request frequencies of the applications is calculated, the historical request frequency is used as a preset request frequency threshold of the application category of the target application for the location information in a new day, and the preset request frequency threshold of the application category of the target application for the location information in the next 0 point is recalculated, so that the effect of updating the preset request frequency threshold every day is achieved.
The historical request frequencies of all applications in the categories are subjected to averaging processing to obtain preset request frequency thresholds for the position information of the corresponding application categories, so that the preset request frequency thresholds can represent the reasonable request frequencies of the position information of the corresponding application categories, and whether the position information acquisition request of the target application is a redundant request is judged based on the preset request frequency thresholds.
In the foregoing, the standard location information precision level corresponding to the application class where the target application is required to be calculated, in one embodiment, the intelligent positioning service may calculate the standard location information precision level corresponding to the application class where the target application is located by using the following method, and it can be understood that the standard location information precision levels corresponding to other application classes may also be calculated by using the same method:
(1) Determining the precision level of the historically used position information of each application in the application class of the target application;
(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 position information used in history of each application in the application category of the target application.
Firstly, determining the precision level of the historically used position information of each application in the application category of the target application, taking longitude and latitude as an example of the position information, wherein the precision level can be represented by the number of bits reserved behind decimal points, the number of levels is equal to the number of bits, and the more the number of bits, the higher the level. Each application in the application category of the target application here may be each application in the application store, and the user terminal is not required to install each application entirely. The accuracy level of the historically used location information may be obtained or otherwise obtained from the network for each application in the application class in which the target application is located.
And then, calculating the average value of the precision levels of the historically used position information of each application in the application class of the target application, and determining the standard position information precision level corresponding to the application class of the target application according to the average value.
For example, three applications including ABC are included in the application class where the target application is located, and the accuracy level is 3, 4, and 5 respectively, if the average value is 4, the accuracy level 4 is taken as the standard position information accuracy level corresponding to the application class where the target application is located. For another example, there are ABC three applications in the application class where the target application is located, a uses 30 times of position information with the precision level of 3, uses 10 times of position information with the precision level of 4, B uses 30 times of position information with the precision level of 4, uses 10 times of position information with the precision level of 5, C uses 10 times of position information with the precision level of 5, 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 precision level is rounded to 4, and the precision level 4 is regarded as the standard position information precision level corresponding to the application class where the target application is located.
In one embodiment, the preset request frequency threshold value and the standard position information precision level corresponding to each application can be set by user definition, and whether each application has positioning authority or not can be set. The above method processes are all executed by the intelligent positioning service inside the user terminal, and it can be understood that the intelligent positioning service can be registered in the user terminal or can be unregistered from the user terminal.
The effect of the application of the above-described method flow is described below by way of two specific examples.
Scenario example 1:
the intelligent positioning service user is the king, and under the condition that the king drives and uses application navigation, the intelligent positioning service does not intercept the positioning request of navigation application, and the king does not meet the condition of inaccurate navigation positioning in the driving process. In the navigation process, the intelligent positioning service acquires the positioning requests of other types of applications, and returns the cached positioning information of the navigation type applications to the other types of applications, so that the positioning requests of the other types of 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 is little king, shopping in online shopping application, ordering in consumption application and other operations, positioning is normally used, normal use of a user is not affected, but the intelligent positioning service intercepts a plurality of redundant positioning requests, returns null values to the redundant positioning requests, power consumption of the mobile phone is greatly reduced, and service time of the mobile phone is prolonged.
In summary, through the embodiment, the redundant position information acquisition request sent by the target application can be identified and intercepted, and when the cached position information meets the requirement of the target application, the cached position information can be returned to the target application, and the position information is not required from the operating system of the user terminal, so that the user terminal is prevented from executing excessive positioning operation, the power consumption of the user terminal is saved, the positioning results of multiple positioning operations executed by the user terminal are all the same, and the problem of repeated positioning is avoided.
Fig. 7 is a schematic block diagram of an application positioning processing apparatus according to an embodiment of the present disclosure, where, as shown in fig. 7, the apparatus is applied to a user terminal, and includes:
a request judging unit 71, configured to acquire a location information acquisition request sent by a target application, and judge whether the location information acquisition request is a redundant request based on an application class of the target application;
a request processing unit 72, configured to intercept the location information acquisition request if it is determined that the request is a redundant request, and determine a location information accuracy level corresponding to the location information acquisition request if it is determined that the request is not a redundant request;
a cache judging unit 73 for judging whether or not to cache the effective position information corresponding to the position information precision level;
and an information returning unit 74, configured to return the cached valid location information to the target application if the location information is cached, and to request the location information from the operating system of the user terminal if the location information is not cached, and return the valid location information corresponding to the location information precision level to the target application based on the location information obtained by the request.
Optionally, the request judging unit is specifically configured to: if the target application is a travel application, determining that the position information acquisition request is not a redundant request, and if the target application is not a travel application, acquiring a preset request frequency threshold of an application category where the target application is located for position information; and if the request frequency of the target application for the position information within the 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 travel application, determining that the precision level of the position information is the highest level, and if the target application is not the travel application, judging whether the 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 in the previous time, and if the position information is not returned, judging whether the standard position information precision level corresponding to the application type of the target application is recorded; and if the position information is not recorded, a 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 precision level of the position information is cached or not; if the position information is not cached, determining that the effective position information corresponding to the position information precision level is not cached, and if the effective position information is cached, 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; if the position information is invalid, determining that the effective position information corresponding to the position information precision level is not cached, and if the position information is not invalid, determining that the effective position information corresponding to the position information precision level is cached.
Optionally, the information return 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; based on the processing mode, processing the position information obtained by the request 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 judging 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 or not; if yes, intercepting the position information acquisition request, and if not, executing the step of judging whether the position information acquisition request is a redundant request based on the application type of the target application.
Optionally, the apparatus further comprises a threshold determining unit for: counting each application in the application category of the target application, and aiming at the historical request frequency of the position information in a preset duration; and determining a preset request frequency threshold of the application category of the target application aiming at the position information based on the historical request frequency.
Optionally, the apparatus further comprises a level determining unit for: determining the precision level of the historically used position information of each application in the application category of the target application; and determining the standard position information precision level corresponding to the application category of the target application based on the precision level of the position information used in history of each application in the application category of the target application.
In this embodiment, redundant location information acquisition requests 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, so that the user terminal is prevented from executing excessive location operations, the power consumption of the user terminal is saved, the location results of multiple location operations executed by the user terminal are all the same, and the problem of repeated location is avoided.
The application positioning processing device provided in an embodiment of the present disclosure can implement each process in the foregoing embodiment of the application positioning processing method, and achieve the same functions and effects, which are not repeated here.
Further, an embodiment of the present disclosure further provides an application positioning processing device, and fig. 8 is a schematic structural diagram of the application positioning processing device provided in an embodiment of the present disclosure, as shown in fig. 8, where 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 over bus 803, and communication interface 804 may include input output interfaces including, but not limited to, a keyboard, mouse, display, microphone, loudspeaker, and the like.
In fig. 8, the memory 801 has stored thereon computer executable instructions executable on the processor 802, which when executed by the processor 802 implement the following:
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 a redundant request, determining a 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 effective position information is cached, returning the cached effective position information to the target application, and if the effective 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.
Optionally, when the computer executable instructions are executed by the processor, determining whether the location information acquisition request is a redundancy request based on an application class of the target application, including: if the target application is a travel application, determining that the position information acquisition request is not a redundant request, and if the target application is not a travel application, acquiring a preset request frequency threshold of an application category where the target application is located for position information; and if the request frequency of the target application for the position information within the 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 the computer executable instructions are executed by the processor, determining a location information accuracy level corresponding to the location information acquisition request includes: if the target application is a travel application, determining that the precision level of the position information is the highest level, and if the target application is not the travel application, judging whether the 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 in the previous time, and if the position information is not returned, judging whether the standard position information precision level corresponding to the application type of the target application is recorded; and if the position information is not recorded, a default position information precision level is used as the position information precision level corresponding to the position information acquisition request.
Optionally, when the computer executable instructions are executed by the processor, determining whether valid location information corresponding to the location information accuracy level is cached includes: judging whether the position information meeting the precision level of the position information is cached or not; if the position information is not cached, determining that the effective position information corresponding to the position information precision level is not cached, and if the effective position information is cached, 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; if the position information is invalid, determining that the effective position information corresponding to the position information precision level is not cached, and if the position information is not invalid, determining that the effective position information corresponding to the position information precision level is cached.
Optionally, when the computer executable instructions are executed by the processor, based on the requested location information, returning valid location information corresponding to the location information accuracy level to the target application, 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; based on the processing mode, processing the position information obtained by the request 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 or not; if yes, intercepting the position information acquisition request, and if not, executing the step of judging whether the position information acquisition request is a redundant request 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 of the target application, and aiming at the historical request frequency of the position information in a preset duration; and determining a preset request frequency threshold of the application category of the target application aiming at 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 the historically used position information of each application in the application category of the target application; and determining the standard position information precision level corresponding to the application category of the target application based on the precision level of the position information used in history of each application in the application category of the target application.
In this embodiment, redundant location information acquisition requests 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, so that the user terminal is prevented from executing excessive location operations, the power consumption of the user terminal is saved, the location results of multiple location operations executed by the user terminal are all the same, and the problem of repeated location is avoided.
The application positioning processing device provided in an embodiment of the present disclosure can implement each process in the foregoing embodiment of the application positioning processing method, and achieve the same functions and effects, which are not repeated here.
Further, another embodiment of the present specification also provides a computer-readable storage medium for storing computer-executable instructions that when executed by a processor implement the following:
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 a redundant request, determining a 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 effective position information is cached, returning the cached effective position information to the target application, and if the effective 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.
Optionally, when the computer executable instructions are executed by the processor, determining whether the location information acquisition request is a redundant request based on an application class of the target application, including: if the target application is a travel application, determining that the position information acquisition request is not a redundant request, and if the target application is not a travel application, acquiring a preset request frequency threshold of an application category where the target application is located for position information; and if the request frequency of the target application for the position information within the 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 determining the location information accuracy level corresponding to the location information acquisition request when the computer executable instructions are executed by the processor includes: if the target application is a travel application, determining that the precision level of the position information is the highest level, and if the target application is not the travel application, judging whether the 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 in the previous time, and if the position information is not returned, judging whether the standard position information precision level corresponding to the application type of the target application is recorded; and if the position information is not recorded, a default position information precision level is used as the position information precision level corresponding to the position information acquisition request.
Optionally, when the computer executable instructions are executed by the processor, determining whether valid location information corresponding to the location information accuracy level is cached includes: judging whether the position information meeting the precision level of the position information is cached or not; if the position information is not cached, determining that the effective position information corresponding to the position information precision level is not cached, and if the effective position information is cached, 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; if the position information is invalid, determining that the effective position information corresponding to the position information precision level is not cached, and if the position information is not invalid, determining that the effective position information corresponding to the position information precision level is cached.
Optionally, when the computer executable instructions are executed by the processor, based on the requested location information, returning valid location information corresponding to the location information accuracy level to the target application, 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; based on the processing mode, processing the position information obtained by the request 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 or not; if yes, intercepting the position information acquisition request, and if not, executing the step of judging whether the position information acquisition request is a redundant request 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 of the target application, and aiming at the historical request frequency of the position information in a preset duration; and determining a preset request frequency threshold of the application category of the target application aiming at 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 the historically used position information of each application in the application category of the target application; and determining the standard position information precision level corresponding to the application category of the target application based on the precision level of the position information used in history of each application in the application category of the target application.
In this embodiment, redundant location information acquisition requests 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, so that the user terminal is prevented from executing excessive location operations, the power consumption of the user terminal is saved, the location results of multiple location operations executed by the user terminal are all the same, and the problem of repeated location is avoided.
The computer executable instructions stored in the storage medium according to an embodiment of the present disclosure can implement the respective processes in the foregoing embodiments of the application positioning processing method when executed by the processor, and achieve the same functions and effects, which are not repeated here.
The computer readable storage medium includes Read-Only Memory (ROM), random access Memory (Random Access Memory RAM), magnetic disk or optical disk, etc.
In this specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for system embodiments, since they are substantially similar to method embodiments, the description is relatively simple, as relevant to see a section of the description of method embodiments.
The foregoing is merely exemplary of the present disclosure and is not intended to limit the present disclosure. Various modifications and variations of the embodiments described herein will be apparent to those skilled in the art. Any modifications, equivalent substitutions, improvements, etc. that fall within the spirit and principles of the present document are intended to be included within the scope of the claims of the present document.

Claims (12)

1. An application positioning processing method is characterized by being applied to a user terminal and comprising 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 is determined to be a redundant request, intercepting the position information acquisition request, and if the position information is determined not to be a redundant request, determining a 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;
if the effective position information is cached, returning the cached effective position information to the target application, if the effective 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;
the judging whether the effective position information corresponding to the position information precision level is cached or not includes:
judging whether the position information meeting the precision level of the position information is cached or not;
if the position information is not cached, determining that the effective position information corresponding to the position information precision level is not cached, and if the effective position information is cached, 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;
if the position information is invalid, determining that the effective position information corresponding to the position information precision level is not cached, and if the position information is not invalid, determining that the effective position information corresponding to the position information precision level is cached.
2. The method of claim 1, wherein determining whether the location information acquisition request is a redundant request based on an application class of the target application comprises:
if the target application is a travel application, determining that the position information acquisition request is not a redundant request, and if the target application is not a travel application, acquiring a preset request frequency threshold of an application category where the target application is located for position information;
and if the request frequency of the target application for the position information within the 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 a location information accuracy level corresponding to the location information acquisition request comprises:
if the target application is a travel application, determining that the precision level of the position information is the highest level, and if the target application is not the travel application, judging whether the 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 in the previous time, and if the position information is not returned, judging whether the standard position information precision level corresponding to the application type of the target application is recorded;
and if the position information is not recorded, a 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 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;
based on the processing mode, processing the position information obtained by the request to obtain effective position information corresponding to the position information precision level;
And returning the effective position information to the target application.
5. The method according to claim 1, wherein the method further comprises:
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 or not;
if yes, intercepting the position information acquisition request, and if not, executing the step of judging whether the position information acquisition request is a redundant request based on the application type of the target application.
6. The method according to claim 2, wherein the method further comprises:
counting each application in the application category of the target application, and aiming at the historical request frequency of the position information in a preset duration;
and determining a preset request frequency threshold of the application category of the target application aiming at the position information based on the historical request frequency.
7. A method according to claim 3, characterized in that the method further comprises:
determining the precision level of the historically used position information of each application in the application category of the target application;
and determining the standard position information precision level corresponding to the application category of the target application based on the precision level of the position information used in history of each application in the application category of the target application.
8. An application positioning processing device, which is applied to a user terminal, comprising:
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 determined not to be a redundant request;
the buffer judgment unit is used for judging whether valid position information corresponding to the position information precision level is buffered;
the information return unit is used for returning the cached effective position information to the target application if the effective position information is cached, requesting the position information from an operating system of the user terminal if the effective position information is not cached, 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 requesting;
the cache judging unit is specifically configured to:
judging whether the position information meeting the precision level of the position information is cached or not;
if the position information is not cached, determining that the effective position information corresponding to the position information precision level is not cached, and if the effective position information is cached, 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;
If the position information is invalid, determining that the effective position information corresponding to the position information precision level is not cached, and if the position information is not invalid, determining that the effective position information corresponding to the position information precision level is cached.
9. The apparatus according to claim 8, wherein the request judging unit is specifically configured to:
if the target application is a travel application, determining that the position information acquisition request is not a redundant request, and if the target application is not a travel application, acquiring a preset request frequency threshold of an application category where the target application is located for position information;
and if the request frequency of the target application for the position information within the 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.
10. The apparatus of claim 8, wherein the request processing unit is specifically configured to:
if the target application is a travel application, determining that the precision level of the position information is the highest level, and if the target application is not the travel application, judging whether the 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 in the previous time, and if the position information is not returned, judging whether the standard position information precision level corresponding to the application type of the target application is recorded;
and if the position information is not recorded, a default position information precision level is used as the position information precision level corresponding to the position information acquisition request.
11. The apparatus according to claim 8, wherein the information return 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;
based on the processing mode, processing the position information obtained by the request to obtain effective position information corresponding to the position information precision level;
and returning the effective position information to the target application.
12. The apparatus according to claim 8, further comprising a mode judgment 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 or not;
if yes, intercepting the position information acquisition request, and if not, executing the step of judging whether the position information acquisition request is a redundant request 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 CN114205455A (en) 2022-03-18
CN114205455B true 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)

Families Citing this family (1)

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

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110830658A (en) * 2019-11-29 2020-02-21 捷开通讯(深圳)有限公司 Mobile terminal control method and device, mobile terminal and storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106658412B (en) * 2016-12-14 2020-07-03 北京小米移动软件有限公司 Positioning method and device
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
CN107862217B (en) * 2017-10-31 2021-09-07 努比亚技术有限公司 Position information acquisition method, mobile terminal and computer storage medium
CN108151730A (en) * 2017-12-13 2018-06-12 广东欧珀移动通信有限公司 Position control method, device, storage medium and terminal device
CN108076429A (en) * 2017-12-13 2018-05-25 广东欧珀移动通信有限公司 Localization method, device, storage medium and mobile terminal

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110830658A (en) * 2019-11-29 2020-02-21 捷开通讯(深圳)有限公司 Mobile terminal control method and device, mobile terminal and storage medium

Also Published As

Publication number Publication date
CN114205455A (en) 2022-03-18

Similar Documents

Publication Publication Date Title
JP2017517776A (en) Dialog processing method, dialog management system, and computer equipment
US9081860B2 (en) Integration of device location into search
US9131341B2 (en) System and method for locating a mobile device
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
CA2780204A1 (en) Optimizing caching period of location data for network based location services
WO2019071615A1 (en) Method for reducing power consumption of terminal, and terminal
CN114205455B (en) Application positioning processing method and device
CN111680210B (en) Information searching method, device, searching gateway and storage medium
US20210209024A1 (en) Method, device and computer program product for managing cache
CN113779091A (en) Information query method and device, electronic equipment and readable storage medium
CN114760121B (en) Access frequency control method and access frequency control system
US9454328B2 (en) Controlling hierarchical storage
CN113111076A (en) Data caching method, device, equipment and storage medium
CN115103024A (en) Serial number generation method and device, electronic equipment and storage medium
CN114048797A (en) Method, device, medium and electronic equipment for determining address similarity
KR102005932B1 (en) Server for managing social network friends and method for managing social network friends using the same
CN114461950A (en) Global caching method and device, electronic equipment and storage medium
US10320805B2 (en) Visitor authorization management method and apparatus, terminal, server, and storage medium
CN117743206B (en) Data storage method and device
CN105117213B (en) Pre-processing method and device based on publish-subscribe mode
CN117688104B (en) Request processing method, request processing device, electronic equipment and storage medium
CN115314258B (en) Method and device for detecting weak password, electronic equipment and storage medium
CN112003752B (en) Method, device, server and storage medium for determining cache duration
CN117075966B (en) Instruction processing method, device, equipment and readable storage medium

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