CN111756927A - Output method of positioning information, terminal equipment and storage medium - Google Patents
Output method of positioning information, terminal equipment and storage medium Download PDFInfo
- Publication number
- CN111756927A CN111756927A CN202010580885.2A CN202010580885A CN111756927A CN 111756927 A CN111756927 A CN 111756927A CN 202010580885 A CN202010580885 A CN 202010580885A CN 111756927 A CN111756927 A CN 111756927A
- Authority
- CN
- China
- Prior art keywords
- positioning
- cold start
- terminal device
- information
- current
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 69
- 238000004590 computer program Methods 0.000 claims description 2
- 230000006870 function Effects 0.000 description 11
- 230000008569 process Effects 0.000 description 8
- 238000004891 communication Methods 0.000 description 6
- 238000010586 diagram Methods 0.000 description 6
- 238000012360 testing method Methods 0.000 description 5
- 238000012544 monitoring process Methods 0.000 description 4
- 238000012545 processing Methods 0.000 description 4
- 230000008859 change Effects 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 230000003993 interaction Effects 0.000 description 3
- 210000000707 wrist Anatomy 0.000 description 3
- 230000006399 behavior Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 2
- 238000001514 detection method Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 239000011521 glass Substances 0.000 description 2
- 230000005236 sound signal Effects 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 238000012790 confirmation Methods 0.000 description 1
- 239000000470 constituent Substances 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000000474 nursing effect Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000008520 organization Effects 0.000 description 1
- 238000010079 rubber tapping Methods 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000010897 surface acoustic wave method Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Landscapes
- Telephone Function (AREA)
- Telephonic Communication Services (AREA)
- Navigation (AREA)
Abstract
An output method of positioning information, a terminal device and a storage medium are provided, the method is applied to a first terminal device and comprises the following steps: under the condition that the cold start operation of the positioning application program in the first terminal equipment is detected, acquiring the current cold start times of the positioning application program; acquiring historical access times corresponding to a positioning interface included in a positioning application program; the historical access times are the access times of the positioning application program within a preset time length after the historical cold start; under the condition that the first terminal equipment meets the cold start positioning condition according to the current cold start times and the historical access times, sending a positioning request message to a server; the server is used for acquiring the positioning information of the second terminal equipment bound with the first terminal equipment according to the positioning request message; under the conditions that an access request to a positioning interface is detected and positioning information sent by a server is received, outputting the positioning information in the positioning interface; the access request is a request within a preset time length after the cold start operation.
Description
Technical Field
The present application relates to the field of positioning technologies, and in particular, to a method for outputting positioning information, a terminal device, and a storage medium.
Background
At present, a positioning application program is installed in a first terminal device of a parent, and the parent checks positioning information corresponding to a second terminal device carried by a child through the positioning application program. The method comprises the steps that parents need to start a positioning application program in the process of checking positioning information, enter a positioning interface in the positioning application program, generate a positioning request by clicking a positioning button and a sending button, transfer the positioning request to second terminal equipment through a server, enable the second terminal equipment to acquire the positioning information based on the positioning request, and return the positioning information to the server, so that the server can push the positioning information to first terminal equipment.
Therefore, the process of acquiring the positioning information is complex, and a long time is consumed, so that a parent needs a long positioning waiting time when positioning the child, and the experience is poor.
Disclosure of Invention
The embodiment of the application provides an output method of positioning information, a terminal device and a storage medium, and the application enables a user who does not need to wait for a first terminal device to enter a positioning interface of a positioning application program, clicks a positioning button and a sending button in the positioning interface and shortens the positioning waiting time by performing cold start on the positioning application program in the first terminal device.
According to a first aspect of the embodiments of the present application, there is provided a method for outputting positioning information, which is applied to a first terminal device, and includes:
under the condition that the cold start operation of a positioning application program in the first terminal equipment is detected, acquiring the current cold start times of the positioning application program;
acquiring historical access times corresponding to a positioning interface included in the positioning application program; the historical access times are the access times of the positioning application program within a preset time length after the historical cold start;
under the condition that the first terminal equipment is determined to meet the cold start positioning condition according to the current cold start times and the historical access times, sending a positioning request message to a server; the server is used for acquiring the positioning information of the second terminal equipment bound with the first terminal equipment according to the positioning request message;
under the conditions that an access request to the positioning interface is detected and positioning information sent by the server is received, outputting the positioning information in the positioning interface; the access request is a request within a preset time length after the cold start operation.
Optionally, the cold start positioning condition comprises: and the positioning attention is greater than or equal to a first preset threshold, and the positioning attention is the ratio of the historical access times to the current cold start times.
Optionally, the method further comprises:
under the condition that the current cold start times are larger than or equal to a second preset threshold value, obtaining the product of the current cold start times and a preset ratio to obtain updated current cold start times, and obtaining the product of the historical access times and the preset ratio to obtain updated historical access times;
wherein the preset ratio is less than 1;
and sending a positioning request message to a server under the condition that the first terminal device is determined to meet the cold start positioning condition according to the current cold start times and the historical access times, wherein the positioning request message comprises:
and sending the positioning request message to the server under the condition that the first terminal equipment is determined to meet the cold start positioning condition according to the updated current cold start times and the updated historical access times.
Optionally, the obtaining the current cold start times of the positioning application program when the cold start operation of the positioning application program in the first terminal device is detected includes:
under the condition that the cold start operation of a positioning application program in the first terminal equipment is detected, acquiring the historical cold start times of the positioning application program;
and calculating the sum of the historical cold start times and the first numerical value to obtain the current cold start times of the positioning application program.
Optionally, the outputting, in the positioning interface, the positioning information when the access request to the positioning interface is detected and the positioning information sent by the server is received includes:
when an access request to the positioning interface is detected, positioning information sent by the server is received, and the positioning information belongs to a preset safe area, the positioning information is output in the positioning interface according to a first output mode;
when an access request to the positioning interface is detected, positioning information sent by the server is received, and the positioning information belongs to a preset dangerous area, the positioning information is output in the positioning interface according to a second output mode;
the first output mode comprises at least one of a first preset color of a positioning icon, a first flashing frequency of the positioning icon, a first size of the positioning icon and a first shadow layer of the positioning icon;
the second output mode comprises at least one of a second preset color of the positioning icon, a second flashing frequency of the positioning icon, a second size of the positioning icon, and a second shadow layer of the positioning icon.
Optionally, the method further comprises:
acquiring a current position area to which the positioning information belongs;
determining destination recommendation information according to the current position area and the current moment;
and sending the destination recommendation information to the second terminal equipment.
Optionally, the method further comprises:
acquiring the residence time of the second terminal equipment in the current position area;
the determining destination recommendation information according to the current location area and the current time includes:
and under the condition that the residence time is greater than or equal to a third preset threshold, determining the destination recommendation information according to the current position area and the current time.
According to a second aspect of embodiments of the present application, there is provided a terminal device, including a first terminal device, including:
the acquisition module is used for acquiring the current cold start times of the positioning application program under the condition of detecting the cold start operation of the positioning application program in the first terminal equipment; and the number of the first and second groups,
acquiring historical access times corresponding to a positioning interface included in the positioning application program; the historical access times are the access times of the positioning application program within a preset time length after the historical cold start;
the sending module is used for sending a positioning request message to a server under the condition that the first terminal device is determined to meet the cold start positioning condition according to the current cold start times and the historical access times; the server is used for acquiring the positioning information of the second terminal equipment bound with the first terminal equipment according to the positioning request message;
the output module is used for outputting the positioning information in the positioning interface under the conditions that an access request to the positioning interface is detected and the positioning information sent by the server is received; the access request is a request within a preset time length after the cold start operation.
Optionally, the cold start positioning condition comprises: and the positioning attention is greater than or equal to a first preset threshold, and the positioning attention is the ratio of the historical access times to the current cold start times.
Optionally, the obtaining module is further configured to obtain, when the current cold start number is greater than or equal to a second preset threshold, a product between the current cold start number and a preset ratio to obtain an updated current cold start number, and obtain a product between the historical access number and the preset ratio to obtain an updated historical access number;
wherein the preset ratio is less than 1;
the sending module is further configured to send the location request message to the server when determining that the first terminal device meets the cold start location condition according to the updated current cold start times and the updated historical access times.
Optionally, the obtaining module is further configured to obtain the historical cold start times of the positioning application program when a cold start operation of the positioning application program in the first terminal device is detected;
and calculating the sum of the historical cold start times and the first numerical value to obtain the current cold start times of the positioning application program.
Optionally, the output module is further configured to, when an access request to the positioning interface is detected, receive positioning information sent by the server, and the positioning information belongs to a preset safe area, output the positioning information in the positioning interface according to a first output mode;
when an access request to the positioning interface is detected, positioning information sent by the server is received, and the positioning information belongs to a preset dangerous area, the positioning information is output in the positioning interface according to a second output mode;
the first output mode comprises at least one of a first preset color of a positioning icon, a first flashing frequency of the positioning icon, a first size of the positioning icon and a first shadow layer of the positioning icon;
the second output mode comprises at least one of a second preset color of the positioning icon, a second flashing frequency of the positioning icon, a second size of the positioning icon, and a second shadow layer of the positioning icon.
Optionally, the obtaining module is further configured to obtain a current location area to which the positioning information belongs; and the number of the first and second groups,
determining destination recommendation information according to the current position area and the current moment;
the sending module is further configured to send the destination recommendation information to the second terminal device.
Optionally, the obtaining module is further configured to obtain a residence time of the second terminal device in the current location area; and the number of the first and second groups,
and under the condition that the residence time is greater than or equal to a third preset threshold, determining the destination recommendation information according to the current position area and the current time.
According to a third aspect of embodiments of the present application, there is provided a terminal device, comprising a processor and a memory, the processor and the memory being coupled, the memory being configured to store computer program instructions, which, when executed by the processor, cause the terminal device to perform the method for outputting positioning information according to the first aspect.
According to a fourth aspect of embodiments of the present application, there is provided a computer storage medium having program instructions stored therein, which when run on a terminal device, cause the terminal device to execute the method for outputting positioning information according to the first aspect.
According to a fifth aspect of embodiments of the present application, a chip is provided, where the chip is coupled with a memory in a terminal device, so that the chip calls program instructions stored in the memory when running, so that the terminal device executes the method for outputting positioning information according to the first aspect.
According to the technical scheme, the embodiment of the application has the following advantages:
according to the method and the device, the positioning application program in the first terminal equipment is cold-started, so that a user of the first terminal equipment does not need to wait for entering a positioning interface of the positioning application program, and clicks a positioning button and a sending button in the positioning interface, and the positioning waiting time is shortened. Moreover, the method and the device need to judge whether the first terminal equipment meets the cold start positioning condition, so that the problem that the second terminal equipment still receives the positioning request message under the condition that the first terminal equipment does not meet the cold start positioning condition is avoided, the resource consumption and the power consumption of the second terminal equipment are reduced, and the problem that the endurance time of the second terminal equipment is shortened due to cold start automatic positioning is solved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following briefly introduces the embodiments and the drawings used in the description of the prior art, and obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained according to the drawings.
Fig. 1A is a schematic flowchart of a method for outputting positioning information according to an embodiment of the present disclosure;
fig. 1B is a display interface diagram of a terminal device according to an embodiment of the present application;
fig. 1C is a display interface diagram of another terminal device according to the embodiment of the present application;
fig. 2 is a schematic flowchart of another method for outputting positioning information according to an embodiment of the present disclosure;
fig. 3 is a schematic flowchart of another method for outputting positioning information according to an embodiment of the present disclosure;
fig. 4 is a schematic flowchart of another method for outputting positioning information according to an embodiment of the present disclosure;
fig. 5 is a block diagram of a terminal device according to an embodiment of the present disclosure;
fig. 6 is a block diagram of another structure of a terminal device according to an embodiment of the present application.
Detailed Description
For a person skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only some embodiments of the present application, and not all embodiments. The embodiments in the present application shall fall within the protection scope of the present application.
First, an application scenario of the present application will be described. The method and the device for the positioning of the terminal device can be applied to a positioning scene, the positioning application program installed in the first terminal device can be subjected to cold start operation in the scene, the server automatically generates the positioning request message according to the cold start operation, a user of the first terminal device does not need to wait for entering a positioning interface of the positioning application program, and a positioning button and a sending button in the positioning interface are clicked. And the server sends a positioning request message to the second terminal equipment so as to acquire the positioning information of the second terminal equipment. When the user of the first terminal device enters the positioning interface, the first terminal device may present the positioning information of the second terminal device. In this scenario, although the first terminal device can acquire the positioning information quickly, no matter whether the user of the first terminal device needs to check the positioning information of the second terminal device, the second terminal device receives the positioning request message, so that the problems of resource loss and high power consumption of the second terminal device are caused, and the duration of the second terminal device is shortened.
Based on the above problem, the present application provides a method for outputting positioning information, a terminal device, and a storage medium, in which under a condition that a positioning application of a first terminal device is cold-started, whether the first terminal device satisfies a cold-start positioning condition or not can be determined according to a current start frequency and a historical access frequency, and under a condition that the cold-start positioning condition is satisfied, positioning information of a second terminal device is obtained by a server, so that the first terminal device can quickly output the positioning information under a condition that an access request to a positioning interface is detected. Therefore, the positioning application program in the first terminal equipment is cold-started, so that a user of the first terminal equipment does not need to wait for entering a positioning interface of the positioning application program, and click a positioning button and a sending button in the positioning interface, and the positioning waiting time is shortened. Moreover, the method and the device need to judge whether the first terminal equipment meets the cold start positioning condition, so that the problem that the second terminal equipment still receives the positioning request message under the condition that the first terminal equipment does not meet the cold start positioning condition is avoided, the resource consumption and the power consumption of the second terminal equipment are reduced, and the problem that the endurance time of the second terminal equipment is shortened due to cold start automatic positioning is solved.
The following describes in detail a method for outputting positioning information disclosed in an embodiment of the present application.
Fig. 1A is a schematic flowchart of a method for outputting positioning information according to an embodiment of the present disclosure. As shown in fig. 1A, the method may include:
101. the method comprises the steps that the first terminal device obtains the current cold start times of the positioning application program under the condition that the cold start operation of the positioning application program in the first terminal device is detected.
It is understood that the first terminal device may include a mobile phone, a tablet computer, a notebook computer, an ultra-mobile personal computer (UMPC), a handheld computer, a netbook, a Personal Digital Assistant (PDA), a wearable device (such as a watch, a wrist, glasses, a helmet, a headband, etc.), and the embodiment of the present application does not particularly limit the specific form of the first terminal device.
It should be understood that the cold start operation of the positioning application can be understood as: after the first terminal equipment is shut down and restarted, the operation of positioning the application program is started for the first time; or after the first terminal device leaves the factory, the operation of positioning the application program is started for the first time; or, in the case where the positioning application is in the closed state, the operation of the positioning application is started for the first time, and so on.
In an alternative embodiment of the present application, the detecting of the cold start operation of the positioning application in the first terminal device may include: the method comprises the steps that a first terminal device detects cold start operation of a positioning application program in the first terminal device in a manual mode; or, the first terminal device may obtain the remaining power of the second terminal device, and when the remaining power of the second terminal device is low, the second terminal device may be shut down and cannot be normally used, so in this embodiment of the application, the first terminal device may automatically perform a cold start operation on the positioning application program in the first terminal device when the remaining power is greater than a preset power threshold, and the intelligence of the cold start operation is improved; the first terminal device may not perform a cold start operation on the positioning application program in the first terminal device when the remaining power is less than or equal to the preset power threshold.
In this embodiment of the present application, in a case that a cold start operation of a positioning application in a first terminal device is detected, acquiring a current number of times of the cold start of the positioning application may include: acquiring historical cold start times of a positioning application program under the condition that cold start operation of the positioning application program in first terminal equipment is detected; and calculating the sum of the historical cold start times and the first numerical value to obtain the current cold start times of the positioning application program. Wherein the first value may be 1.
102. The method comprises the steps that a first terminal device obtains historical access times corresponding to a positioning interface included by a positioning application program; the historical access times are the access times of the positioning application program within the preset time length after the historical cold start.
The starting time corresponding to the preset time length may be the time when the positioning application program performs the historical cold start. For example, the preset time period may be one minute, and at this time, the number of accesses of the location application within one minute after the historical cold start may be acquired.
It should be understood that if the user makes one access or multiple accesses within a preset time after the positioning application is cold started, it may be determined that there is one access to the positioning interface.
103. The method comprises the steps that a first terminal device sends a positioning request message to a server under the condition that the first terminal device is determined to meet a cold start positioning condition according to the current cold start times and historical access times; the server is used for acquiring the positioning information of the second terminal device bound with the first terminal device according to the positioning request message.
In the embodiment of the application, the first terminal device does not need to send a positioning request message to the server under the condition that the first terminal device is determined not to meet the cold start positioning conditions according to the current cold start times and the historical access times, so that the second terminal device is prevented from receiving the positioning request message, and the electric quantity loss of the second terminal device is reduced.
Wherein the cold start positioning conditions include: and the positioning attention is greater than or equal to a first preset threshold, and is the ratio of the historical access times to the current cold start times.
It should be noted that, if the positioning attention degree is higher, it is indicated that the user of the first terminal device pays more attention to the positioning information of the second terminal device; conversely, if the positioning attention is smaller, it means that the user of the first terminal device is less interested in the positioning information of the second terminal device. Therefore, the first terminal device can accurately identify the access behavior habit of the user of the first terminal device according to the historical access times and the current cold start times, and therefore whether the first terminal device meets the cold start positioning condition or not is judged based on the access behavior habit.
Optionally, the above-mentioned method for acquiring the first preset threshold may include, but is not limited to, the following manners:
firstly, after step 101, the first terminal device sends a threshold value obtaining request to the server, so that the server sends a first preset threshold value to the server according to the threshold value obtaining request.
Furthermore, a switch control for cold start automatic positioning is arranged in the server; if the switch control is in the on state, the server sends a first preset threshold value to the first terminal device, and executes the subsequent step 104; if the switch control is in the off state, the server can directly send the positioning request information to the second terminal device, receive the positioning information sent by the second terminal device according to the positioning request information, and send the positioning information to the first terminal device.
The on or off of the switch control can be determined by a feedback result of a user on the output method of the positioning information in the application. For example, if the quantity of the objection opinions in the feedback result is greater than the quantity of the consent opinions, the switch control can be controlled to be in the off state; if the quantity of the objection opinions in the feedback result is less than or equal to the quantity of the consent opinions, the switch control can be controlled to be in an open state. For another example, if the quantity of objections in the feedback result is greater than the specified quantity, the switch control can be controlled to be in the off state; if the quantity of objections in the feedback result is less than or equal to the specified quantity, the switch control can be controlled to be in an on state, and the like, which is not limited in the present application.
In the second mode, the first terminal device may store the first preset threshold in advance, so the step may obtain the stored first preset threshold.
It should be noted that the server may periodically update the first preset threshold, so in order to make the first preset threshold stored in the first terminal device more accurate, in an optional embodiment, the first terminal device may periodically obtain the updated first preset threshold from the server; in another optional embodiment, the server may send the updated first preset threshold to the first terminal device when the updated first preset threshold is obtained. In this way, the first preset threshold value can be updated in the first terminal device as well.
It should be noted that, when the first terminal device determines that the first terminal device satisfies the cold start positioning condition according to the current cold start times and the historical access times, the first terminal device may further obtain the number of times that the first terminal device satisfies the trigger of the cold start positioning condition and configure the initialization parameter, while sending the positioning request message to the server. In an alternative embodiment, the number of triggers may be obtained by means of a buried point. In this way, the server may update the first preset threshold according to the number of triggers.
Similarly, the second terminal device in this application may include a mobile phone, a tablet computer, a notebook computer, an ultra mobile personal computer, a handheld computer, a netbook, a personal digital assistant, a wearable device (such as a watch, a wrist, glasses, a helmet, a headband, etc.), and the embodiment of this application is not limited to a specific form of the second terminal device.
Illustratively, the first terminal device is a terminal device carried by a parent, and the second terminal device is a terminal device carried by a child.
In this embodiment, the server may send the positioning request message to the second terminal device, so that the second terminal device obtains the positioning information of the second terminal device according to the positioning request message, and sends the positioning information to the server.
104. The method comprises the steps that a first terminal device outputs positioning information in a positioning interface under the conditions that an access request to the positioning interface is detected and the positioning information sent by a server is received; the access request is a request within a preset time length after the cold start operation.
In the embodiment of the present application, the positioning information may be output in the positioning interface by, but not limited to, the following ways:
the first method comprises the steps that the first terminal device outputs the positioning information in the positioning interface according to a preset output mode under the condition that the first terminal device detects an access request to the positioning interface and receives the positioning information sent by the server.
It can be understood that the preset output mode may be a three-dimensional output mode; or, the first positioning image within the first preset position range of the target position indicated by the positioning information in the positioning interface is in a three-dimensional output mode, and other positioning images except the first positioning image in the positioning interface are in a two-dimensional output mode, so that the user of the first terminal device can quickly find the user of the second terminal device in the positioning interface.
The second mode is that the first terminal device outputs the positioning information in the positioning interface according to the first output mode when detecting the access request to the positioning interface, receiving the positioning information sent by the server and under the condition that the positioning information belongs to the preset safe area; and outputting the positioning information in the positioning interface according to a second output mode under the conditions that the access request to the positioning interface is detected, the positioning information sent by the server is received, and the positioning information belongs to a preset dangerous area.
The first output mode comprises at least one of a first preset color of the positioning icon, a first flashing frequency of the positioning icon, a first size of the positioning icon and a first shadow layer of the positioning icon; the second output mode comprises at least one of a second preset color of the positioning icon, a second flashing frequency of the positioning icon, a second size of the positioning icon and a second shadow layer of the positioning icon.
In an alternative embodiment, the first size is smaller than the second size, the first flicker frequency is smaller than the second flicker frequency, and at least one of hue, lightness, and saturation is different between the first preset color and the second preset color.
It can be understood that the preset security area may be an area with strong privacy, for example, areas such as school, home, office, and library; the preset dangerous area may be an area other than the preset safe area.
For example, as shown in fig. 1B, if the positioning information belongs to a preset safe area, the positioning icon may be displayed in the positioning interface according to a first shadow layer and a first size; as shown in fig. 1C, if the positioning information belongs to the preset dangerous area, the positioning icon may be displayed in the positioning interface according to the second shadow layer and the second size. Wherein the first dimension is smaller than the second dimension.
In a third mode, when the first terminal device detects an access request to the positioning interface, the first terminal device receives the positioning information sent by the server, and the first terminal device displays the positioning information in the positioning interface under the condition that the positioning information belongs to a preset safe area; the method comprises the steps of displaying the positioning information in the positioning interface when an access request to the positioning interface is detected, receiving the positioning information sent by the server, and preventing a user of the first terminal device from checking the positioning information by voice playing the positioning information under the condition that the positioning information belongs to a preset dangerous area.
And in the fourth mode, when the first terminal device detects an access request to the positioning interface and receives the positioning information sent by the server, determining the motion track of the second terminal device according to the positioning information and the historical positioning information within the latest period of time (such as the latest hour and the latest two hours). At the moment, the motion trail is displayed in the positioning interface, and the positioning information is marked on the motion trail. In this way, the user of the first terminal device can view the nearest motion trail of the user of the second terminal device, thereby facilitating supervision.
In an optional embodiment of the application, if the first terminal device detects an access request to the positioning interface, receives positioning information sent by the server, and the positioning information belongs to a preset dangerous area, the first terminal device may send help seeking information to the server, so that the server obtains vehicle information of a plurality of vehicles running in the preset dangerous area, and sends the help seeking information to the plurality of vehicles according to the vehicle information; if the target vehicle receives the help seeking operation agreed by the user of the target vehicle based on the help seeking information under the condition that the target vehicle receives the help seeking information, the target vehicle generates the help seeking information agreed and sends the help seeking information to the server, and the plurality of vehicles comprise the target vehicle; the server sends the positioning information of the second terminal device to the target vehicle according to the consent help seeking information, and sends the target vehicle information of the target vehicle to the first terminal device, so that the first terminal device sends the target vehicle information of the target vehicle to the second terminal device. Therefore, the user of the second terminal device can seek help according to the target vehicle information of the target vehicle, and danger to the user of the second terminal device is avoided.
It should be noted that the vehicles are all vehicles registered with real names, and the reputation values of the vehicles are greater than or equal to a preset value. Wherein the reputation value can be used to discount fueling costs. For example, the higher the reputation value, the lower the discount rate; conversely, the higher the reputation value, the higher the discount rate.
In addition, if the target vehicle finishes the rescue for the user of the second terminal device, the sum value between the reputation value of the target vehicle and the preset numerical value can be calculated to obtain a new reputation value of the target vehicle. For example, the preset value may be 3.
In another alternative embodiment of the present application, the present application considers that elderly people (i.e. people under guardianship) who usually need to be monitored in a nursing home usually consume more manpower if only medical staff is used for monitoring. Thus, in the present application, a medical person may be configured with a first terminal device and a person being guarded with a second terminal device. In order to avoid the person being monitored losing the second terminal device, the second terminal device may preferably be a wearable device (e.g. a watch, a wrist, etc.).
At this time, the positioning application may include positioning interfaces respectively corresponding to each person under guardianship, so the historical access times corresponding to the positioning interfaces included in the positioning application obtained in step 102 may be: acquiring the historical access times corresponding to the target positioning interface of the target person under guardianship, and step 103 may be replaced by: and under the condition that the first terminal equipment meets the cold start positioning condition according to the current cold start times and the historical access times corresponding to the target positioning interface, sending a positioning request message to a server, wherein the server is used for acquiring positioning information of second terminal equipment bound with the first terminal equipment according to the positioning request message, and the second terminal equipment is configured by a target person under guardianship and comprises the target person under guardianship.
In this way, under the condition that an access request to the target positioning interface is detected and the positioning information sent by the server is received, the positioning information is output in the target positioning interface; the access request is a request within a preset time length after the cold start operation. Therefore, the medical staff and the person under guardianship are respectively provided with the terminal equipment, and the person under guardianship with higher positioning attention is subjected to cold start automatic positioning, so that quick positioning is realized; the monitored personnel with low positioning attention degree do not need to carry out cold start automatic positioning, thereby reducing the power consumption of the terminal equipment and meeting the monitoring requirement of medical personnel.
Further, the first terminal device may store a security electronic fence corresponding to the endowment organization, and thus, outputting the positioning information in the target positioning interface may include: if the positioning information is in the safe electronic fence, outputting the positioning information in a target positioning interface according to the first output mode; and if the positioning information is outside the safety electronic fence, outputting the positioning information in the target positioning interface according to the second output mode. Wherein, the safety electronic fence can be a three-dimensional electronic fence.
In another alternative embodiment of the present application, the present application considers that a large number of employees are usually required to be monitored in an enterprise, and if the monitoring is performed by only a manager, the problem of incomplete management exists. Thus, in the present application, it is possible to configure a first terminal device for a manager and a second terminal device for a staff member. The second terminal device can be an intelligent card and the like.
At this time, the positioning application may include positioning interfaces corresponding to respective employees, so the historical access times corresponding to the positioning interfaces included in the positioning application obtained in step 102 may be: acquiring the historical access times corresponding to the target positioning interface of the target staff member, and the step 103 may be replaced by: and under the condition that the first terminal equipment meets the cold start positioning condition according to the current cold start times and the historical access times corresponding to the target positioning interface, sending a positioning request message to a server, wherein the server is used for acquiring the positioning information of second terminal equipment bound with the first terminal equipment according to the positioning request message, the second terminal equipment is configured by target staff members, and the staff members comprise the target staff members.
In this way, under the condition that an access request to the target positioning interface is detected and the positioning information sent by the server is received, the positioning information is output in the target positioning interface; the access request is a request within a preset time length after the cold start operation. Therefore, the method and the system realize quick positioning by respectively configuring terminal equipment for managers and staff and performing cold start automatic positioning on the staff with higher positioning attention; staff with low positioning attention degree do not need to perform cold start automatic positioning, so that the power consumption of the terminal equipment is reduced, and the supervision requirement of managers is met.
In an optional embodiment of the present application, in a case where an access request to the location interface is detected and the location information sent by the server is received, considering that the location change of the second terminal device in a short time period is not large, if the access request is not a request within a preset time period after the cold start operation, the output operation of the location information is not performed.
By adopting the method of the embodiment of the application, the positioning application program in the first terminal equipment is cold started, so that a user of the first terminal equipment does not need to wait for entering the positioning interface of the positioning application program, and click the positioning button and the sending button in the positioning interface, and the positioning waiting time is shortened. Moreover, the method and the device need to judge whether the first terminal equipment meets the cold start positioning condition, so that the problem that the second terminal equipment still receives the positioning request message under the condition that the first terminal equipment does not meet the cold start positioning condition is avoided, the resource consumption and the power consumption of the second terminal equipment are reduced, and the problem that the endurance time of the second terminal equipment is shortened due to cold start automatic positioning is solved.
With reference to fig. 1A, fig. 2 provides a schematic flow chart of a method for outputting positioning information. As shown in fig. 2, after step 102, the method may further include:
105. and the first terminal equipment judges whether the current cold start frequency is greater than or equal to a second preset threshold value.
Executing step 106 under the condition that the current cold start times are greater than or equal to a second preset threshold value;
and in the case that the current cold start number is smaller than a second preset threshold, executing step 103.
It should be noted that, the present application does not limit the timing sequence of step 105, and for example, step 105 may also follow step 101.
The process of obtaining the second preset threshold may refer to the process of obtaining the first preset threshold in step 102, and is not described herein again.
It should be noted that after step 104, the method may further include: and calculating the sum of the historical access times and the first value to obtain the current access times. The current access times can be obtained in a point burying mode. In this way, by means of embedding points, the server can update the first preset threshold and the second preset threshold according to the triggering times and the current access times of the first terminal device meeting the cold start positioning conditions.
Exemplarily, if the number of triggers is large and the number of current accesses is small, the first preset threshold may be increased; if the number of triggering times is large, the second preset threshold value can be reduced. The above examples are merely illustrative, and the present application is not limited thereto.
Further, the method and the device for triggering the big data can also count triggering conditions of the big data (namely, count the total triggering times of the test terminal device meeting the cold start positioning condition, and count the total access times of the test terminal device detecting the access request within the preset time after the cold start operation under the condition that the test terminal device meets the cold start positioning condition, wherein the device number of the test terminal device is greater than or equal to the preset number). Therefore, the first preset threshold and the second preset threshold can be updated according to the total triggering times and the total access times corresponding to a large number of test devices, and the universality of the first preset threshold and the second preset threshold is improved.
In addition, the first terminal equipment can be determined to finish one-time effective positioning after the positioning information is output in the positioning interface. Thus, in an alternative embodiment, whether to turn on the switch control for cold start automatic positioning in the server can be determined by the number of effective positioning. If the number of times of effective positioning is greater than the preset number of times, starting a cold start automatic positioning switch control; and if the effective positioning times are less than or equal to the preset times, closing the switch control for cold start automatic positioning.
106. The first terminal equipment obtains the product of the current cold start times and the preset ratio to obtain updated current cold start times, and obtains the product of the historical access times and the preset ratio to obtain updated historical access times.
Wherein the preset ratio is less than 1. Illustratively, the preset ratio may be 1/2, 2/3, 1/4, and the like.
It can be understood that, if the current cold start frequency is large, when the location of the second terminal device by the user is changed from a low attention degree to a high attention degree, or the location of the second terminal device by the user is changed from a high attention degree to a low attention degree, the obtained location attention degree does not change significantly, so that the determination result of whether the first terminal device satisfies the cold start location condition does not change significantly, and further the first terminal device cannot perform cold start automatic location under the condition that the location of the second terminal device by the user is changed from a low attention degree to a high attention degree; and under the condition that the positioning of the second terminal equipment by the user is changed from high attention degree to low attention degree, the first terminal equipment still executes cold-start automatic positioning.
At this time, step 103 may be replaced with step 103A, step 103A including: the first terminal equipment sends a positioning request message to the server under the condition that the first terminal equipment is determined to meet the cold start positioning condition according to the updated current cold start times and the updated historical access times; the server is used for acquiring the positioning information of the second terminal device bound with the first terminal device according to the positioning request message.
In summary, in order to avoid the problem that the cold start automatic positioning cannot be accurately performed due to the large denominator of the positioning attention, the present application reduces the current cold start times and the historical access times in equal proportion to obtain the updated cold start times and the updated access times, and returns to step 103. It should be noted that the historical access times involved in step 103 include updated historical access times, and the cold start times involved include updated cold start times.
In an optional embodiment of the present application, the first terminal device determines whether the positioning information belongs to a mall area, and if the positioning information belongs to the mall area, the first terminal device may send an image acquisition request to the second terminal device, where the image acquisition request is used to acquire a commodity image of a commodity to be purchased; the second terminal device acquires a commodity image of the commodity to be purchased according to the image acquisition request and sends the commodity image to the first terminal device; and if the user of the first terminal equipment agrees to the purchase instruction for the commodity image, the second terminal equipment sends a payment code to the first terminal equipment when receiving the purchase agreement instruction sent by the first terminal equipment, so that the first terminal equipment completes payment operation.
In another optional embodiment of the present application, the first terminal device may be a terminal device configured for a teacher, and the second terminal device may be a terminal device configured for a student (e.g., a watch, a bracelet, etc.). Therefore, a teacher can perform cold start automatic positioning on students with higher positioning attention, and quick positioning is realized; students with low positioning attention do not need to perform cold start automatic positioning, so that the power consumption of terminal equipment is reduced, and the supervision requirement of teachers is met. For example, the teacher is a sports teacher, and the students are in free activity, and the sports teacher needs to perform cold-start automatic positioning on some students considering that some students may go to dangerous areas for activities. For another example, the teacher is the master team, and the students are on study, and the master team considers that some students may go to playground activities by themselves, so that some students need to be automatically positioned in a cold start mode.
With reference to fig. 1A, fig. 3 provides a flowchart of an output method of positioning information. As shown in fig. 3, after step 104, the method may further include:
107. the first terminal equipment acquires a current position area to which the positioning information belongs.
In this embodiment of the application, a second preset position area of the target position indicated by the positioning information may be used as the current position area.
108. And the first terminal equipment determines destination recommendation information according to the current position area and the current time.
In the embodiment of the application, the fact that the events required to be executed by the user in different time periods are different is considered. Therefore, the target time period to which the current time belongs can be determined, the target event corresponding to the target time period is determined, the candidate destination recommendation information related to the target event is obtained in the current position area, and finally the destination recommendation information is obtained from the candidate destination recommendation information.
Illustratively, at noon 11: 30-13: 00, the event executed is dining; and in 14: 30-17: 00 afternoon, the executed events are reading and the like. If the current time is 11: 30-13: 00 noon, the corresponding target event is dining, and the first terminal device can acquire the candidate restaurant information in the current position area, so that a user of the first terminal device can acquire the restaurant information from the candidate restaurant information; if the current time is 14: 30-17: 00 pm, the corresponding target event is reading, and the first terminal device may acquire the candidate library information in the current location area, so that the user of the first terminal device may acquire the library information from the candidate library information.
It should be noted that, considering that the second terminal device has a short residence time in the current location area (for example, just passes by), information recommendation is not required. Therefore, before this step, the method may further comprise: the method comprises the steps that a first terminal device obtains the residence time of a second terminal device in a current position area; the first terminal equipment judges whether the residence time is greater than or equal to a third preset threshold value or not; under the condition that the residence time is greater than or equal to a third preset threshold, the first terminal equipment determines destination recommendation information according to the current position area and the current time; and terminating the flow when the residence time is less than a third preset threshold. Thus, the accuracy of information recommendation is improved.
109. The first terminal device transmits the destination recommendation information to the second terminal device.
In the embodiment of the application, the second terminal device may present the destination recommendation information in a case where the destination recommendation information is received.
Further, if the second terminal device detects a confirmation operation of the destination recommendation information, the second terminal device may generate navigation information according to the current location information of the second terminal device and the destination location information in the destination recommendation information, and output the navigation information.
Further, in order to make it possible for the user of the first terminal device to know whether the user of the second terminal device executes the target event in accordance with the destination recommendation information. In the embodiment of the present application, after the navigation information is output, the second terminal device obtains current trajectory information of the second terminal device within an initial time period (e.g., within 5 minutes, or within 10 minutes, etc.); determining the track matching degree between the current track information and the guide track information included in the navigation information, if the matching degree is greater than or equal to the preset matching degree, determining that a user of the second terminal equipment executes a target event according to destination recommendation information, and sending recommendation approval information to the first terminal equipment; and if the matching degree is smaller than the preset matching degree, determining that the user of the second terminal equipment does not execute the target event according to the destination recommendation information, and sending recommendation rejection information to the first terminal equipment.
Further, in a case where the first terminal device receives the recommendation consent information, the first terminal device may increase the affinity between the first terminal device and the second terminal device by a second number value to obtain a new affinity; in a case where the first terminal device receives the recommendation rejection information, the first terminal device may reduce the affinity between the first terminal device and the second terminal device by the second number value to obtain a new affinity. Illustratively, the second value may be 1.
It can be understood that the intimacy degree in the present application may be a parameter in the parent-child interaction application, so that the first terminal device extends the minimum interaction duration of the parent-child interaction application for a certain duration under the condition that the new intimacy degree is less than or equal to the preset degree, so as to improve the intimacy degree between users.
In conclusion, the destination recommendation information can be determined according to the positioning information and the current moment of the second terminal device, the information search process of the second terminal device is reduced, and therefore the electric quantity loss of the second terminal device is reduced. Moreover, the first terminal device is usually a control end, and the second terminal device is usually a controlled end, so that the destination recommendation information recommended by the first terminal device is more reasonable, and the recommendation reasonable rate is improved.
With reference to fig. 1A, fig. 4 provides a flowchart of an output method of positioning information. As shown in fig. 4, after step 104, the method may further include:
110. the first terminal device judges whether the positioning information belongs to an outdoor area.
Illustratively, outdoor areas include areas that may include streets, squares, and the like.
In case the positioning information belongs to the outdoor area, performing step 111;
in the case where the positioning information belongs to the indoor area, the flow is terminated.
111. The first terminal device detects whether the second terminal device is connected with an earphone or not and whether an audio playing event exists in the second terminal device or not.
It will be appreciated that the headset may be a wired headset or a wireless headset (e.g., a bluetooth headset, etc.), and so forth.
The audio playing event may be a video playing event, a music playing event, or a broadcast playing event.
When the second terminal device is connected with an earphone and an audio playing event exists in the second terminal device, executing step 112;
and under the condition that the second terminal equipment is not connected with the earphone and/or the second terminal equipment does not have the audio playing event, the process is terminated.
112. And the first terminal equipment controls the second terminal equipment to close the audio playing event.
Therefore, as outdoor environment conditions are complex, such as more vehicles, in order to avoid personal danger to the user of the second terminal device, the first terminal device can remotely control to close the audio playing event, the attention of the user of the second terminal device to the outdoor conditions is improved, and the travel safety is improved.
Fig. 5 is a block diagram of a terminal device shown in an embodiment of the present application, where the terminal device includes a first terminal device, and as shown in fig. 5, the terminal device includes:
an obtaining module 501, configured to obtain, when a cold start operation of a positioning application in the first terminal device is detected, a current cold start frequency of the positioning application; and the number of the first and second groups,
acquiring historical access times corresponding to a positioning interface included in the positioning application program; the historical access times are the access times of the positioning application program within a preset time length after the historical cold start;
a sending module 502, configured to send a location request message to a server when it is determined that the first terminal device meets a cold start location condition according to the current cold start times and the historical access times; the server is used for acquiring the positioning information of the second terminal equipment bound with the first terminal equipment according to the positioning request message;
an output module 503, configured to output the positioning information in the positioning interface when detecting an access request to the positioning interface and receiving the positioning information sent by the server; the access request is a request within a preset time length after the cold start operation.
Optionally, the cold start positioning condition comprises: and the positioning attention is greater than or equal to a first preset threshold, and the positioning attention is the ratio of the historical access times to the current cold start times.
Optionally, the obtaining module 501 is further configured to, when the current cold start time is greater than or equal to a second preset threshold, obtain a product between the current cold start time and a preset ratio to obtain an updated current cold start time, and obtain a product between the historical access time and the preset ratio to obtain an updated historical access time;
wherein the preset ratio is less than 1;
a sending module 502, further configured to send the location request message to the server when determining that the first terminal device meets the cold start location condition according to the updated current cold start times and the updated historical access times.
Optionally, the obtaining module 501 is further configured to obtain the historical cold start times of the positioning application program when a cold start operation of the positioning application program in the first terminal device is detected; and the number of the first and second groups,
and calculating the sum of the historical cold start times and the first numerical value to obtain the current cold start times of the positioning application program.
Optionally, the output module 503 is further configured to, when an access request to the location interface is detected, receive location information sent by the server, and the location information belongs to a preset safe area, output the location information in the location interface according to a first output mode;
when an access request to the positioning interface is detected, positioning information sent by the server is received, and the positioning information belongs to a preset dangerous area, the positioning information is output in the positioning interface according to a second output mode;
the first output mode comprises at least one of a first preset color of a positioning icon, a first flashing frequency of the positioning icon, a first size of the positioning icon and a first shadow layer of the positioning icon;
the second output mode comprises at least one of a second preset color of the positioning icon, a second flashing frequency of the positioning icon, a second size of the positioning icon, and a second shadow layer of the positioning icon.
Optionally, the obtaining module 501 is further configured to obtain a current location area to which the positioning information belongs; determining destination recommendation information according to the current position area and the current time;
the sending module 502 is further configured to send the destination recommendation information to the second terminal device.
Optionally, the obtaining module 501 is further configured to obtain a residence time of the second terminal device in the current location area; and the number of the first and second groups,
and under the condition that the residence time is greater than or equal to a third preset threshold, determining the destination recommendation information according to the current position area and the current time.
The specific content of the terminal device may refer to the content described in the above embodiment of the method for outputting the positioning information, and is not described herein again.
Fig. 6 is a block diagram illustrating a partial structure of a terminal device related to a terminal provided in an embodiment of the present invention. Referring to fig. 6, the terminal device includes: radio Frequency (RF) circuit 610, memory 620, input unit 630, display unit 640, sensor 650, audio circuit 660, wireless fidelity (WiFi) module 670, processor 680, and power supply 690. Those skilled in the art will appreciate that the terminal device configuration shown in fig. 6 does not constitute a limitation of the terminal device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following specifically describes each constituent component of the terminal device with reference to fig. 6:
the RF circuit 610 may be used for receiving and transmitting signals during information transmission and reception or during a call, and in particular, receives downlink information of a base station and then processes the received downlink information to the processor 680; in addition, the data for designing uplink is transmitted to the base station. In general, the RF circuit 610 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuitry 610 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to global system for Mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Message Service (SMS), and the like.
The memory 620 may be used to store software programs and modules, and the processor 680 may execute various functional applications of the terminal device and data processing by operating the software programs and modules stored in the memory 620. The memory 620 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the terminal device, and the like. Further, the memory 620 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The input unit 630 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the terminal device. Specifically, the input unit 630 may include a touch panel 631 and other input devices 632. The touch panel 631, also referred to as a touch screen, may collect touch operations of a user (e.g., operations of the user on the touch panel 631 or near the touch panel 631 by using any suitable object or accessory such as a finger or a stylus) thereon or nearby, and drive the corresponding connection device according to a preset program. Alternatively, the touch panel 631 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 680, and can receive and execute commands sent by the processor 680. In addition, the touch panel 631 may be implemented using various types, such as resistive, capacitive, infrared, and surface acoustic wave. The input unit 630 may include other input devices 632 in addition to the touch panel 631. In particular, other input devices 632 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 640 may be used to display information input by a user or information provided to the user and various menus of the terminal device. The Display unit 640 may include a Display panel 641, and optionally, the Display panel 641 may be configured in the form of a Liquid Crystal Display (LCD), an organic light-Emitting Diode (OLED), or the like. Further, the touch panel 631 can cover the display panel 641, and when the touch panel 631 detects a touch operation thereon or nearby, the touch panel is transmitted to the processor 680 to determine the type of the touch event, and then the processor 680 provides a corresponding visual output on the display panel 641 according to the type of the touch event. Although in fig. 6, the touch panel 631 and the display panel 641 are two separate components to implement the input and output functions of the terminal device, in some embodiments, the touch panel 631 and the display panel 641 may be integrated to implement the input and output functions of the terminal device.
The terminal device may also include at least one sensor 650, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that adjusts the brightness of the display panel 641 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 641 and/or the backlight when the terminal device is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), detect the magnitude and direction of gravity when stationary, and can be used for applications (such as horizontal and vertical screen switching, related games, magnetometer attitude calibration) for recognizing the attitude of the terminal device, and related functions (such as pedometer and tapping) for vibration recognition; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured in the terminal device, detailed description is omitted here.
WiFi belongs to short-distance wireless transmission technology, and the terminal equipment can help a user to send and receive e-mails, browse webpages, access streaming media and the like through the WiFi module 670, and provides wireless broadband internet access for the user. Although fig. 6 shows the WiFi module 670, it is understood that it does not belong to the essential constitution of the terminal device, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 680 is a control center of the terminal device, connects various parts of the entire terminal device using various interfaces and lines, and performs various functions of the terminal device and processes data by running or executing software programs and/or modules stored in the memory 620 and calling data stored in the memory 620, thereby monitoring the terminal device as a whole. Optionally, processor 680 may include one or more processing units; preferably, the processor 680 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 680.
The terminal device also includes a power supply 690 (e.g., a battery) for powering the various components, which may preferably be logically coupled to the processor 680 via a power management system to manage charging, discharging, and power consumption via the power management system.
Although not shown, the terminal device may further include a camera, a bluetooth module, and the like, which are not described herein.
In this embodiment of the present invention, the processor 680 included in the terminal device has a function of executing the method for outputting the positioning information according to this embodiment of the present application.
In the several embodiments provided in the present application, it should be understood that the disclosed method for outputting positioning information and terminal device may be implemented in other manners. For example, the above-described terminal device embodiments are merely illustrative, and for example, the division of the units is only one logical function division, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form. The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.
Claims (10)
1. The method for outputting the positioning information is applied to a first terminal device, and comprises the following steps:
under the condition that the cold start operation of a positioning application program in the first terminal equipment is detected, acquiring the current cold start times of the positioning application program;
acquiring historical access times corresponding to a positioning interface included in the positioning application program; the historical access times are the access times of the positioning application program within a preset time length after the historical cold start;
under the condition that the first terminal equipment is determined to meet the cold start positioning condition according to the current cold start times and the historical access times, sending a positioning request message to a server; the server is used for acquiring the positioning information of the second terminal equipment bound with the first terminal equipment according to the positioning request message;
under the conditions that an access request to the positioning interface is detected and positioning information sent by the server is received, outputting the positioning information in the positioning interface; the access request is a request within a preset time length after the cold start operation.
2. The method of claim 1, wherein the cold start positioning condition comprises: and the positioning attention is greater than or equal to a first preset threshold, and the positioning attention is the ratio of the historical access times to the current cold start times.
3. The method of claim 1, further comprising:
under the condition that the current cold start times are larger than or equal to a second preset threshold value, obtaining the product of the current cold start times and a preset ratio to obtain updated current cold start times, and obtaining the product of the historical access times and the preset ratio to obtain updated historical access times;
wherein the preset ratio is less than 1;
and sending a positioning request message to a server under the condition that the first terminal device is determined to meet the cold start positioning condition according to the current cold start times and the historical access times, wherein the positioning request message comprises:
and sending the positioning request message to the server under the condition that the first terminal equipment is determined to meet the cold start positioning condition according to the updated current cold start times and the updated historical access times.
4. The method according to claim 1, wherein the obtaining of the current number of cold starts of the positioning application in case of detecting a cold start operation of the positioning application in the first terminal device comprises:
under the condition that the cold start operation of a positioning application program in the first terminal equipment is detected, acquiring the historical cold start times of the positioning application program;
and calculating the sum of the historical cold start times and the first numerical value to obtain the current cold start times of the positioning application program.
5. The method according to any one of claims 1 to 4, wherein the outputting the positioning information in the positioning interface in the case of detecting an access request to the positioning interface and receiving the positioning information sent by the server comprises:
when an access request to the positioning interface is detected, positioning information sent by the server is received, and the positioning information belongs to a preset safe area, the positioning information is output in the positioning interface according to a first output mode;
when an access request to the positioning interface is detected, positioning information sent by the server is received, and the positioning information belongs to a preset dangerous area, the positioning information is output in the positioning interface according to a second output mode;
the first output mode comprises at least one of a first preset color of a positioning icon, a first flashing frequency of the positioning icon, a first size of the positioning icon and a first shadow layer of the positioning icon;
the second output mode comprises at least one of a second preset color of the positioning icon, a second flashing frequency of the positioning icon, a second size of the positioning icon, and a second shadow layer of the positioning icon.
6. The method according to any one of claims 1 to 4, further comprising:
acquiring a current position area to which the positioning information belongs;
determining destination recommendation information according to the current position area and the current moment;
and sending the destination recommendation information to the second terminal equipment.
7. The method of claim 6, further comprising:
acquiring the residence time of the second terminal equipment in the current position area;
the determining destination recommendation information according to the current location area and the current time includes:
and under the condition that the residence time is greater than or equal to a third preset threshold, determining the destination recommendation information according to the current position area and the current time.
8. A terminal device, characterized in that the terminal device comprises a first terminal device, comprising:
the acquisition module is used for acquiring the current cold start times of the positioning application program under the condition of detecting the cold start operation of the positioning application program in the first terminal equipment; and the number of the first and second groups,
acquiring historical access times corresponding to a positioning interface included in the positioning application program; the historical access times are the access times of the positioning application program within a preset time length after the historical cold start;
the sending module is used for sending a positioning request message to a server under the condition that the first terminal device is determined to meet the cold start positioning condition according to the current cold start times and the historical access times; the server is used for acquiring the positioning information of the second terminal equipment bound with the first terminal equipment according to the positioning request message;
the output module is used for outputting the positioning information in the positioning interface under the conditions that an access request to the positioning interface is detected and the positioning information sent by the server is received; the access request is a request within a preset time length after the cold start operation.
9. A terminal device, characterized in that it comprises a processor and a memory, said processor and memory being coupled, said memory being adapted to store computer program instructions which, when executed by said processor, cause the terminal device to carry out the steps of the method for outputting positioning information according to any one of claims 1 to 7.
10. A computer storage medium, characterized in that the computer storage medium has stored therein program instructions which, when run on a terminal device, cause the terminal device to perform the steps of the method for outputting positioning information according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010580885.2A CN111756927B (en) | 2020-06-23 | 2020-06-23 | Output method of positioning information, terminal equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010580885.2A CN111756927B (en) | 2020-06-23 | 2020-06-23 | Output method of positioning information, terminal equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111756927A true CN111756927A (en) | 2020-10-09 |
CN111756927B CN111756927B (en) | 2021-06-01 |
Family
ID=72676983
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010580885.2A Active CN111756927B (en) | 2020-06-23 | 2020-06-23 | Output method of positioning information, terminal equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111756927B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115412633A (en) * | 2022-08-22 | 2022-11-29 | 深圳市神州路路通网络科技有限公司 | Position information acquisition method, device, terminal equipment and storage medium |
Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120250733A1 (en) * | 2011-03-31 | 2012-10-04 | General Dynamics Advanced Information Systems | Method and apparatus for rapid acquisitions of gps signals in space applications |
CN104239102A (en) * | 2014-09-15 | 2014-12-24 | 腾讯科技(深圳)有限公司 | Operation method and device of application program |
CN105933521A (en) * | 2016-04-22 | 2016-09-07 | 广东小天才科技有限公司 | Method and device for selecting positioning mode by mobile terminal |
CN106547598A (en) * | 2016-11-22 | 2017-03-29 | 四川长虹电器股份有限公司 | The method for lifting Android application program launching speed |
CN108121644A (en) * | 2017-12-19 | 2018-06-05 | 珠海市君天电子科技有限公司 | A kind of test method, device and the electronic equipment of page control performance |
CN108345474A (en) * | 2018-01-11 | 2018-07-31 | 维沃移动通信有限公司 | Startup method, starter and the mobile terminal of application program |
CN108762833A (en) * | 2018-05-16 | 2018-11-06 | 北京安云世纪科技有限公司 | Application in Android system starts method and apparatus |
CN109379715A (en) * | 2018-10-30 | 2019-02-22 | 深圳市航天华拓科技有限公司 | A kind of localization method of positioning terminal, device and calculate equipment |
CN109598362A (en) * | 2018-11-22 | 2019-04-09 | 北京小米移动软件有限公司 | It obtains trip software and shows the method and device of page layout, electronic equipment |
CN110018899A (en) * | 2018-01-10 | 2019-07-16 | 华为技术有限公司 | Recycle the method and device of memory |
CN110597569A (en) * | 2019-09-04 | 2019-12-20 | 北京安云世纪科技有限公司 | Software opening page control method and device, storage medium and electronic equipment |
US10592258B2 (en) * | 2017-07-07 | 2020-03-17 | Facebook, Inc. | Systems and methods for loading features |
-
2020
- 2020-06-23 CN CN202010580885.2A patent/CN111756927B/en active Active
Patent Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120250733A1 (en) * | 2011-03-31 | 2012-10-04 | General Dynamics Advanced Information Systems | Method and apparatus for rapid acquisitions of gps signals in space applications |
CN104239102A (en) * | 2014-09-15 | 2014-12-24 | 腾讯科技(深圳)有限公司 | Operation method and device of application program |
CN105933521A (en) * | 2016-04-22 | 2016-09-07 | 广东小天才科技有限公司 | Method and device for selecting positioning mode by mobile terminal |
CN106547598A (en) * | 2016-11-22 | 2017-03-29 | 四川长虹电器股份有限公司 | The method for lifting Android application program launching speed |
US10592258B2 (en) * | 2017-07-07 | 2020-03-17 | Facebook, Inc. | Systems and methods for loading features |
CN108121644A (en) * | 2017-12-19 | 2018-06-05 | 珠海市君天电子科技有限公司 | A kind of test method, device and the electronic equipment of page control performance |
CN110018899A (en) * | 2018-01-10 | 2019-07-16 | 华为技术有限公司 | Recycle the method and device of memory |
CN108345474A (en) * | 2018-01-11 | 2018-07-31 | 维沃移动通信有限公司 | Startup method, starter and the mobile terminal of application program |
CN108762833A (en) * | 2018-05-16 | 2018-11-06 | 北京安云世纪科技有限公司 | Application in Android system starts method and apparatus |
CN109379715A (en) * | 2018-10-30 | 2019-02-22 | 深圳市航天华拓科技有限公司 | A kind of localization method of positioning terminal, device and calculate equipment |
CN109598362A (en) * | 2018-11-22 | 2019-04-09 | 北京小米移动软件有限公司 | It obtains trip software and shows the method and device of page layout, electronic equipment |
CN110597569A (en) * | 2019-09-04 | 2019-12-20 | 北京安云世纪科技有限公司 | Software opening page control method and device, storage medium and electronic equipment |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115412633A (en) * | 2022-08-22 | 2022-11-29 | 深圳市神州路路通网络科技有限公司 | Position information acquisition method, device, terminal equipment and storage medium |
CN115412633B (en) * | 2022-08-22 | 2023-07-25 | 深圳市神州路路通网络科技有限公司 | Position information acquisition method, device, terminal equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN111756927B (en) | 2021-06-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108834068B (en) | Positioning method based on wearable device and wearable device | |
CN106537946B (en) | Scoring beacon messages for mobile device wake-up | |
CN109556621B (en) | Route planning method and related equipment | |
CN110710190B (en) | Method, terminal, electronic device and computer-readable storage medium for generating user portrait | |
CN110572776B (en) | Method for dividing safety area, terminal and storage medium | |
CN108323237B (en) | Terminal behavior triggering method and terminal | |
CN107592615B (en) | Positioning method and device | |
CN106897589A (en) | Method, device and terminal that wearable device authority is shifted | |
CN108647957A (en) | A kind of method of payment, device and mobile terminal | |
CN106201553A (en) | Control method, device and terminal unit at desktop pushing application program | |
CN109246291B (en) | Mobile terminal and sleep reminding method and device | |
CN106453481A (en) | Electronic device and method for providing service in the electronic device | |
CN109194726A (en) | Mobile terminal and information-pushing method, device | |
CN105933209B (en) | Position sharing method and device | |
CN108616448A (en) | A kind of the path recommendation method and mobile terminal of Information Sharing | |
CN112312308A (en) | Indoor positioning method and terminal equipment | |
CN111466125A (en) | Service pushing method and terminal | |
WO2019061276A1 (en) | Signal quality alert method, terminal and server | |
CN111756927B (en) | Output method of positioning information, terminal equipment and storage medium | |
CN109167752B (en) | Mobile terminal and method and device for automatically logging in application platform | |
CN110399407A (en) | Working trajectory inspection method and device, electronic equipment and non-transient storage media | |
CN106535174A (en) | Number identification control method and device in double-card mode and mobile terminal | |
CN108540651A (en) | A kind of the recommendation method and mobile terminal of application program | |
CN106603650B (en) | Method for sharing position information and terminal equipment | |
CN109089222A (en) | Mobile terminal and monitoring method, device |
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 |