Specific implementation mode
For electronic card certificate as a kind of voucher of the respective service obtained from electronic card certificate publisher, user can be in terminal device
Upper to be consumed using electronic card certificate, by electronic card, certificate publisher checks and writes off.General electronic card certificate such as discount coupon purchases by group
Card, coupons, mass transit card, with meal card etc., relative to common card certificate, such as paper coupons, paper voucher, electronic card
The natural advantage of certificate is to make and propagate at low cost, and communication effect can precisely quantify.
With the continuous development of Internet technology and popularizing for mobile terminal device, along with natural existing for electronic card certificate
Advantage, more and more electronic card certificate publishers periodically send electronic card certificate by internet, to gradually replace traditional granting
The form of generic card certificate, user get electronic card certificate by mobile terminal device and consume, by electronic card certificate publisher come into
Row is checked and write off.But user actually use electronic card certificate consume during, different electronic card certificate publishers provide
Electronic card certificate is different, causes the electronic card certificate that user is possessed large number of, user consumes under specific scene,
The electronic card certificate used is also fixed, it is therefore desirable to searched in numerous electronic card certificates the electronic card certificate needed for oneself come into
Row consumption, such as user daily in the morning 8 points or so to go to take bus, then need to find public transport in stored value card
Card, due to, there are more electronic card certificate, needing just find mass transit card by cumbersome search operation, so in stored value card
One, the payment experience of user is reduced, and the covert user that increases completes this time payment the time it takes.
In view of the above problems, this specification embodiment provides the following technical solutions:
Under specific scene, user is when mobile terminal device operates client, as user opens electricity in bus station
When sub- wallet APP clients, the location information where current time information and user is obtained, is screened and is advised according to preset position
Then and time screening rule is screened with acquired location information from user's electronic card certificate history use information with timely
Between information match user's electronic card certificate history use information, by the user's electronic card certificate history use information filtered out correspond to
Electronic card certificate recommended.Using above-mentioned technical proposal, subscriber terminal equipment, such as mobile phone, the electronic card certificate such as Fig. 1 recommended
It is shown, so that user selects corresponding electronic card certificate to consume from the electronic card certificate recommended.
In order to make those skilled in the art more fully understand the technical solution in this specification embodiment, below in conjunction with this
Attached drawing in specification embodiment is described in detail the technical solution in this specification embodiment, it is clear that described
Embodiment is only a part of the embodiment of this specification, instead of all the embodiments.The embodiment of base in this manual,
The every other embodiment that those of ordinary skill in the art are obtained, should all belong to the range of protection.
This specification embodiment recommends electronic card certificate, this specific theory by the historical behavior of analysis user to user
The technical solution that bright book embodiment provides is as follows:
As shown in Fig. 2, the flow chart of the recommendation method of the electronic card certificate provided for this specification embodiment, this method can be with
Include the following steps:
S101 obtains the current location information where current time information and user;
Under specific scene, general user can have fixed row in relatively regular time, more fixed place
For, for example, the week eight in the morning, user can go to bus station to take pubic transport using mass transit card, or use subway
Card subway station takes subway, in another example daily seven o'clock of breakfast time, user can go fixed StoreFront to go to have breakfast substantially, example
The discount coupon provided using KFC such as KFC, user when KFC is consumed.By analyzing the behavior of above-mentioned user, this explanation
Book embodiment is by the current location information where obtaining current time information and user, the historical behavior based on user, base
Originally it can predict the current behavior of user, and then can be that user recommends electronic card certificate.
Based on above-mentioned thought, the current time information that this specification embodiment obtains is an exact time, such as daily
User goes to take pubic transport or the time of subway, such as eight.Location information where the user that this specification embodiment obtains,
Its form of expression exists a variety of.For example, it may be the mobile terminal device that user is currently used, such as mobile phone, are determined using GPS
Geographical location information, can also be the parameter information for the communication base station that the currently used mobile terminal device of user is connected,
Wherein the parameter information of communication base station can be location area code LAC, communication base station number CID, and can also be user currently makes
The radio network information that mobile terminal device is connected, for example, it is most commonly seen can be wireless network title.
Wherein it should be noted that this specification embodiment is only the exemplary illustration carried out to location information, not
The particular content of defined position information, can also be the location information of other forms, and this specification embodiment is herein no longer one by one
It repeats.And the location information in this specification embodiment can be one of which as stated above or several location informations.
S102 uses letter according to preset position screening rule and time screening rule from user's electronic card certificate history
In breath, user's electronic card certificate history use information that screening matches with acquired location information and temporal information, wherein
User's electronic card certificate history use information includes at least history corresponding with acquired location information and temporal information
Location information and temporal information, electronic card certificate information used by a user;
After the location information where getting current time information and user, need from user's electronic card certificate history
In use information, filters out the user's electronic card certificate history to match with acquired location information and temporal information and use letter
Breath.Under specific scene, in fixed place fixed behavior occurs for ordinary circumstance user daily, but due to there are it is external because
The influence of element or the influence of user's oneself factor, cause position, time and the historical position of user behavior generation, historical time can
It can have differences.Such as user's yestermorning goes to bus station to take pubic transport eight, but today may due to user itself because
Element, such as evening rise or external factor, and such as weather, user eight thirty Cai Qu bus stations take pubic transport, and leads to same day user behavior hair
Raw location and time has differences with the location and time that yesterday, user behavior occurred.Based on user's row caused by above-mentioned factor
For the measurement that the position of generation, time and historical position, historical time have differences, this specification embodiment is to user's electronics
During card certificate history use information is screened, position screening rule and time screening rule are pre-set, as long as
Meet user's electronic card certificate history use information of position screening rule and time screening rule, then it is assumed that with acquired position
Confidence ceases and temporal information matches.
Specific position screening rule, is the predeterminated position range expanded for acquired location information, such as above-mentioned is obtained
Geographical location information where the user that the location information taken, which is subscriber terminal equipment, to be determined using GPS, then be acquired position
The predeterminated position range for setting information expansion can be the range in 1 kilometer of circumference using the geographical location where user as the center of circle,
As long as meaning historical position information in user's electronic card certificate history use information within the scope of 1 kilometer of the circumference, then
Think that user's electronic card certificate history use information matches with the current location information where acquired user.On in another example
It states the parameter information for the communication base station that the location information of acquisition is connected by mobile terminal device used by a user and connects
The radio network information connect, then the predeterminated position range expanded for acquired location information, can be the parameter of communication base station
Whether information and wireless network connection information match, it is meant that the historical communication base in user's electronic card certificate history use information
The ginseng for the communication base station that the parameter information and wireless network connection information stood are connect with the terminal device that active user uses
Number information and wireless network connection information whether match, if matching, then it is assumed that user's electronic card certificate history use information with
Current location information where acquired user matches.
Specific time screening rule, can be the preset time period to expand before and after current time information, it is meant that, it uses
The historical time information for including in the electronic card certificate history use information of family, as long as expand before and after the current time information of acquisition
In preset time period, then it is assumed that user's electronic card certificate history use information matches with acquired current time information, example
If current time information is eight, the preset time period of front and back expansion is 1 hour, it is meant that user's electronic card certificate history uses
The historical time information for including in information is at seven o'clock between nine o'clock, then it is assumed that user's electronic card certificate history use information
Match with acquired current time information.
During actually screening user's electronic card certificate history use information, there are many screening modes, this specification
Embodiment describes three kinds of realization methods.
One of which screening user's electronic card certificate history use information realization method be:It is determined as acquired time letter
The front and back preset time period expanded of breath;According to identified preset time period, the user out of the time range that transferred
In electronic card certificate history use information, user's electronic card certificate history that screening matches with acquired temporal information uses letter
Breath;It is determined as the predeterminated position range that acquired location information expands;According to identified predeterminated position range, from obtained
In user's electronic card certificate history use information that the temporal information taken matches, screening matches with acquired location information
User's electronic card certificate history use information.
Another kind screening user's electronic card certificate history use information realization method be:It is determined as acquired location information
The predeterminated position range of expansion;According to identified predeterminated position range, user's electricity out of the time range that transferred
In subcard certificate history use information, the user's electronic card certificate history use information to match with acquired location information is screened;
It is determined as the front and back preset time period expanded of acquired temporal information;According to identified preset time period, from it is acquired
User's electronic card certificate history use information for matching of location information in, use that screening matches with acquired temporal information
Family electronic card certificate history use information.
Another kind screening user's electronic card certificate history use information realization method be:It is determined as acquired temporal information
The preset time period of front and back expansion, and the predeterminated position range for acquired location information expansion;According to identified pre-
If period and predeterminated position range, user's electronic card certificate history use information out of the time range that transferred
In, screen the user's electronic card certificate history use information to match simultaneously with acquired location information and temporal information.
As a preferred embodiment, it during screening user's electronic card certificate history use information, can only transfer recently
User's electronic card certificate history use information in a period of time is screened, and specific operating procedure is:Determine user's electronic card
Certificate history use information transfers time range, from user's electronic card certificate history use information, transfers the time range
Interior user's electronic card certificate history use information, according to preset position screening rule and time screening rule, from being transferred
The time range in user's electronic card certificate history use information in, screening is believed with acquired location information and time
The matched user's electronic card certificate history use information of manner of breathing.For example, in order to ensure that user's electronic card certificate for screening is gone through
The accuracy of history use information transfers user's electronic card certificate history use information in nearest one month, nearest one month from this
In interior user's electronic card certificate history use information, according to preset position screening rule and time screening rule, filter out
The user's electronic card certificate history use information to match with acquired location information and temporal information.
As a preferred embodiment, user's electronic card certificate history use information is stored on subscriber terminal equipment, also may be used certainly
To be stored in server.User's electronic card certificate history use information, which is stored on subscriber terminal equipment, is based primarily upon following measurement:
First, subscriber terminal equipment memory space is larger at this stage, and superior performance, second, in order to reduce the pressure of server, simultaneously
Also remove the time that user's electronic card certificate history use information is transmitted between subscriber terminal equipment and server from.
User's electronic card certificate history use information includes at least corresponding with acquired location information and temporal information
Historical position information and temporal information, electronic card certificate information used by a user.For example, as shown in figure 3, a kind of user's electronics
Card certificate history use information, including:Historical time H-T corresponding with acquired temporal information, with acquired location information
The historical parameter information H-LAC and H-CID of the communication base station that corresponding subscriber terminal equipment is connected, subscriber terminal equipment profit
With the historical information H-W for the wireless network that historical geography location information H-L, the subscriber terminal equipment of GPS positioning are connected, user
The electronic card certificate information H-C used.
S103 recommends the corresponding electronic card certificate of user's electronic card certificate history use information filtered out.
After above-mentioned screening step, a certain number of user's electronic card certificate history use informations are filtered out, will be screened
The user's electronic card certificate history use information gone out is ranked up, and according to the ranking results, therefrom chooses the user of default number of branches
Electronic card certificate history use information recommends the corresponding electronic card certificate of user's electronic card certificate history use information of selection.
It is used for example, currently filtering out 20 user's electronic card certificate history to match with acquired location information and temporal information
This 20 user's electronic card certificate history use informations are ranked up by information, are chosen preceding 5 users electronic card certificate history and are used letter
Breath, this corresponding electronic card certificate of 5 user's electronic card certificate history use informations of selection is recommended.
The user's electronic card certificate history use information filtered out, which is specifically ranked up performed operation, is:Determine the time
With the weight of position, acquired location information and temporal information are calculated, with the user's electronic card certificate history filtered out
The historical position information corresponding with acquired location information and temporal information and temporal information that use information includes
Position difference and time difference, according to the weight of identified position and time, calculating position difference and time difference plus
Quan He, according at least to the weighted sum calculated, as the sort by of user's electronic card certificate history use information, by what is filtered out
User's electronic card certificate history use information is ranked up.The corresponding user's electronic card certificate history use information of weighted sum carries out
Weighted sum, can be ranked up, the corresponding user's electronic card certificate history use information of weighted sum by binding in the way of ascending order
Naturally sequence is completed, one or more user's electronic card certificate history use informations in the top are chosen.
For example, currently filtering out 20 user's electronic card certificate history use informations, the weight of time is 0.4, the power of position
Weight is 0.6, is calculated in acquired location information and temporal information and this 20 user's electronic card certificate history use informations
The position difference and time difference of historical position information and temporal information, currently make wherein the location information obtained is user
Mobile terminal device is connected using the currently used mobile terminal device of the geographical location information of GPS determinations, user
The radio network information that the currently used mobile terminal device of the parameter information of communication base station, user is connected.The time of calculating
Difference is 30,25,20,5,10 ..., and time difference unit is minute, and the position difference of calculating is 5,2,5,4,3 ..., position
Difference unit is rice, according to the weight of time and position, calculates the weighted sum of above-mentioned time difference and position difference, weighted sum is used
Ai indicates that time weighting indicates that position weight is indicated with d with m, time difference T-Ti, position difference L-Li, calculates weighting
Formula with Ai is:
Ai=(T-Ti) m+ (L-Li) d;
After calculating time difference and the weighted sum Ai of position difference by above-mentioned formula, by weighted sum Ai according to ascending order
Mode is ranked up, and the corresponding 20 users electronic card certificate history use informations of weighted sum Ai are naturally in the way of ascending order
It is ranked up.
One of which of the weighted sum at least as user's electronic card certificate history use information sort by, naturally it is also possible to adopt
With other user's electronic card certificate history use information sort bies, to user's electronic card certificate history use information for filtering out into
Row sequence.Such as one of which sort by can be the access times of user's electronic card certificate, according to making for user's electronic card certificate
With number, the user's electronic card certificate history use information filtered out is ranked up according to the form of ascending order.In this this specification
Embodiment is not enumerating the sort by of user's electronic card certificate history use information.
By the description of the above-mentioned technical solution to this specification embodiment, letter is used by the electronic card certificate history to user
Breath is analyzed, and recommends electronic card certificate to user.
Using the technical solution that this specification embodiment provides, the cumbersome behaviour that user searches available electron card certificate is avoided
Make, improve the payment experience of user, reduces user and complete payment the time it takes.
Corresponding to above method embodiment, this specification embodiment also provides a kind of recommendation apparatus of electronic card certificate, referring to
Shown in Fig. 4, which may include:Data obtaining module 410, information sifting module 420, recommending module 430.
Described information acquisition module 410, for obtaining the current location information where current time information and user;
Described information screening module 420 is used for according to preset position screening rule and time screening rule, from user
In electronic card certificate history use information, the user's electronic card certificate to match with acquired location information and temporal information is screened
History use information, wherein user's electronic card certificate history use information is included at least with acquired location information with timely
Between the corresponding historical position information of information and temporal information, electronic card certificate information used by a user;
The recommending module 430, the corresponding electronic card certificate of user's electronic card certificate history use information for will filter out
Recommended.
According to a kind of specific implementation mode that this specification provides, described information screening module 420 specifically includes:
Determination sub-module 421 transfers time range for determine user's electronic card certificate history use information;
Information transfers submodule 422, for from user's electronic card certificate history use information, transferring the time model
Enclose interior user's electronic card certificate history use information;
Information sifting submodule 423, for according to preset position screening rule and time screening rule, from being transferred
The time range in user's electronic card certificate history use information in, screening is believed with acquired location information and time
The matched user's electronic card certificate history use information of manner of breathing.
According to a kind of specific implementation mode that this specification provides, described information screening submodule 423 is used for:
It is determined as the front and back preset time period expanded of acquired temporal information;
According to identified preset time period, user's electronic card certificate history out of the time range that transferred uses
In information, the user's electronic card certificate history use information to match with acquired temporal information is screened;
It is determined as the predeterminated position range that acquired location information expands;
According to identified predeterminated position range, from the user's electronic card certificate history to match with acquired temporal information
In use information, the user's electronic card certificate history use information to match with acquired location information is screened.
According to a kind of specific implementation mode that this specification provides, described information screening submodule 423 is used for:
It is determined as the predeterminated position range that acquired location information expands;
According to identified predeterminated position range, user's electronic card certificate history out of the time range that transferred makes
With user's electronic card certificate history use information that in information, screening matches with acquired location information;
It is determined as the front and back preset time period expanded of acquired temporal information;
According to identified preset time period, make from the user's electronic card certificate history to match with acquired location information
With user's electronic card certificate history use information that in information, screening matches with acquired temporal information.
According to a kind of specific implementation mode that this specification provides, described information screening submodule 423 is used for:
It is determined as the front and back preset time period expanded of acquired temporal information, and expands for acquired location information
Predeterminated position range;
According to identified preset time period and predeterminated position range, the user out of the time range that transferred
In electronic card certificate history use information, the user's electronics to match simultaneously with acquired location information and temporal information is screened
Card certificate history use information.
According to a kind of specific implementation mode that this specification provides, described information is transferred submodule 422 and is specifically used for:
From user's electronic card certificate history use information, the user terminal that is stored in transferred in the time range is set
Standby upper user's electronic card certificate history use information.
According to a kind of specific implementation mode that this specification provides, the recommending module 430 specifically includes:
Information sorting submodule 431, user's electronic card certificate history use information for will filter out are ranked up;
Information chooses submodule 432, for according to the ranking results, choosing user's electronic card certificate history of default number of branches
Use information;
Recommend submodule 433, the corresponding electronic card certificate of user's electronic card certificate history use information for that will choose carries out
Recommend.
According to a kind of specific implementation mode that this specification provides, described information sorting sub-module 431 is specifically used for:
Determine the weight of position and time;
Acquired location information and temporal information are calculated, letter is used with the user's electronic card certificate history filtered out
The position of historical position information corresponding with acquired location information and temporal information and temporal information that breath includes
Difference and time difference;
According to the weight of identified position and time, the weighted sum of the position difference and time difference is calculated;
It will be screened as the sort by of user's electronic card certificate history use information according at least to the weighted sum calculated
The user's electronic card certificate history use information gone out is ranked up.
The function of modules and the realization process of effect specifically refer to and correspond to step in the above method in above-mentioned apparatus
Realization process, details are not described herein.
By the description of the above-mentioned technical solution to this specification embodiment, letter is used by the electronic card certificate history to user
Breath is analyzed, and recommends electronic card certificate to user.
Using the technical solution that this specification embodiment provides, the cumbersome behaviour that user searches available electron card certificate is avoided
Make, improve the payment experience of user, reduces user and complete payment the time it takes.
This specification embodiment also provides a kind of computer equipment, as shown in figure 5, the equipment may include:Processor
610, memory 620, input/output interface 630, communication interface 640 and bus 650.Wherein processor 610, memory 620,
Input/output interface 630 and communication interface 640 pass through the communication connection between the realization of bus 650 inside equipment.
General CPU (Central Processing Unit, central processing unit), microprocessor may be used in processor 610
Device, application specific integrated circuit (Application Specific Integrated Circuit, ASIC) or one or
The modes such as multiple integrated circuits are realized, for executing relative program, to realize technical solution that this specification embodiment is provided.
ROM (Read Only Memory, read-only memory), RAM (Random Access may be used in memory 620
Memory, random access memory), static storage device, the forms such as dynamic memory realize.Memory 620 can store
Operating system and other applications are realizing technical solution that this specification embodiment is provided by software or firmware
When, relevant program code is stored in memory 620, and is executed by processor 610 to call.
Input/output interface 630 is for connecting input/output module, to realize information input and output.Input and output/
Module can be used as component Configuration (not shown) in a device, can also be external in equipment to provide corresponding function.Wherein
Input equipment may include keyboard, mouse, touch screen, microphone, various kinds of sensors etc., output equipment may include display,
Loud speaker, vibrator, indicator light etc..
Communication interface 640 is used for connection communication module (not shown), to realize the communication of this equipment and other equipment
Interaction.Wherein communication module can be realized by wired mode (such as USB, cable etc.) and be communicated, can also be wirelessly
(such as mobile network, WIFI, bluetooth etc.) realizes communication.
Bus 650 includes an access, in various components (such as processor 610, memory 620, the input/output of equipment
Interface 630 and communication interface 640) between transmit information.
It should be noted that although above equipment illustrates only processor 610, memory 620, input/output interface
630, communication interface 640 and bus 650, but in specific implementation process, which can also include realizing normal operation
Necessary other assemblies.In addition, it will be appreciated by those skilled in the art that, can also only include to realize in above equipment
Component necessary to this specification example scheme, without including all components shown in figure.
This specification embodiment also provides a kind of computer readable storage medium, is stored thereon with computer program, the journey
The recommendation method of electronic card certificate above-mentioned is realized when sequence is executed by processor.This method includes at least:
A kind of recommendation method of electronic card certificate, this method include:
Obtain the current location information where current time information and user;
According to preset position screening rule and time screening rule, from user's electronic card certificate history use information,
User's electronic card certificate history use information that screening matches with acquired location information and temporal information, wherein the use
Family electronic card certificate history use information includes at least history bit confidence corresponding with acquired location information and temporal information
Breath and temporal information, electronic card certificate information used by a user;
The corresponding electronic card certificate of user's electronic card certificate history use information filtered out is recommended.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method
Or technology realizes information storage.Information can be computer-readable instruction, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase transition internal memory (PRAM), static RAM (SRAM), moves
State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable
Programmable read only memory (EEPROM), fast flash memory bank or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM),
Digital versatile disc (DVD) or other optical storages, magnetic tape cassette, tape magnetic disk storage or other magnetic storage apparatus
Or any other non-transmission medium, it can be used for storage and can be accessed by a computing device information.As defined in this article, it calculates
Machine readable medium does not include temporary computer readable media (transitory media), such as data-signal and carrier wave of modulation.
As seen through the above description of the embodiments, those skilled in the art can be understood that this specification
Embodiment can add the mode of required general hardware platform to realize by software.Based on this understanding, this specification is implemented
Substantially the part that contributes to existing technology can be expressed in the form of software products the technical solution of example in other words,
The computer software product can be stored in a storage medium, such as ROM/RAM, magnetic disc, CD, including some instructions are making
It is each to obtain computer equipment (can be personal computer, server or the network equipment etc.) execution this specification embodiment
Method described in certain parts of a embodiment or embodiment.
System, device, module or the unit that above-described embodiment illustrates can specifically realize by computer chip or entity,
Or it is realized by the product with certain function.A kind of typically to realize that equipment is computer, the concrete form of computer can
To be personal computer, laptop computer, cellular phone, camera phone, smart phone, personal digital assistant, media play
In device, navigation equipment, E-mail receiver/send equipment, game console, tablet computer, wearable device or these equipment
The combination of arbitrary several equipment.
Each embodiment in this specification is described in a progressive manner, identical similar portion between each embodiment
Point just to refer each other, and each embodiment focuses on the differences from other embodiments.Especially for device reality
For applying example, since it is substantially similar to the method embodiment, so describing fairly simple, related place is referring to embodiment of the method
Part explanation.The apparatus embodiments described above are merely exemplary, wherein described be used as separating component explanation
Module may or may not be physically separated, can be each module when implementing this specification example scheme
Function realize in the same or multiple software and or hardware.Can also select according to the actual needs part therein or
Person's whole module achieves the purpose of the solution of this embodiment.Those of ordinary skill in the art are not the case where making the creative labor
Under, you can to understand and implement.
The above is only the specific implementation mode of this specification embodiment, it is noted that for the general of the art
For logical technical staff, under the premise of not departing from this specification embodiment principle, several improvements and modifications can also be made, this
A little improvements and modifications also should be regarded as the protection domain of this specification embodiment.