Embodiment
In order that those skilled in the art more fully understand the technical scheme in the application, below in conjunction with the embodiment of the present application
Accompanying drawing, the technical scheme in the embodiment of the present application is clearly and completely described, it is clear that described embodiment is only
It is some embodiments of the present application, rather than whole embodiments.Based on the embodiment in the application, ordinary skill people
The every other embodiment that member is obtained under the premise of creative work is not made, should all belong to the scope of the application protection.
Hereinafter implementing for the embodiment of the present application is described in detail with several specific examples.
Introduce a kind of embodiment of information-pushing method of the application first below.Fig. 1 is the method that the information that the application is provided is pushed
A kind of embodiment schematic flow sheet, this application provides the method operating procedure as described in embodiment or flow chart, but be based on
Routine can include more or less operating procedures without performing creative labour.The step of being enumerated in embodiment order is only
For a kind of mode in numerous step execution sequences, unique execution sequence is not represented.System in practice or client production
During execution, can be performed according to embodiment or method shown in the drawings order or it is parallel perform (for example parallel processor or
The environment of multiple threads).Specifically as shown in figure 1, methods described can include:
S110:Obtain the route of user.
In the embodiment of the present application, the route of user can be obtained.Specifically, the route for obtaining user can be with
Including:
Customer position information according to being obtained in preset time period determines the route of the user.
As shown in Fig. 2 Fig. 2 be the application provide the user is determined according to the customer position information obtained in preset time period
Route a kind of embodiment schematic flow sheet.Specifically, described believe according to the customer location obtained in preset time period
Breath determines that the route of the user can include:
S111:Customer position information is obtained with the first predetermined period in preset time period.
In the embodiment of the present application, the preset time period and first predetermined period can be set according to practical application scene demand
Put, specifically, first predetermined period can be less than or equal to the preset time period.It is preferred that, first predetermined period
Less than the preset time period.In a specific embodiment, using first predetermined period be less than the preset time period as
Example, the preset time period could be arranged to 10s, and first predetermined period could be arranged to 1s.
Specifically, using the preset time period as 10s, exemplified by first predetermined period is 1s, with the in preset time period
One predetermined period, which obtains customer position information, can obtain 11 customer position informations.Specifically, the customer position information can
To include but is not limited to longitude and latitude positional information etc., the customer position information can by radio communication network (such as GSM nets,
CDMA nets) or outside positioning method (such as GPS).
S112:Calculate the position offset numbers between two customer position informations that adjacent time point is obtained in the customer position information
According to.
Specifically, after step S111 obtains customer position information, adjacent time in the customer position information can be calculated
Position offset data between two customer position informations that point is obtained.In a specific embodiment, with above-mentioned preset time period
For 10s, in case of the first predetermined period is 1s, accordingly, it can be determined according to the 11 of acquisition customer position informations
10 position offset datas.Position between two customer position informations that the position offset data can be obtained according to adjacent time point
Drift condition is put to represent with information such as relative direction, relative distances.Specifically, when the deviation angle between two customer position informations
, can (general, the positive direction includes east-west direction by relative rectilinear positive direction in larger distance during less than preset angle angle value
And North and South direction) it is used as the relative direction between described two customer position informations.Specifically, the preset angle angle value can basis
Concrete application scene is set.In a specific embodiment, the preset angle angle value is set in the case of 45 °, it is assumed that two
Individual customer position information:When A and B, B are 5 ° of east by south relative to A, it can be determined that the deviation angle between A and B is small
In preset angle angle value, relative rectilinear positive direction in larger distance is east-west direction, and accordingly, east-west direction can be used as A and B
Between relative direction.In a specific embodiment, the position offset data can be expressed as EW+0.25, EW+0.25
Relative direction is relatively eastwards 0.25m between thing, and described two customer position informations between two customer position informations can be represented.
Accordingly, EW-0.25 can represent between two customer position informations that relative direction is thing, and described two customer position informations
Between relatively westwards 0.25m.
Specifically, it is eastwards positive direction that can be pre-set in above-described embodiment, it can also set in certain embodiments westwards as just
Direction.In actual applications, the positive direction that related direction is set can be preset, such as North and South direction can be set northwards as just
Direction.
In addition, position offset data described in the embodiment of the present application is not limited in above-mentioned representation, in actual applications,
Other representations can also be set according to concrete application scene, and the embodiment of the present application is not limited thereto.
S113:The route of the user in the preset time period is determined according to the position offset data.
, can be true according to the position offset data after step S112 obtains position offset data in the embodiment of the present application
The route of the user in the fixed preset time period.Specifically, it is described determined according to the position offset data it is described pre-
If the route of the user can at least include one of the following in the period:
When offset data corresponding offset direction in position is consistent in the preset time period, the offset direction is used as described
The route at family;
When offset data corresponding offset direction in position is inconsistent in the preset time period, that compares offset direction goes out occurrence
Number, will appear from number of times and meets the default offset direction for judging to require as the route of the user.
In a specific application scenarios, when offset data corresponding offset direction in position is consistent in the preset time period,
Using above-mentioned preset time period as 10s, in case of the first predetermined period is 1s, it is assumed that corresponding 10 position offset datas
Be followed successively by 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、EW+0.24.It is eastwards, accordingly that the corresponding offset direction of position offset data, which can be determined, it can be determined that
The offset direction determined in the preset time period is consistent, and the offset direction (eastwards) is used as into institute in the preset time period
State the route of user.
In another specific application scenarios, when offset data corresponding offset direction in position is inconsistent in the preset time period
When, it is described will appear from number of times meet the default offset direction for judging to require can include as the route of the user it is described pre-
If offset data corresponding offset direction occurrence number difference in position is larger in the period, the most offset direction of number of times will appear from
It is used as the route of the user in the preset time period.And when in the preset time period position offset data it is corresponding
Offset direction occurrence number relatively mean time, will appear from number of times, (preset times are more than position offset numbers more than preset times
According to quantity) offset direction as the user in the preset time period route.
As shown in figure 3, Fig. 3 is the inconsistent feelings in the corresponding offset direction of position offset data in the preset time period of the application offer
Under condition between customer position information a kind of embodiment of drift condition schematic diagram.Using above-mentioned preset time period as 10s, first is pre-
If in case of the cycle is 1s, it can be seen that including the customer position information correspondence position obtained in preset time period 10s
Point A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11.By taking drift condition between A1 and A2 as an example,
Position offset data between A1 and A2 can be expressed as EW+0.2;By taking drift condition between A2 and A3 as an example, A2 and
Position offset data between A3 can be expressed as EW+0.3;By taking drift condition between A5 and A6 as an example, A5 and A6 it
Between position offset data can be expressed as EW-0.2;Corresponding 10 position offset datas successively can for EW+0.2,
EW+0.3、EW+0.2、EW+0.3、EW-0.2、EW+0.3、EW+0.2、EW+0.2、EW+0.2、EW+0.2.Can
To determine that offset data corresponding offset direction in position is included eastwards and westwards, accordingly, it can be determined that in the preset time period
The offset direction of determination is inconsistent, can compare the occurrence number of the offset direction (eastwards or westwards), it can be determined that skew
Direction occurrence number difference is larger, accordingly, can be using the most offset direction of the occurrence number (eastwards) as described pre-
If the route of the user in the period.
In some other embodiments of the application, the route for obtaining user can include:
Receive the direction setting information of user, using direction indicated in the direction setting information as user route.
In specific application scenarios, corresponding direction inputting interface can be provided.So user just can be according to current demand certainly
The corresponding direction of row setting, accordingly, can be by the direction setting information after the direction setting information of user is received
In indicated direction as user route.
S120:First pushed according to the route set information pushes scope.
In the embodiment of the present application, can be pushed according to the route set information first pushes scope.The application is implemented
First pushes the band of position scope that scope can include setting according to the route described in example.Specifically, the basis
The first push scope that the route set information is pushed can at least include one of the following:
User current location is taken toward the first straight line distance of the route, will be described using the user current location as end points
The regional extent that first straight line distance is formed in the first default bias angle of the route pushed as information
One pushes scope;
Default start position is taken toward the second straight line distance of the route, will be described using the user current location as end points
The regional extent that second straight line distance is formed in the second default bias angle of the route pushed as information
One pushes scope.
In the embodiment of the present application, the first straight line distance, second straight line distance, the first default bias angle and first are default inclined
Moving angle can be configured according to specific application scenarios.General, the first default bias angle and the second default bias
Angle is less than or equal to 90 °.It is described to take family present bit so that the route is eastwards as an example in specific application scenarios
The first straight line distance toward the route is put, using the user current location as end points, by the first straight line distance in institute
The first push scope that the regional extent formed in the first default bias angle for stating route is determined can include user
Current location 100m eastwards, using the user current location as end points, eastwards 100m be air line distance to 45 ° of east by north,
To the regional extent of the 45 ° of formation in east by south.
In application scenes, user may not reach somewhere also, but cross can may by somewhere, and from this
Advance to a direction in place.Under above-mentioned this application scenarios, user can shift to an earlier date the corresponding start position of sets itself, and
Corresponding route;Accordingly, default start position can be taken toward the second straight line distance of the route, used with described
Family current location is end points, the area that the second straight line distance is formed in the second default bias angle of the route
The first push scope that domain scope is pushed as information.
S130:Described first pushed information pushed corresponding to scope is pushed to the user.
In the embodiment of the present application, after the first push scope is set, pushing away corresponding to scope can be pushed by described first
Breath of delivering letters is pushed to the user.Specifically, the pushed information corresponding to the first push scope can be pushed away including described first
Send default activity service information etc. of scope region correspondence trade company, such as Yoghourt of ordering supermarket A tonight 7 plays the preferential letter such as 5 foldings
Breath.Certainly, the described first pushed information pushed corresponding to scope can also include the described first push scope region correspondence
Default interactive information of trade company etc., such as register, get the interactive informations such as reward voucher, chat.In actual applications, when it is determined that
After described first pushes scope, the pushed information corresponding to the first push scope can also be determined accordingly.
Scope is pushed according to the currently practical route setting described first of user in the embodiment of the present application, it is ensured that described the
The validity of pushed information in the range of one push, not only falls a part of invalid information for user's brush choosing in advance, improves user's body
Test, while improving user to shop rate.
In certain embodiments, the above-mentioned route that the user is determined according to the customer position information obtained in preset time period
Embodiment in, it is determined that after the route of the user, methods described can also include:
Send whether the confirmation message of pushed information range set standard is used as using the route to user;
After confirmation of the user to the confirmation message is received, the pushed according to the route set information is performed
One pushes the operation of scope.
In actual applications, in fact it could happen that user simultaneously need not be used as the feelings of pushed information range set standard using current route
Condition.Accordingly, it is determined that after the route of the user, by whether being sent to user using the route as pushing away
The confirmation message for breath range set standard of delivering letters, subsequently can determine whether need according to user to the feedback of the confirmation message
To be pushed according to the route set information first pushes scope.
Specifically, after confirmation of the user to the confirmation message is received, it can be determined that user is needed with the action side
To as pushed information range set standard, accordingly, first pushed according to the route set information can be performed and pushed away
Send the operation of scope.
In certain embodiments, when user need not be using the route as pushed information range set standard, the side
Method can also include:
After cancellation information of the user to the confirmation message is received, the pushed according to user current location information setting information
Two push scope;
Described second pushed information pushed corresponding to scope is pushed to the user.
In the embodiment of the present application, described second, which pushes scope, to include centered on the user current location, certain circumference model
The region enclosed.
In actual applications, when the current location is identical, the described first region for pushing corresponding to scope is less than described second
The region corresponding to scope is pushed, accordingly, the described first pushed information for pushing corresponding to scope pushes model less than described second
Enclose corresponding pushed information.Therefore, the application push scope in first pushed according to the route set information can be with
Fall a part of invalid information for user's brush choosing in advance, improve the validity of pushed information.
In addition, in the embodiment of the present application, by sending whether using the route be used as pushed information range set mark to user
Accurate confirmation message, flexibly can set corresponding information according to the demand of user and push scope, accordingly, subsequently push
Pushed information more meets user's request.
As can be seen here, believed in the embodiment for the method that a kind of information of the application is pushed according to the customer location obtained in preset time period
Breath receives the route that the modes such as the direction setting information of user determine user.Then, set and believed according to the route
The first push scope that breath is pushed, has been effectively combined the current practical action situation of user, it is ensured that described first pushes model
Enclose the validity of corresponding pushed information.Finally, the described first pushed information pushed corresponding to scope is pushed to the use
Family, it is possible to reduce the time of invalid information is fallen in user's brush choosing, improves Consumer's Experience.Compared with prior art, the application is utilized
Information-pushing method described in embodiment can enter row information push according to the current practical action situation of user, improve user's body
Test the validity there is provided user to shop rate and information push.
On the other hand the application also provides the device that a kind of information is pushed, and Fig. 4 is the one of the device that the information that the application is provided is pushed
Plant the structural representation of embodiment.As shown in figure 4, described device 400 can include:
Route acquisition module 410, can be used for the route for obtaining user;
First pushes range set module 420, and can be used for being pushed according to the route set information first pushes scope;
First information pushing module 430, can be used for the described first pushed information pushed corresponding to scope being pushed to the use
Family.
It can be obtained by the route acquisition module 410 in information push-delivery apparatus described in the embodiment of the present application and meet user
The route of practical action situation.Then, it is right that first subsequently pushed according to the route set information pushes scope institute
Answer the validity of pushed information.
In another embodiment, the route acquisition module 410 can include:
First route acquiring unit, can be used for determining the user according to the customer position information obtained in preset time period
Route.
The application provides a kind of specific embodiment mode of the first route acquiring unit.Specifically, Fig. 5 is the application
A kind of structural representation of embodiment of the first route acquiring unit provided, as shown in figure 5, a kind of embodiment of the application
Described in the first route acquiring unit can include:
Customer position information acquiring unit 510, can be used for obtaining customer location letter in preset time period with the first predetermined period
Breath;
Position offset data computing unit 520, can be used for calculating two of adjacent time point acquisition in the customer position information
Position offset data between customer position information;
Route determining unit 530, can be used for determining the use in the preset time period according to the position offset data
The route at family.
The application provides a kind of specific embodiment mode of the route determining unit.Specifically, Fig. 6 is the application offer
A kind of structural representation of embodiment of route determining unit, as shown in fig. 6, described in a kind of embodiment of the application row
Dynamic direction-determining unit 530 can include:
First data processing unit 531, can be used for when offset data corresponding offset direction one in position in the preset time period
During cause, using the offset direction as the user route;
Second data processing unit 532, can be used in the preset time period the corresponding offset direction of position offset data not
When consistent, compare the occurrence number of offset direction, will appear from number of times and meet the default offset direction for judging to require as the user
Route.
In another embodiment, it is determined that after the route of the user, described device 400 can also include:
Confirmation message sending module, can be used for sending whether using the route be used as pushed information range set mark to user
Accurate confirmation message;
Accordingly, after confirmation of the user to the confirmation message is received, first pushes range set module 420 can be with
Perform the operation that first pushed according to the route set information pushes scope.
Confirmation message sending module described in the information push-delivery apparatus provided in the embodiment of the present application can to user send whether with
The route as pushed information range set standard confirmation message, for user be made whether with the route make
For the selection of pushed information range set standard, subsequently need can be determined whether to the feedback of the confirmation message according to user
To be pushed according to the route set information first pushes scope, flexibly can set corresponding according to the demand of user
Information pushes scope, and accordingly, the pushed information subsequently pushed more meets user's request, improves Consumer's Experience.
In another embodiment, described device 400 can also include:
Second push range set module, can be used for after cancellation information of the user to the confirmation message is received, according to
The second push scope that family current location information set information is pushed;
Second info push module, can be used for the described second pushed information pushed corresponding to scope being pushed to the user.
In another embodiment, the route acquisition module 410 can include:
Second route acquiring unit, can be used for the direction setting information for receiving user, by institute in the direction setting information
The direction of instruction as user route.
The application provides a kind of the described first specific embodiment mode for pushing range set module.Specifically, Fig. 7 is the application
First provided pushes a kind of structural representation of embodiment of range set module, as shown in fig. 7, a kind of embodiment of the application
Described in the first push range set module 420 can include:
3rd data processing unit 421, can be used for the 3rd data processing unit, for taking user current location toward the action
The first straight line distance in direction, using the user current location as end points, by the first straight line distance in the route
The first push scope that the regional extent formed in first default bias angle is pushed as information;
4th data processing unit 422, can be used for the second straight line distance for taking default start position toward the route, with
The user current location be end points, by the second straight line distance in the second default bias angle of the route institute's shape
Into regional extent as information push first push scope.
The embodiment of the present application provides a kind of method that information pushes, device can be applied can realize what information was pushed any
In mobile terminal electronic equipment, such as intelligent movable phone, Flat electronic equipment, portable computer (such as notebook computer
Deng), personal digital assistant (PDA), Intelligent worn device etc. can realize the electronic equipment that information is pushed.Therefore, this Shen
On the other hand the electronic equipment that a kind of information is pushed please be also provided, the electronic equipment can include:
Processing unit;
The processing unit is configured to, and can be used for the route for obtaining user;And can be used for according to the action side
First pushed to set information pushes scope;And the pushed information that can be used for pushing described first corresponding to scope is pushed
To the user.
The processing unit in electronic equipment described herein can include central processing unit (CPU), naturally it is also possible to wrap
Include other single-chip microcomputers with logic processing capability, logic gates, integrated circuit etc..
As can be seen here, the embodiment of a kind of information of the application is pushed method, device and electronic equipment in preset time period according to obtaining
The modes such as the customer position information or the direction setting information of reception user that take determine the route of user.Then, according to described
The first push scope that route set information is pushed, has been effectively combined the current practical action situation of user, it is ensured that
Described first pushes the validity of the pushed information corresponding to scope.Finally, the push corresponding to scope described first is pushed to believe
Breath is pushed to the user, it is possible to reduce the time of invalid information is fallen in user's brush choosing, improves Consumer's Experience.With prior art phase
Than that can enter row information according to the current practical action situation of user using information-pushing method described in the embodiment of the present application and push away
Send, improving Consumer's Experience, there is provided the validity that user to shop rate and information are pushed.
Although mentioning the data acquisition between radio communication network, GPS, mobile terminal electronic equipment, place in teachings herein
The description of reason, still, it must be complete standard or the situation of mentioned data handling utility environment that the application, which is not limited to,.
Involved foregoing description is only the application in some embodiments in the application in the embodiment of each in the application.Certainly, in symbol
Other deformations without creativeness of the process method step described in the application the various embodiments described above are closed, still can be realized identical
Application, will not be repeated here.
Although this application provides the method operating procedure as described in embodiment or flow chart, based on conventional or without creativeness
Means can include more or less operating procedures.The step of being enumerated in embodiment order is only numerous step execution sequences
In a kind of mode, unique execution sequence is not represented., can be according to reality when device or client production in practice is performed
Apply example or method shown in the drawings order is performed or parallel execution (environment of such as parallel processor or multiple threads).
Above-described embodiment illustrates device or module, can specifically be realized by computer chip or entity, or by with certain function
Product realize.For convenience of description, it is divided into various modules during description apparatus above with function to describe respectively.Certainly, exist
Implement the function of each module can be realized in same or multiple softwares and/or hardware during the application, will can also realize same
The module of function is realized by the combination of multiple submodule or subelement.
, completely can be with it is also known in the art that in addition to realizing controller in pure computer readable program code mode
Cause controller with gate, switch, application specific integrated circuit, FPGA control by the way that method and step is carried out into programming in logic
Device processed realizes identical function with the form of embedded microcontroller etc..Therefore this controller is considered a kind of Hardware Subdivision
Part, and the device for realizing various functions included to its inside can also be considered as the structure in hardware component.Or even,
It not only can be able to will be the software module of implementation method but also can be in hardware component for realizing that the device of various functions is considered as
Structure.
The application can be described in the general context of computer executable instructions, such as program module.
Usually, program module include performing particular task or realize the routine of particular abstract data type, program, object, component,
Data structure, class etc..The application can also be put into practice in a distributed computing environment, in these DCEs, by
Remote processing devices connected by communication network perform task.In a distributed computing environment, program module can position
In including in the local and remote computer-readable storage medium including storage device.
As seen through the above description of the embodiments, those skilled in the art can be understood that the application can be by soft
Part adds the mode of required general hardware platform to realize.Understood based on such, the technical scheme of the application is substantially in other words
The part contributed to prior art can be embodied in the form of software product, and the computer software product can be stored in
In storage medium, such as ROM/RAM, magnetic disc, CD, including some instructions are to cause a computer equipment (can be with
It is personal computer, mobile terminal, server, or network equipment etc.) perform each embodiment of the application or embodiment
Method described in some parts.
Each embodiment in this specification is described by the way of progressive, and same or analogous part is mutual between each embodiment
Referring to what each embodiment was stressed is the difference with other embodiment.The application can be used for it is numerous general or
In special computing system environments or configuration.For example:Personal computer, server computer, handheld device portable are set
Standby, laptop device, mobile communication terminal, multicomputer system, the system based on microprocessor, programmable electronic equipment,
Network PC, minicom, DCE of mainframe computer including any of the above system or equipment etc..
Although depicting the application by embodiment, it will be appreciated by the skilled addressee that the application have it is many deformation and change and
Spirit herein is not departed from, it is desirable to which appended claim includes these deformations and changed without departing from spirit herein.