Detailed Description
In order to make those skilled in the art better understand the technical solutions in the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The following describes specific implementations of embodiments of the present application in detail with reference to several specific examples.
An embodiment of an information pushing method according to the present application is first described below. Fig. 1 is a flow chart of an embodiment of a method for pushing information provided by the present application, which provides the method operation steps described in the embodiment or the flow chart, but may include more or less operation steps based on conventional or non-inventive labor. The order of steps recited in the embodiments is merely one manner of performing the steps in a multitude of orders and does not represent the only order of execution. In actual implementation, the system or client product may execute sequentially or in parallel (e.g., in the context of parallel processors or multi-threaded processing) according to the embodiments or methods shown in the figures. Specifically, as shown in fig. 1, the method may include:
s110: the action direction of the user is obtained.
In the embodiment of the application, the action direction of the user can be acquired. Specifically, the acquiring the action direction of the user may include:
and determining the action direction of the user according to the user position information acquired in a preset time period.
As shown in fig. 2, fig. 2 is a flowchart illustrating an embodiment of determining an action direction of a user according to user location information acquired within a preset time period. Specifically, the determining the action direction of the user according to the user location information acquired within the preset time period may include:
s111: and acquiring user position information in a first preset period within a preset time period.
In the embodiment of the application, the preset time period and the first preset period may be set according to requirements of an actual application scene, and specifically, the first preset period may be less than or equal to the preset time period. Preferably, the first preset period is less than the preset time period. In a specific embodiment, taking the example that the first preset period is smaller than the preset time period, the preset time period may be set to 10s, and the first preset period may be set to 1 s.
Specifically, taking the preset time period as 10s and the first preset period as 1s as an example, the user location information is obtained in the first preset period within the preset time period, so that 11 pieces of user location information can be obtained. Specifically, the user location information may include, but is not limited to, longitude and latitude location information, and the user location information may be through a radio communication network (e.g., GSM network, CDMA network) or an external positioning method (e.g., GPS).
S112: and calculating the position offset data between two pieces of user position information acquired at adjacent time points in the user position information.
Specifically, after the user position information is acquired in step S111, the position offset data between two pieces of user position information acquired at adjacent time points in the user position information may be calculated. In a specific embodiment, taking the case that the preset time period is 10s and the first preset period is 1s as an example, correspondingly, 10 pieces of position offset data may be determined according to the acquired 11 pieces of user position information. The position offset data can be represented by information such as relative direction, relative distance and the like according to the position offset between two pieces of user position information acquired at adjacent time points. Specifically, when the offset angle between two pieces of user position information is smaller than the preset angle value, a positive direction (generally, the positive direction includes an east-west direction and a south-north direction) having a large relative linear distance may be used as the relative direction between the two pieces of user position information. Specifically, the preset angle value may be set according to a specific application scenario. In a specific embodiment, in the case where the preset angle value is set to 45 °, two pieces of user location information are assumed: and when the angle A is 5 degrees relative to the angle A, the angle B can be judged to be smaller than a preset angle value, the positive direction with larger relative straight line distance is the east-west direction, and correspondingly, the east-west direction can be taken as the relative direction between the angle A and the angle B. In one specific embodiment, the position offset data may be represented as EW +0.25, EW +0.25 may represent that the relative direction between two user position information is east-west, and the relative direction between the two user position information is east-0.25 m. Accordingly, EW-0.25 may represent that the relative direction between two user location information is east-west and that the two user location information is west-0.25 m.
Specifically, the eastern direction may be set as the positive direction in the foregoing embodiments, and the westward direction may also be set as the positive direction in some embodiments. In practical applications, a positive direction of the relevant direction, such as a north-south direction, may be preset, and a north direction may be set.
In addition, the position offset data in the embodiment of the present application is not limited to the above representation manner, and in practical applications, other representation manners may be set according to specific application scenarios, and the embodiment of the present application is not limited thereto.
S113: and determining the action direction of the user within the preset time period according to the position deviation data.
In this embodiment of the application, after the position offset data is obtained in step S112, the action direction of the user within the preset time period may be determined according to the position offset data. Specifically, the determining of the action direction of the user within the preset time period according to the position offset data may include at least one of:
when the offset directions corresponding to the position offset data in the preset time period are consistent, taking the offset directions as the action directions of the user;
and when the offset directions corresponding to the position offset data in the preset time period are inconsistent, comparing the occurrence times of the offset directions, and taking the offset direction of which the occurrence times meet the preset judgment requirement as the action direction of the user.
In a specific application scenario, when the offset directions corresponding to the position offset data within the preset time period are consistent, taking the case that the preset time period is 10s and the first preset period is 1s as an example, it is assumed that the corresponding 10 position offset data are EW +0.25, EW +0.3, EW +0.26, EW +0.2, EW +0.19, EW +0.28, EW +0.26, EW +0.27, EW +0.29, and EW +0.24 in sequence. It may be determined that the offset directions corresponding to the position offset data are all eastward, and correspondingly, it may be determined that the offset directions determined within the preset time period are consistent, and the offset direction (eastward) is taken as the action direction of the user within the preset time period.
In another specific application scenario, when the offset directions corresponding to the position offset data in the preset time period are not consistent, the taking of the offset direction whose occurrence frequency meets the preset determination requirement as the action direction of the user may include taking the offset direction whose occurrence frequency is the largest as the action direction of the user in the preset time period when the difference between the occurrence frequencies of the offset directions corresponding to the position offset data in the preset time period is relatively large. And when the occurrence times of the offset directions corresponding to the position offset data in the preset time period are relatively average, taking the offset directions of which the occurrence times are greater than the preset times (the preset times are greater than the number of the position offset data) as the action directions of the user in the preset time period.
As shown in fig. 3, fig. 3 is a schematic diagram of an embodiment of an offset situation between user location information when offset directions corresponding to location offset data within a preset time period are not consistent. Taking the above-mentioned case where the preset time period is 10s and the first preset period is 1s as an example, it can be seen from the figure that the preset time period 10s includes the obtained user location information corresponding location points a1, a2, A3, a4, a5, a6, a7, A8, a9, a10, and a 11. Taking the case of an offset between a1 and a2 as an example, the position offset data between a1 and a2 can be expressed as EW + 0.2; taking the case of an offset between a2 and A3 as an example, the position offset data between a2 and A3 may be expressed as EW + 0.3; taking the case of an offset between A5 and A6 as an example, the position offset data between A5 and A6 can be expressed as EW-0.2; the corresponding 10 position offset data may be EW +0.2, EW +0.3, EW-0.2, EW +0.3, EW +0.2 in sequence. The offset directions corresponding to the position offset data may be determined to include an east direction and a west direction, and accordingly, it may be determined that the offset directions determined within the preset time period are not consistent, the occurrence times of the offset directions (east or west direction) may be compared, it may be determined that the difference between the occurrence times of the offset directions is large, and accordingly, the offset direction (east direction) having the largest occurrence time may be taken as the action direction of the user within the preset time period.
In some other embodiments of the present application, the obtaining the action direction of the user may include:
and receiving direction setting information of a user, and taking the direction indicated in the direction setting information as the action direction of the user.
In a specific application scenario, a corresponding direction input interface may be provided. Therefore, the user can set the corresponding direction according to the current requirement, and correspondingly, after the direction setting information of the user is received, the direction indicated in the direction setting information can be used as the action direction of the user.
S120: and setting a first pushing range for pushing information according to the action direction.
In the embodiment of the present application, a first push range for pushing information may be set according to the action direction. In the embodiment of the present application, the first push range may include a position area range set according to the action direction. Specifically, the first pushing range pushed according to the action direction setting information may include at least one of the following ranges:
taking a first linear distance from a current position of a user to the action direction, taking the current position of the user as an end point, and taking an area range formed by the first linear distance within a first preset offset angle of the action direction as a first pushing range for information pushing;
and taking a second linear distance from a preset starting point position to the action direction, taking the current position of the user as an end point, and taking an area range formed by the second linear distance within a second preset offset angle of the action direction as a first pushing range for information pushing.
In the embodiment of the application, the first linear distance, the second linear distance, the first preset offset angle and the first preset offset angle can be set according to a specific application scene. Typically, the first and second predetermined offset angles are less than or equal to 90 °. In a specific application scenario, taking the action direction as an eastward direction as an example, the first straight-line distance from the current position of the user to the action direction is taken, the current position of the user is taken as an endpoint, and a first push range determined by a region range formed by the first straight-line distance within a first preset offset angle of the action direction may include a region range formed by the current position of the user to the eastward 100m, and taking the current position of the user as an endpoint, the eastward 100m is taken as a region range formed by straight-line distances of 45 degrees to the northeast and 45 degrees to the southeast.
In some application scenarios, a user may not have reached a certain place yet, but may have passed a certain place and proceeded from that place to a certain direction. In the application scene, the user can set the corresponding starting point position and the corresponding action direction in advance; correspondingly, a second linear distance from a preset starting point position to the action direction can be taken, the current position of the user is taken as an end point, and an area range formed by the second linear distance within a second preset offset angle of the action direction is taken as a first pushing range for information pushing.
S130: and pushing the pushing information corresponding to the first pushing range to the user.
In this embodiment of the application, after the first push range is set, the push information corresponding to the first push range may be pushed to the user. Specifically, the push information corresponding to the first push range may include preset event service information and the like of the merchant corresponding to the area where the first push range is located, for example, offer information such as 7-point-in-the-evening-day yogurt in supermarket a, 5-fold-over-the-night-day-sale, and the like. Certainly, the push information corresponding to the first push range may further include preset interaction information and the like of the merchant corresponding to the area where the first push range is located, such as interaction information of sign-in, coupon picking up, chat and the like. In practical application, after the first push range is determined, the push information corresponding to the first push range may also be determined accordingly.
According to the embodiment of the application, the first pushing range is set according to the current actual action direction of the user, the validity of the pushing information in the first pushing range can be guaranteed, a part of invalid information is selected for the user in advance, the user experience is improved, and the store arrival rate of the user is improved.
In some embodiments, in the above embodiment of determining the action direction of the user according to the user location information acquired within the preset time period, after determining the action direction of the user, the method may further include:
sending a confirmation message whether the action direction is taken as a push information range setting standard or not to a user;
and after receiving the confirmation information of the user on the confirmation message, executing the operation of setting a first pushing range of information pushing according to the action direction.
In practical applications, there may be situations where the user does not need to use the current direction of action as the push information range setting criterion. Correspondingly, after the action direction of the user is determined, by sending a confirmation message whether the action direction is taken as a push information range setting standard to the user, whether a first push range needs to be pushed according to the action direction setting information can be subsequently determined according to the feedback condition of the user to the confirmation message.
Specifically, after receiving the confirmation information of the user on the confirmation message, it may be determined that the user needs to use the action direction as a push information range setting standard, and accordingly, an operation of setting a first push range for information push according to the action direction may be performed.
In some embodiments, when the user does not need to set the criterion with the action direction as the push information range, the method may further include:
after receiving the cancellation information of the user to the confirmation message, setting a second pushing range for information pushing according to the current position information of the user;
and pushing the push information corresponding to the second push range to the user.
In this embodiment, the second push range may include a region of a certain circumferential range centered on the current position of the user.
In practical applications, when the current positions are the same, the area corresponding to the first push range is smaller than the area corresponding to the second push range, and correspondingly, the push information corresponding to the first push range is smaller than the push information corresponding to the second push range. Therefore, according to the method and the device, a part of invalid information can be selected for the user in advance in the first pushing range for pushing the set information according to the action direction, and the validity of the pushed information is improved.
In addition, in the embodiment of the application, by sending the confirmation message indicating whether the action direction is used as the setting standard of the information pushing range to the user, the corresponding information pushing range can be flexibly set according to the requirement of the user, and correspondingly, the subsequently pushed information more conforms to the requirement of the user.
Therefore, in the embodiment of the information pushing method, the action direction of the user is determined according to the user position information acquired within the preset time period or the direction setting information of the user. Then, a first pushing range for pushing information is set according to the action direction, the current actual action condition of the user is effectively combined, and the validity of the pushing information corresponding to the first pushing range can be ensured. And finally, pushing the push information corresponding to the first push range to the user, so that the time for the user to swipe the invalid information can be reduced, and the user experience is improved. Compared with the prior art, the information pushing method in the embodiment of the application can be used for pushing the information according to the current actual action condition of the user, so that the user experience is improved, and the store-to-store rate and the information pushing effectiveness of the user are provided.
In another aspect of the present application, an information pushing apparatus is further provided, and fig. 4 is a schematic structural diagram of an embodiment of the information pushing apparatus provided in the present application. As shown in fig. 4, the apparatus 400 may include:
an action direction obtaining module 410, which can be used for obtaining the action direction of the user;
a first pushing range setting module 420, configured to set a first pushing range for pushing information according to the action direction;
the first information pushing module 430 may be configured to push the pushing information corresponding to the first pushing range to the user.
In the information pushing apparatus in the embodiment of the present application, the action direction obtaining module 410 can obtain the action direction according with the actual action condition of the user. Then, the validity of the push information corresponding to the first push range of the information push is set according to the action direction.
In another embodiment, the action direction acquiring module 410 may include:
the first action direction obtaining unit may be configured to determine an action direction of the user according to user location information obtained within a preset time period.
The present application provides a specific embodiment mode of the first traveling direction acquiring unit. Specifically, fig. 5 is a schematic structural diagram of an embodiment of a first moving direction acquiring unit provided in the present application, and as shown in fig. 5, the first moving direction acquiring unit in the embodiment of the present application may include:
a user location information obtaining unit 510, configured to obtain user location information at a first preset period within a preset time period;
a position offset data calculating unit 520, configured to calculate position offset data between two pieces of user position information obtained at adjacent time points in the user position information;
the action direction determining unit 530 may be configured to determine an action direction of the user within the preset time period according to the position offset data.
The present application provides a specific embodiment of the action direction determining unit. Specifically, fig. 6 is a schematic structural diagram of an embodiment of an action direction determining unit provided in the present application, and as shown in fig. 6, the action direction determining unit 530 in the embodiment of the present application may include:
the first data processing unit 531 may be configured to, when offset directions corresponding to the position offset data in the preset time period are consistent, use the offset direction as an action direction of the user;
the second data processing unit 532 may be configured to, when the offset directions corresponding to the position offset data in the preset time period are not consistent, compare the occurrence times of the offset directions, and use the offset direction whose occurrence times meet a preset determination requirement as the action direction of the user.
In another embodiment, after determining the direction of action of the user, the apparatus 400 may further include:
the confirmation message sending module can be used for sending a confirmation message whether the action direction is used as a push information range setting standard to a user;
accordingly, after receiving the confirmation message of the user to the confirmation message, the first push range setting module 420 may perform an operation of pushing the first push range according to the action direction setting message.
In the information pushing device provided in the embodiment of the application, the confirmation message sending module may send a confirmation message to the user, the action direction of which is used as the pushing information range setting standard, so that the user can select whether to use the action direction as the pushing information range setting standard, and subsequently, whether to set the first pushing range for information pushing according to the action direction is determined according to the feedback condition of the user to the confirmation message, so that the corresponding information pushing range can be flexibly set according to the requirement of the user, correspondingly, the pushing information of subsequent pushing more meets the requirement of the user, and the user experience is improved.
In another embodiment, the apparatus 400 may further include:
the second pushing range setting module may be configured to set a second pushing range for information pushing according to the current location information of the user after receiving the cancellation information of the user for the acknowledgment message;
the second information pushing module may be configured to push the pushing information corresponding to the second pushing range to the user.
In another embodiment, the action direction acquiring module 410 may include:
the second action direction acquiring unit may be configured to receive direction setting information of the user, and use a direction indicated in the direction setting information as an action direction of the user.
The present application provides a specific embodiment of the first push range setting module. Specifically, fig. 7 is a schematic structural diagram of an embodiment of a first push range setting module provided in the present application, and as shown in fig. 7, the first push range setting module 420 in the embodiment of the present application may include:
a third data processing unit 421, configured to obtain a first linear distance from a current position of a user to the action direction, use the current position of the user as an end point, and use an area range formed by the first linear distance within a first preset offset angle of the action direction as a first push range for information push;
the fourth data processing unit 422 may be configured to obtain a second linear distance from a preset starting point to the action direction, and use the current position of the user as an end point, and use an area range formed by the second linear distance within a second preset offset angle of the action direction as a first pushing range for information pushing.
The information pushing method and device provided by the embodiment of the application can be applied to any mobile terminal electronic equipment capable of achieving information pushing, such as mobile intelligent phones, tablet electronic equipment, portable computers (e.g., laptops, etc.), Personal Digital Assistants (PDAs), intelligent wearable equipment, and other electronic equipment capable of achieving information pushing. Therefore, another aspect of the present application further provides an electronic device for pushing information, where the electronic device may include:
a processing unit;
the processing unit is configured to obtain an action direction of a user; the first pushing range can be used for setting information pushing according to the action direction; and the push module may be configured to push the push information corresponding to the first push range to the user.
The processing unit in the electronic device in the present application may include a Central Processing Unit (CPU), and may also include other single-chip microcomputers, logic gates, integrated circuits, and the like, which have logic processing capability.
Therefore, in the embodiment of the information pushing method, the information pushing device and the electronic equipment, the action direction of the user is determined according to the user position information acquired within the preset time period or the direction setting information of the user and the like. Then, a first pushing range for pushing information is set according to the action direction, the current actual action condition of the user is effectively combined, and the validity of the pushing information corresponding to the first pushing range can be ensured. And finally, pushing the push information corresponding to the first push range to the user, so that the time for the user to swipe the invalid information can be reduced, and the user experience is improved. Compared with the prior art, the information pushing method in the embodiment of the application can be used for pushing the information according to the current actual action condition of the user, so that the user experience is improved, and the store-to-store rate and the information pushing effectiveness of the user are provided.
Although the present application refers to the description of data acquisition and processing between a radio communication network, GPS, mobile terminal electronic devices, the present application is not limited to the case where it is necessary to be a complete standard or the data processing application environment mentioned. The above description referred to in the various embodiments of the present application is only applicable in some embodiments of the present application. Of course, other non-inventive variations of the processing method steps described in the above embodiments consistent with the present application may still be implemented in the same application, and are not described herein again.
Although the present application provides method steps as described in an embodiment or flowchart, more or fewer steps may be included based on conventional or non-inventive means. The order of steps recited in the embodiments is merely one manner of performing the steps in a multitude of orders and does not represent the only order of execution. When an actual apparatus or client product executes, it may execute sequentially or in parallel (e.g., in the context of parallel processors or multi-threaded processing) according to the embodiments or methods shown in the figures.
The above embodiments illustrate means or modules, which may be embodied by a computer chip or entity, or by an article of manufacture having some functionality. For convenience of description, the above devices are described as being divided into various modules by functions, and are described separately. Of course, in implementing the present application, the functions of each module may be implemented in one or more software and/or hardware, or a module implementing the same function may be implemented by a combination of multiple sub-modules or sub-units.
Those skilled in the art will also appreciate that, in addition to implementing the controller as pure computer readable program code, the same functionality can be implemented by logically programming method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Such a controller may therefore be considered as a hardware component, and the means included therein for performing the various functions may also be considered as a structure within the hardware component. Or even means for performing the functions may be regarded as being both a software module for performing the method and a structure within a hardware component.
The application may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, classes, etc. that perform particular tasks or implement particular abstract data types. The application may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
From the above description of the embodiments, it is clear to those skilled in the art that the present application can be implemented by software plus necessary general hardware platform. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which may be stored in a storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, or the like, and includes several instructions for enabling a computer device (which may be a personal computer, a mobile terminal, a server, or a network device) to execute the method according to the embodiments or some parts of the embodiments of the present application.
The embodiments in the present specification are described in a progressive manner, and the same or similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. The application is operational with numerous general purpose or special purpose computing system environments or configurations. For example: personal computers, server computers, hand-held or portable devices, tablet-type devices, mobile communication terminals, multiprocessor systems, microprocessor-based systems, programmable electronic devices, network PCs, minicomputers, mainframe computers, distributed computing environments that include any of the above systems or devices, and the like.
While the present application has been described with examples, those of ordinary skill in the art will appreciate that there are numerous variations and permutations of the present application without departing from the spirit of the application, and it is intended that the appended claims encompass such variations and permutations without departing from the spirit of the application.