CN106162542B - Electronic certificate prompting method and server - Google Patents

Electronic certificate prompting method and server Download PDF

Info

Publication number
CN106162542B
CN106162542B CN201510174921.4A CN201510174921A CN106162542B CN 106162542 B CN106162542 B CN 106162542B CN 201510174921 A CN201510174921 A CN 201510174921A CN 106162542 B CN106162542 B CN 106162542B
Authority
CN
China
Prior art keywords
mobile terminal
electronic certificate
fence
geo
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510174921.4A
Other languages
Chinese (zh)
Other versions
CN106162542A (en
Inventor
刘孝圣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN202010738842.2A priority Critical patent/CN112004194A/en
Priority to CN201510174921.4A priority patent/CN106162542B/en
Publication of CN106162542A publication Critical patent/CN106162542A/en
Application granted granted Critical
Publication of CN106162542B publication Critical patent/CN106162542B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/021Services related to particular areas, e.g. point of interest [POI] services, venue services or geofences

Abstract

The embodiment of the application discloses an electronic certificate prompting method and a server. The electronic certificate prompting method comprises the following steps: establishing a corresponding relation between the geo-fence and the electronic certificate and between the mobile terminal identification and the electronic certificate; acquiring a geographical position and an identifier uploaded by a mobile terminal; comparing the uploaded geographic position with the geographic fence to judge whether the mobile terminal is in the geographic fence or not; if the mobile terminal is in the geo-fence, acquiring a first electronic certificate corresponding to the geo-fence and the mobile terminal identification at the same time based on the uploaded identification, the corresponding relation between the geo-fence and the electronic certificate and the corresponding relation between the mobile terminal identification and the electronic certificate; and sending first information to the mobile terminal based on the first electronic certificate. According to the electronic certificate prompting method, when the user arrives at the use or consumption area of the electronic certificate, the electronic certificate required by the user can be prompted, and therefore the user experience is improved.

Description

Electronic certificate prompting method and server
Technical Field
The present application relates to the field of location services, and in particular, to a method and a server for prompting an electronic certificate.
Background
With the development of internet technology, more and more users adopt electronic certificates to replace traditional paper money for transfer or transaction. Generally, the electronic voucher includes a group purchase ticket, a coupon, a voucher, an electronic value card, an electronic ticket, an electronic pass, an electronic access card, and the like. The sending and receiving of the electronic certificate are generally realized by an electronic certificate sending device and an electronic certificate receiving device. The electronic certificate sending device is usually a server, and the electronic certificate receiving device is usually a mobile terminal. And when the mobile terminal receives the electronic certificate sent by the server, the user uses or consumes the electronic certificate by using the mobile terminal.
In the prior art, after the server sends the electronic certificate to the mobile terminal, the electronic certificate which is not used yet can be generally prompted only based on time. For example, when the electronic voucher is about to expire, the server sends a message to the mobile terminal prompting the user that the electronic voucher is about to expire.
Disclosure of Invention
The embodiment of the application aims to provide an electronic certificate prompting method and a server so as to realize the purpose of prompting an electronic certificate based on a geographical position.
In order to solve the above technical problem, an electronic certificate prompting method and a server provided in an embodiment of the present application are implemented as follows:
an electronic credential prompting method, comprising:
the first server establishes a corresponding relation between the geo-fence and the electronic certificate and between the mobile terminal identification and the electronic certificate;
the mobile terminal uploads the geographical position and the identification of the mobile terminal to a first server;
the first server compares the uploaded geographic position with the geographic fence to judge whether the mobile terminal is in the geographic fence or not;
if the mobile terminal is in the geo-fence, the first server obtains a first electronic certificate corresponding to the geo-fence and the mobile terminal identification at the same time based on the uploaded identification, the corresponding relation between the geo-fence and the electronic certificate and the corresponding relation between the mobile terminal identification and the electronic certificate;
based on the first electronic certificate, the first server sends first information to the mobile terminal.
Another electronic certificate prompting method includes:
establishing corresponding relations between the geo-fence and the electronic certificate, between the mobile terminal identification and the electronic certificate, and between the second server and the electronic certificate;
acquiring a geographical position and an identifier uploaded by a mobile terminal;
comparing the uploaded geographic position with the geographic fence to judge whether the mobile terminal is in the geographic fence or not;
if the mobile terminal is in the geo-fence, acquiring a first electronic certificate corresponding to the geo-fence and the mobile terminal identification at the same time based on the uploaded identification, the corresponding relation between the geo-fence and the electronic certificate and the corresponding relation between the mobile terminal identification and the electronic certificate;
acquiring a second server corresponding to the first electronic certificate based on the corresponding relation between the second server and the electronic certificate, and requesting second information from the acquired second server;
and acquiring second information returned by the second server, and sending third information to the mobile terminal based on the first electronic certificate and the second information.
Another electronic certificate prompting method includes:
establishing corresponding relations between the geo-fence and the electronic certificate, between the mobile terminal identification and the electronic certificate, and between the geo-fence and the mobile terminal identification;
acquiring a geographical position and an identifier uploaded by a mobile terminal;
acquiring a first geo-fence corresponding to the uploaded identification based on the corresponding relation between the geo-fence and the mobile terminal identification;
comparing the uploaded geographic position with the first geographic fence to judge whether the mobile terminal is inside the first geographic fence;
if the mobile terminal is in the first geo-fence, acquiring a first electronic certificate corresponding to the geo-fence and the mobile terminal identification at the same time based on the uploaded identification, the corresponding relation between the geo-fence and the electronic certificate and the corresponding relation between the mobile terminal identification and the electronic certificate;
and sending first information to the mobile terminal based on the first electronic certificate.
Another electronic certificate prompting method includes:
the first server establishes corresponding relations between the geo-fence and the electronic certificate, between the mobile terminal identification and the electronic certificate, and between the second server and the electronic certificate;
the mobile terminal uploads the geographical position and the identification of the mobile terminal to a first server;
the first server compares the uploaded geographic position with the geographic fence to judge whether the mobile terminal is in the geographic fence or not;
if the mobile terminal is in the geo-fence, the first server obtains a first electronic certificate corresponding to the geo-fence and the mobile terminal identification at the same time based on the uploaded identification, the corresponding relation between the geo-fence and the electronic certificate and the corresponding relation between the mobile terminal identification and the electronic certificate;
based on the corresponding relation between the second server and the electronic certificate, the first server acquires the second server corresponding to the first electronic certificate and requests second information from the acquired second server;
and the first server acquires second information returned by the second server and sends third information to the mobile terminal based on the first electronic certificate and the second information.
Another electronic credential alert server, comprising:
the first establishing module is used for establishing the corresponding relation between the geo-fence and the electronic certificate and between the mobile terminal identification and the electronic certificate;
the acquisition module is used for acquiring the geographic position and the identification uploaded by the mobile terminal;
the first judgment module is used for comparing the uploaded geographic position with the geographic fence so as to judge whether the mobile terminal is in the geographic fence or not;
the first acquisition module is used for acquiring a first electronic certificate corresponding to the geo-fence and the mobile terminal identification simultaneously based on the uploaded identification, the corresponding relation between the geo-fence and the electronic certificate and the corresponding relation between the mobile terminal identification and the electronic certificate if the mobile terminal is in the geo-fence;
and the first sending module is used for sending first information to the mobile terminal based on the first electronic certificate.
Another electronic credential alert server, comprising:
the second establishing module is used for establishing corresponding relations between the geo-fence and the electronic certificate, between the mobile terminal identification and the electronic certificate and between the second server and the electronic certificate;
the acquisition module is used for acquiring the geographic position and the identification uploaded by the mobile terminal;
the first judgment module is used for comparing the uploaded geographic position with the geographic fence so as to judge whether the mobile terminal is in the geographic fence or not;
a first obtaining module, configured to obtain a first electronic certificate based on the uploaded identifier, the corresponding relationship between the geo-fence and the electronic certificate, and the corresponding relationship between the mobile terminal identifier and the electronic certificate, if the mobile terminal is inside the geo-fence;
the second acquisition module is used for acquiring a second server corresponding to the first electronic certificate based on the corresponding relation between the second server and the electronic certificate and requesting second information from the acquired second server;
and the second sending module is used for acquiring second information returned by the second server and sending third information to the mobile terminal based on the first electronic certificate and the second information.
According to the technical scheme provided by the embodiment of the application, the geo-fence is established, and the geographic position of the mobile terminal is compared with the geo-fence to judge whether the mobile terminal is in the geo-fence. And if the mobile terminal is in the geographic fence, the server acquires the electronic certificate of the mobile terminal and sends information to the mobile terminal according to the electronic certificate. Compared with the prior art, the method and the device have the advantages that the geo-fence is established, and the technical effect of prompting the electronic certificate required by the user when the user reaches the use or consumption area of the electronic certificate is achieved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only some embodiments described in the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without any creative effort.
FIG. 1 is a flowchart of an electronic voucher prompting method according to an embodiment of the present application;
FIG. 2 is a flowchart of another electronic credential prompting method according to an embodiment of the present application;
FIG. 3 is a flowchart of another electronic credential prompting method according to an embodiment of the present application;
FIG. 4 is a flowchart of another electronic credential prompting method according to an embodiment of the present application;
FIG. 5 is a flowchart of another electronic credential prompting method according to an embodiment of the present application;
FIG. 6 is a flowchart of another electronic credential prompting method according to an embodiment of the present application;
FIG. 7 is a flowchart of another electronic credential prompting method in accordance with an embodiment of the present application;
FIG. 8 is a flowchart of another electronic credential prompting method in accordance with an embodiment of the present application;
FIG. 9 is a flowchart of another electronic credential prompting method in accordance with an embodiment of the present application;
FIG. 10 is a functional block diagram of an electronic credential prompting server according to an embodiment of the present application;
FIG. 11 is a functional block diagram of another electronic credential prompting server according to an embodiment of the present application;
FIG. 12 is a functional block diagram of another electronic credential prompting server according to an embodiment of the present application;
fig. 13 is a functional structure diagram of another electronic certificate prompting server according to an embodiment of the present application.
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.
With the development of mobile communication technology and the popularization of computer technology, Location-Based Service (LBS) technology is moving into people's lives. By using the LBS technology, the position of the mobile terminal can be obtained by positioning the mobile terminal, and then the service related to the position of the mobile terminal is provided for the mobile terminal.
In recent years, Geo-fencing (Geo-fencing) technology has attracted more and more attention as a new application of LBS technology. Geofencing techniques may use a virtual fence to enclose a geofence. Notifications and prompts corresponding to the geofence may be received when the mobile terminal is active in or near the geofence. For example, when a mobile terminal enters a geofence, a merchant located in the geofence may send promotional, preferential, or novelty information to the mobile terminal.
The electronic certificate prompting method and the server in the embodiment of the application use the geo-fencing technology. The electronic voucher comprises a group purchase ticket, a coupon, a voucher, an electronic value-stored card, an electronic ticket, an electronic pass, an electronic access card and the like. The content of the electronic certificate comprises the type of the electronic certificate, the valid time of the electronic certificate, the code of the electronic certificate, the password and the like.
An embodiment of the electronic certificate prompting method of the present application is described below. As shown in fig. 1, includes:
s101: the first server establishes corresponding relations between the electronic certificate and the geo-fence and between the electronic certificate and the mobile terminal identification.
The electronic voucher is typically an electronic voucher of a third party. The third party includes a merchant, a civil aviation airport, a railway station, a parking lot, etc. that provides services for the electronic voucher.
The first server is typically the server that generates the electronic certificate. The third party may upload the relevant information needed to generate the electronic voucher to the first server. And the first server acquires the related information uploaded by the third party, and can generate the electronic certificate according to the related information after receiving a request of acquiring the electronic certificate by the mobile terminal. For example, when the electronic voucher is a coupon, the related information includes a kind of the coupon (for example, a coupon of a kind of full 100 minus 50, full 300 minus 200, etc.), a usage time of the coupon, a usage method of the coupon, and the like.
The first server can obtain a geographic location of a third party and establish a geofence associated with the third party based on the geographic location. For each geofence, the first server may generate a geolocation code. The geo-location codes for different geo-fences are typically not identical. Thus, for each third party, the first server may establish a correspondence of its geographic location to the geographic location code of its geofence. For example, where the third party is a merchant, the first server will establish a geo-fence for the merchant and generate a geo-location code for the merchant geo-fence. The geographic location of the third party may be latitude and longitude (latitude and longitude). For the specific processes of establishing the geo-fence and generating the geo-location code, please refer to the following detailed description.
The mobile terminal may request the first server for an electronic certificate of the third party. The first server can generate an electronic certificate of a third party according to the request of the mobile terminal, and can send the electronic certificate to the mobile terminal. The mobile terminal is typically the holder of the electronic voucher. The mobile terminal may include various terminal devices having a positioning function. For example, a smart phone, a tablet computer, an electronic chip with a positioning function, and a wearable device integrating the electronic chip, etc. The Positioning function may be implemented by a GPS (Global Positioning System), a BDS (bei dou navigation Satellite navigation System), a GLONASS (GLONASS Satellite navigation System), a Galileo Satellite navigation System (Galileo Satellite navigation System), a base station Wireless signal, a WIFI (Wireless-Fidelity) signal, a Bluetooth (Bluetooth) signal, or any combination of the above.
The Identity of the Mobile terminal generally includes a MAC (Medium/Media Access Control) address, an IMEI (International Mobile Equipment Identity), a phone number, and the like. In some cases, the identity of the mobile terminal may also include an account number, a user code, an identification number, and the like. For example, a client of a third party is installed on the mobile terminal. The user registers an account number in the client using the mobile terminal. Then, because the account number of the third party is stored in the mobile terminal, a corresponding relationship is established between the mobile terminal and the account number of the third party, and the account number can be used as the identifier of the mobile terminal. Further, if the user uses the identification number when registering the account number, a corresponding relationship is established between the identification number and the account number of the third party, so that a corresponding relationship is also established between the identification number and the mobile terminal, and the identification number can be used as the identifier of the mobile terminal.
After receiving a request of the mobile terminal for acquiring the third-party electronic certificate, the first server acquires the identifier of the mobile terminal and generates the electronic certificate, so that the corresponding relation between the identifier of the mobile terminal and the electronic certificate can be established. For example, the electronic voucher is a coupon full of 100 minus 50, and the identification of the mobile terminal is a telephone number. Then, after receiving the request of the mobile terminal, the first server acquires the telephone number of the mobile terminal, generates a coupon of which the number is 100 minus 50, and establishes a corresponding relation between the telephone number and the coupon. The first server can inquire the coupon through the telephone number.
As another example, the electronic voucher is a 100 minus 50 coupon and the identity of the mobile terminal is an account number of the third party. Then, after receiving the request of the mobile terminal, the first server acquires the account number of the third party of the mobile terminal, and generates a coupon with the account number of 100 minus 50 according to the account number, thereby establishing the corresponding relationship between the account number and the coupon. The first server can inquire the coupon through the account number.
The first server can establish the corresponding relation between the mobile terminal identification and the electronic certificate and also can establish the corresponding relation between the geographic fence and the electronic certificate. The specific process is as follows.
Because the electronic certificate is generally an electronic certificate of a third party, the first server establishes a corresponding relationship between the third party and the electronic certificate. And for the third party, the first server also establishes the corresponding relation between the geographic position of the third party and the geographic position code of the geographic fence. Thus, the first server can establish a correspondence between the geo-location code of the geo-fence and the electronic credential, thereby establishing a correspondence between the geo-fence and the electronic credential.
The following describes a process in which the first server establishes a geo-fence based on the geo-location of the third party and generates a geo-location code for the geo-fence.
After acquiring the geographic position of the third party, the first server divides the geographic position within a preset range into a geographic area according to a preset rule, so as to establish a geographic fence. Each geo-fence corresponds to a unique geo-location code. The preset rules comprise a tail-removing algorithm and a geohash algorithm.
The tail-removing algorithm is explained as an example.
And the first server carries out ending processing on the latitude and longitude of the third-party geographic position, takes the geographic range represented by ending latitude and longitude as a geographic fence, and takes the ending latitude and longitude as the geographic position code of the geographic fence. Such as a third party geographic location having a latitude of 39.928167 and a longitude of 116.389550. And (4) carrying out tail removing processing on the longitude and latitude, for example, completely removing the second position and the subsequent content after the decimal point. The trailing latitudes and longitudes after treatment by the method are 39.9 and 116.3 respectively. The first server takes the geographical range represented by latitude 39.9 and longitude 116.3 as a geo-fence. Obviously, the longitude and latitude of two geographical positions close enough can be processed by the same tailing-out longitude and latitude after tailing-out processing. For example, the longitude and latitude of the third-party geographical position are (39.928167, 116.389550), the longitude and latitude of the geographical position close to the third-party geographical position are (39.925014, 116.3893215), and after the respective tail removing processing, the tail removing longitude and latitude are all (39.9, 116.3). Then, these nearby geo-locations can be classified into the same geofence, and the tailed latitudes and longitudes of the geo-locations in the geofence are all the same. From the above description, it can be seen that the accuracy of the tail-ending process determines the extent of the final defined geofence. For example, the higher the accuracy of the tail-removed longitude and latitude (the more digits after the decimal point), the smaller the final defined geofence range will be; accordingly, the lower the precision of the tailed latitude (the fewer the number of bits after the decimal point), the larger the geofence range that will ultimately be defined.
The geohash algorithm is described as an example.
The first server may map the latitude and longitude of the third party geographic location to a geohash value using a geohash algorithm. If the third party geographic location has a latitude of 39.928167 and a longitude of 116.389550.
The latitude 39.928167 is approximately encoded by the following algorithm:
1) the latitude interval of the earth is divided into two intervals of-90, 0 and 0, 90.
Two sections into which one section is divided are referred to as left and right sections, respectively. The left interval is the interval where the smaller numerical value is located, and the right interval is the interval where the larger numerical value is located. Further, the latitude is marked by the following rule:
for those belonging to the right interval, labeled 1; for those belonging to the left interval, the label is 0.
Thus, 39.928167 belongs to the right interval [0, 90], labeled 1 according to the above rules.
2) The right interval [0, 90] of 39.928167 is divided into two intervals [0, 45 ], 45, 90.
Decision 39.928167 belongs to the left interval [0, 45), labeled 0.
3) The above procedure of step 1) and step 2) was recursed as in table 1 below until the predetermined number of bits was marked.
According to the foregoing rule, the latitude 39.928167 may be marked as 1 when it belongs to the right of the two-dimensional interval and may be marked as 0 when it belongs to the left.
As the interval is narrowed down for each iteration, the median value of the interval (Mid value in table 1) approaches 39.928167 more and more;
and dividing the interval by a certain number of times, judging the relation between the latitude value and the divided interval and marking the relation, so as to obtain a serial number consisting of 0 and 1, wherein the length of the serial number is related to the number of times of dividing the interval by two. Table 1 lists the interval iterations at a latitude of 39.928167.
TABLE 1 Interval stack at 39.928167 degrees
Bit Min Mid Max
1 -90.000 0.000 90.000
0 0.000 45.000 90.000
1 0.000 22.500 45.000
1 22.500 33.750 45.000
1 33.750 39.375 45.000
0 39.375 42.188 45.000
0 39.375 40.7815 42.188
0 39.375 40.07825 40.7815
1 39.375 39.726625 40.07825
1 39.726625 39.9024375 40.07825
As shown in table 1, after 10 iterations of the interval, a serial number 1011100011 (labeled values are arranged from left to right in sequence) corresponding to a latitude of 39.928167 is finally obtained, and the latitude interval has been narrowed to [39.9024375, 40.07825 ].
With the same method, through 10 iterations of the interval, a sequence number 1101001011 corresponding to a longitude of 116.389550 can be obtained, and the longitude interval has been narrowed to [116.3671875, 116.71875 ].
The first server takes the geographical range represented by the latitude interval [39.9024375, 40.07825] and the longitude interval [116.3671875, 116.71875] as the geo-fence.
And the first server encodes serial numbers corresponding to the longitude and the latitude to generate a geohash value corresponding to the longitude and the latitude. The coding method comprises the following steps: and sequentially and mutually interpolating the serial numbers corresponding to the longitude and the latitude to generate a new serial number. The first digit of the newly generated sequence number is the first digit of the sequence number corresponding to longitude.
For example, when the serial number corresponding to latitude is 1011100011 and the serial number corresponding to longitude is 1101001011, a new serial number such as 11100111010010001111 can be formed by sequentially interpolating serial numbers corresponding to longitude and latitude with the first digit of the serial number corresponding to longitude as the first digit of the newly generated serial number. The odd-numbered digits of the newly generated serial numbers from left to right are serial numbers corresponding to longitude, and the even-numbered digits are serial numbers corresponding to latitude.
The first server base32 encodes the newly generated serial number using 32 characters 0-9, b-z (minus a, i, l, o). The correspondence between the 32 characters 0 to 9, b to z and the decimal number is shown in Table 2.
TABLE 2 decimal number to Base32 code correspondence
Dec 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
B32 0 1 2 3 4 5 6 7 8 9 b c d E F g
Dec 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
B32 H j k M n P Q r s t u v w X Y z
Note: dec stands for Decimal, denoting Decimal; b32 represents Base32 code.
When encoding a new serial number, firstly, every five digits in 11100111010010001111 can be converted into decimal numbers, namely 28, 29, 4 and 15; the 4 decimal numbers are then encoded using the correspondence in table 2. 28 for w, 29 for x, 4 for 4, 15 for g, wx4g is obtained. Wx4g was taken as the geohash value for latitude and longitude (39.928167, 116.389550). The first server encodes the geohash value as a geo-location of the geofence.
In the above-described geohash algorithm, the number of iterations determines the length of the generated sequence number, and thus the length of the finally generated geohash value. The longer the geohash value is, the more the number of times of iteration is represented, and the final interval is closer to the actual longitude and latitude. In other words, the more bits of the geohash value, the smaller the geographic extent of the geofence.
Meanwhile, under a certain number of iterations, that is, under the premise of a certain length of the geohash value, if two geographic positions are relatively close, the geohash values corresponding to the longitude and latitude are also the same or relatively close. For geographic locations with the same geohash value, the geographic locations may be classified into the same geofence. The geo-hash value of the geofence can be used as the geo-location code for the geofence. Fig. 2 is a diagram illustrating the division of the geographical location within the preset range according to the geohash value in an embodiment of the present embodiment. As can be seen from fig. 2, the geographic locations within the preset range are divided into 9 rectangular areas, and the geographic locations in each rectangular area have a unique geohash value. These 9 rectangular areas can be used as the divided geofences.
In some embodiments, the first server saves each generated electronic voucher accordingly. The electronic certificate stored in the first server is used for counting the acquired and used electronic certificates respectively and returning the related statistical data to the third party. For example, if the electronic voucher is a coupon, the coupon picked up by the user through the first server may not be used. The first server can calculate the proportion of the consumption ticket used by the user to the generated consumption ticket and return the proportion to the third party, thereby providing data support for the production operation activity of the third party.
S102: the mobile terminal uploads the geographical position and the identification of the mobile terminal to the first server.
The mobile terminal can acquire the geographic position and the identification of the mobile terminal, and upload the acquired geographic position and the identification to the first server. The geographic position of the mobile terminal is generally the longitude and latitude of the geographic position of the mobile terminal. The type of the mobile terminal identity is the same as the mobile terminal identity in step S101.
There are various methods for acquiring the geographical location of the mobile terminal, including but not limited to:
acquiring the geographical position of the satellite navigation system (such as a GPS, BDS, GLONASS or Galileo satellite navigation system);
acquiring the geographical position of the mobile communication base station through a signal of the mobile communication base station;
and acquiring the geographical position of the WIFI equipment or the Bluetooth equipment of the third party.
There are various methods for the mobile terminal to obtain the self-identity, including but not limited to:
if the identifier of the mobile terminal in the step S101 is a phone number, the mobile terminal acquires its own phone number;
if the identifier of the mobile terminal is the IMEI code in the step S101, the mobile terminal acquires the IMEI code of the mobile terminal;
if the identifier of the mobile terminal in the step S101 is the account number of the third party; the mobile terminal obtains the account number of the third party.
There are various methods for the mobile terminal to upload its geographical location and identity to the first server, including but not limited to: uploading the data through a 2G (second generation mobile communication technology) network, a 3G (third generation mobile communication technology) network, a 4G (fourth generation mobile communication technology) network, WIFI, Bluetooth and the like.
Since the geographical location of the mobile terminal may be constantly changing, the mobile terminal may upload its geographical location to the first server according to a preset frequency. For example, the mobile terminal uploads its geographical location to the first server every 5 seconds (other intervals such as 10 seconds are also possible). It should be noted that the identifier of the mobile terminal does not change in general, and therefore, the mobile terminal may upload the identifier of the mobile terminal to the first server once without uploading the identifier to the first server according to the preset frequency.
S103: and the first server compares the uploaded geographic position with the geographic fence to judge whether the mobile terminal is in the geographic fence or not.
A plurality of geofences can be maintained at the first server. After the first server acquires the geographic location uploaded by the mobile terminal, the geographic location can be compared with each geo-fence to determine whether the mobile terminal is inside the geo-fence. The mobile terminal may be inside one geofence or inside multiple geofences. The specific comparison procedure is as follows.
The first server may perform the same processing on the geographic location uploaded by the mobile terminal according to the tail-removing algorithm or the geohash algorithm in step S101. For example, in step S101, the first server performs geofence division on geographic locations within a preset range by using a tail-removing algorithm. In this step, the first server may also perform the same processing on the geographic location uploaded by the mobile terminal by using a tailing algorithm, so as to obtain a tailing longitude and latitude of the geographic location uploaded by the mobile terminal, and the tailing longitude and latitude may be used as a geographic location code of the geographic location uploaded by the mobile terminal.
After the first server uploads the geographic position of the mobile terminal to generate the geographic position code through the preset rule, the geographic position code can be compared with the stored geographic position code of the geographic fence. If the geographic position code is the same as that of a certain geographic fence, the mobile terminal can be known to be in the geographic fence. If the geographic position code is different from the geographic position code of the geofence stored by the first server, it can be determined that the mobile terminal is not inside the geofence stored by the first server.
S104: if the mobile terminal is inside the geo-fence, the first server determines a first electronic certificate corresponding to the mobile terminal identification and the geo-fence at the same time based on the identification uploaded by the mobile terminal and the corresponding relation between the geo-fence and the mobile terminal identification and the electronic certificate respectively.
The electronic certificate is generally an electronic certificate of a third party, and can also be acquired and stored by the mobile terminal. The number of the electronic certificates can be one or more.
In some embodiments, the first server obtains the geofence if the mobile terminal is inside the geofence. The number of geofences obtained by the first server may be one or more. And then, according to the corresponding relation between the geo-fence and the electronic certificate, the first server inquires the electronic certificate simultaneously corresponding to the geo-fence and the mobile terminal identification. The geo-fence and the mobile terminal identifier may correspond to one or more electronic certificates at the same time. For example, if the mobile terminal is identified as B, the third party is a merchant. When the mobile terminal is inside the geofence of merchant a, the first server may obtain the geofence of merchant a. And then the first server can acquire the electronic certificate of the merchant A according to the corresponding relation between the geographic fence of the merchant A and the electronic certificate of the merchant A. And finally, the first server can select the electronic certificate of the mobile terminal identifier B from the electronic certificates of the merchant A according to the corresponding relation between the mobile terminal identifier B and the electronic certificates. The first server can take the selected electronic certificate of the mobile terminal identification B as the currently effective electronic certificate.
For example, if the mobile terminal is identified as B, the third party is a merchant. When the mobile terminal is inside the geofence of merchant a, the first server may obtain the geofence of merchant a. Then, the first server can obtain the electronic certificate of the mobile terminal identification B according to the corresponding relation between the mobile terminal identification B and the electronic certificate. And finally, the first server can select the electronic certificate of the merchant A from the electronic certificates of the mobile terminal identifier B according to the corresponding relation between the geographic fence of the merchant A and the electronic certificates of the merchant A. The first server can use the selected electronic certificate of the merchant A as the first electronic certificate.
S105: and based on the electronic certificate corresponding to the mobile terminal identification and the geographic fence at the same time, the first server sends first information to the mobile terminal.
The first server can obtain the content of the first electronic certificate corresponding to the mobile terminal identification and the geo-fence at the same time, generate first information according to the content of the first electronic certificate, and send the first information to the mobile terminal. The first information includes content of the electronic voucher or other information.
For example, the first electronic voucher is a coupon, and the first information includes the time of use, the method of use, the password of use, and the like of the coupon.
For another example, the first electronic certificate is a train ticket, and then the first information includes the train departure time, a ticket checking window, and the like.
S106: the mobile terminal acquires the first information and prompts or displays the first information after acquiring the first information.
In some embodiments, after the mobile terminal acquires the first information sent by the first server, the first information may be displayed on a screen of the mobile terminal.
In another embodiment, after acquiring the first information sent by the first server, the mobile terminal may prompt the user for the first information, but does not display the first information on the screen. For example, after acquiring the first information sent by the first server, the mobile terminal prompts the first information to the user in a manner of ringing or vibrating.
The embodiment of fig. 1 corresponds to establishing a geofence for a third party. When the mobile terminal is in the geo-fence, the first server acquires the electronic certificate of the third party corresponding to the mobile terminal, so that information is sent to the mobile terminal to prompt the electronic certificate required by the user, and the user is prevented from searching the electronic certificate in the mobile terminal.
After a period of time elapses after the user acquires the electronic certificate of the third party, the user may forget the electronic certificate. In the embodiment corresponding to fig. 1, when the user arrives at the use or consumption area of the electronic certificate, the electronic certificate owned by the user is prompted by sending information to the mobile terminal of the user, so that the utilization rate of the electronic certificate is improved, and further, the transaction amount and the transaction amount of a third party are improved.
Meanwhile, the third party realizes the prompt of the electronic certificate by authorizing the first server (uploading the relevant information required by generating the electronic certificate to the first server). Therefore, the third party does not need to establish an electronic certificate prompting system, and resources are saved.
In another preferred embodiment, the first server may also send personalized information to the mobile terminal according to the needs of the third party. Specifically, as shown in fig. 3, this embodiment includes:
s301: the first server establishes the corresponding relation between the geo-fence and the electronic certificate, the mobile terminal identification and the electronic certificate, and the second server and the electronic certificate.
The second server is typically a third party server. Such as a server for a merchant, civil airport, railway station, parking lot, etc. The third party's server generally has a correspondence with the third party's electronic certificate so that the first server can establish a correspondence between the second server and the electronic certificate.
S302: the mobile terminal uploads the geographical position and the identification of the mobile terminal to the first server.
S303: and the first server compares the uploaded geographic position with the geographic fence to judge whether the mobile terminal is in the geographic fence or not.
S304: and if the mobile terminal is in the geographic fence, the first server acquires a first electronic certificate corresponding to the geographic fence and the mobile terminal identification at the same time based on the uploaded identification, the corresponding relation between the geographic fence and the electronic certificate and the corresponding relation between the mobile terminal identification and the electronic certificate.
S305: based on the corresponding relation between the second server and the electronic certificate, the first server acquires the second server corresponding to the electronic certificate and requests the second server to acquire second information.
For example, the third party is merchant a, the first electronic certificate is the electronic certificate of merchant a, and the second server is the server of merchant a. Then, after the first server acquires the electronic certificate of the merchant A, the server of the merchant A is further acquired according to the electronic certificate of the merchant A.
The second information includes up-to-date services of third parties, offers, and other information that may be of interest to the user.
S306: the second server generates second information and sends the second information to the first server.
S307: and the first server acquires second information returned by the second server, generates third information according to the first electronic certificate and the second information, and sends the third information to the mobile terminal.
The third information generally includes the content of the first electronic voucher and the content of the second information.
S308: and the mobile terminal acquires the third information and prompts or displays the third information after acquiring the third information.
In the embodiment corresponding to fig. 3, after the first server obtains the electronic certificate of the third party corresponding to the mobile terminal, the first server establishes a contact with the server of the third party to obtain the personalized information of the third party. After the first server acquires the personalized information of the third party, the personalized information is sent to the mobile terminal, and therefore the third party can send the personalized information to the mobile terminal.
The embodiment corresponding to fig. 1 mainly includes the first server, so that the embodiment shown in fig. 4 is formed. This embodiment comprises the steps of:
s401: and establishing a corresponding relation between the geo-fence and the electronic certificate and between the mobile terminal identification and the electronic certificate.
S402: and acquiring the geographic position uploaded by the mobile terminal, and comparing the uploaded geographic position with the geographic fence to judge whether the mobile terminal is in the geographic fence or not.
S403: and acquiring an identifier uploaded by the mobile terminal, and acquiring a first electronic certificate corresponding to the geo-fence and the identifier of the mobile terminal simultaneously based on the uploaded identifier, the corresponding relation between the geo-fence and the electronic certificate and the corresponding relation between the identifier of the mobile terminal and the electronic certificate if the mobile terminal is inside the geo-fence.
S404: and sending first information to the mobile terminal based on the first electronic certificate.
Accordingly, the embodiment corresponding to fig. 3 mainly includes the first server, so that the embodiment shown in fig. 5 is formed. This embodiment comprises the steps of:
s501: and establishing corresponding relations between the geo-fence and the electronic certificate, between the mobile terminal identification and the electronic certificate, and between the second server and the electronic certificate.
S502: and acquiring the geographic position uploaded by the mobile terminal, and comparing the uploaded geographic position with the geographic fence to judge whether the mobile terminal is in the geographic fence or not.
S503: and acquiring an identifier uploaded by the mobile terminal, and acquiring a first electronic certificate corresponding to the geo-fence and the identifier of the mobile terminal simultaneously based on the uploaded identifier, the corresponding relation between the geo-fence and the electronic certificate and the corresponding relation between the identifier of the mobile terminal and the electronic certificate if the mobile terminal is inside the geo-fence.
S504: and acquiring a second server corresponding to the first electronic certificate based on the corresponding relation between the second server and the electronic certificate, and requesting the second server to acquire second information.
S505: and acquiring second information returned by the second server, generating third information according to the first electronic certificate and the second information, and sending the third information to the mobile terminal.
In another embodiment, the first server establishes a correspondence between the mobile terminal identifier and the geo-fence, and after acquiring the identifier uploaded by the mobile terminal, the first server may first acquire the geo-fence according to the correspondence between the mobile terminal identifier and the geo-fence. The first server then compares the geographic location uploaded by the mobile terminal with the obtained geo-fence. This embodiment reduces the time required to determine whether a mobile terminal is inside a geofence, since there is no need to compare the geographic location uploaded by the mobile terminal to each geofence. Specifically, as shown in fig. 6, this embodiment includes:
s601: the first server establishes corresponding relations between the geo-fence and the electronic certificate, between the mobile terminal identification and the electronic certificate, and between the geo-fence and the mobile terminal identification.
The first server may first establish a correspondence between the geofence and the electronic credential and the mobile terminal identification and the electronic credential. Then, the first server can establish the corresponding relation between the mobile terminal identification and the geo-fence according to the corresponding relation between the geo-fence and the electronic certificate and between the mobile terminal identification and the electronic certificate.
For example, the third party is a merchant. The electronic voucher is a coupon for a merchant. The identity of the mobile terminal is the phone number of the mobile terminal. The first server establishes a geofence of the merchant. Then the merchant has a one-to-one correspondence with the geofence. After receiving the request of the mobile terminal, the first server can acquire the telephone number of the mobile terminal, generate a coupon of a merchant, and establish a corresponding relation between the telephone number and the coupon. Therefore, through the coupon, the telephone number of the mobile terminal and the geographic fence of the merchant can establish a corresponding relation.
S602: the mobile terminal uploads the geographical position and the identification of the mobile terminal to the first server.
S603: based on the corresponding relation between the geo-fence and the mobile terminal identification, the first server obtains a second geo-fence corresponding to the uploaded identification.
S604: and the first server compares the uploaded geographic position with the second geographic fence to judge whether the mobile terminal is in the second geographic fence or not.
S605: and if the mobile terminal is in the second geo-fence, the first server acquires a first electronic certificate corresponding to the geo-fence and the mobile terminal identification at the same time based on the uploaded identification, the corresponding relation between the geo-fence and the electronic certificate and the corresponding relation between the mobile terminal identification and the electronic certificate.
S606: based on the first electronic certificate, the first server sends first information to the mobile terminal.
S607: the mobile terminal acquires the first information and prompts or displays the first information after acquiring the first information.
In another preferred embodiment, the first server may also send personalized information to the mobile terminal according to the needs of the third party. Specifically, as shown in fig. 7, this embodiment includes:
s701: the first server establishes the corresponding relation between the geo-fence and the electronic certificate, between the mobile terminal identification and the electronic certificate, between the second server and the electronic certificate, and between the geo-fence and the mobile terminal identification.
S702: the mobile terminal uploads the geographical position and the identification of the mobile terminal to the first server.
S703: based on the corresponding relation between the geo-fence and the mobile terminal identification, the first server obtains a second geo-fence corresponding to the uploaded identification.
S704: and the first server compares the uploaded geographic position with the second geographic fence to judge whether the mobile terminal is in the second geographic fence or not.
S705: and if the mobile terminal is in the second geo-fence, the first server acquires a first electronic certificate corresponding to the geo-fence and the mobile terminal identification at the same time based on the uploaded identification, the corresponding relation between the geo-fence and the electronic certificate and the corresponding relation between the mobile terminal identification and the electronic certificate.
S706: based on the corresponding relation between the second server and the electronic certificate, the first server acquires the second server corresponding to the first electronic certificate and requests the second server to acquire the second information.
S707: the second server generates second information and sends the second information to the first server.
S708: and the first server acquires second information returned by the second server, generates third information according to the first electronic certificate and the second information, and sends the third information to the mobile terminal.
S709: and the mobile terminal acquires the third information and prompts or displays the third information after acquiring the third information.
The embodiment corresponding to fig. 6 mainly includes the first server, so that the embodiment shown in fig. 8 is formed. This embodiment comprises the steps of:
s801: and establishing corresponding relations between the geo-fence and the electronic certificate, between the mobile terminal identification and the electronic certificate, and between the geo-fence and the mobile terminal identification.
S802: and acquiring the identifier uploaded by the mobile terminal, and acquiring a second geo-fence corresponding to the uploaded identifier based on the corresponding relation between the geo-fence and the identifier of the mobile terminal.
S803: and acquiring the geographic position uploaded by the mobile terminal, and comparing the uploaded geographic position with the second geographic fence to judge whether the mobile terminal is in the second geographic fence or not.
S804: and if the mobile terminal is in the second geo-fence, acquiring the first electronic certificate based on the uploaded identification, the corresponding relation between the geo-fence and the electronic certificate and the corresponding relation between the mobile terminal identification and the electronic certificate.
S805: and sending first information to the mobile terminal based on the first electronic certificate.
Accordingly, the embodiment corresponding to fig. 7 mainly includes the first server, so that the embodiment shown in fig. 9 is formed. This embodiment comprises the steps of:
s901: and establishing corresponding relations between the geo-fence and the electronic certificate, between the mobile terminal identification and the electronic certificate, between the second server and the electronic certificate and between the geo-fence and the mobile terminal identification.
S902: and acquiring the identifier uploaded by the mobile terminal, and acquiring a second geo-fence corresponding to the uploaded identifier based on the corresponding relation between the geo-fence and the identifier of the mobile terminal.
S903: and acquiring the geographic position uploaded by the mobile terminal, and comparing the uploaded geographic position with the second geographic fence to judge whether the mobile terminal is in the second geographic fence or not.
S904: and if the mobile terminal is in the second geo-fence, acquiring a first electronic certificate corresponding to the geo-fence and the mobile terminal identification at the same time based on the uploaded identification, the corresponding relation between the geo-fence and the electronic certificate and the corresponding relation between the mobile terminal identification and the electronic certificate.
S905: and acquiring a second server corresponding to the first electronic certificate based on the corresponding relation between the second server and the electronic certificate, and requesting the second server to acquire second information.
S906: and acquiring second information returned by the second server, generating third information according to the first electronic certificate and the second information, and sending the third information to the mobile terminal.
The embodiment of the present application further provides an electronic credential prompting server, as shown in fig. 10, including a first establishing module 1001, an obtaining module 1002, a first determining module 1003, a first obtaining module 1004, and a first sending module 1005. Wherein the content of the first and second substances,
a first establishing module 1001, configured to establish a corresponding relationship between a geo-fence and an electronic certificate and between a mobile terminal identifier and the electronic certificate;
an obtaining module 1002, configured to obtain a geographic location and an identifier uploaded by a mobile terminal;
a first determining module 1003, configured to compare the uploaded geographic location with a geo-fence to determine whether the mobile terminal is inside the geo-fence;
a first obtaining module 1004, configured to obtain, if the mobile terminal is inside the geo-fence, a first electronic certificate based on the uploaded identifier, and a correspondence between the geo-fence and the electronic certificate and a correspondence between the mobile terminal identifier and the electronic certificate;
a first sending module 1005, configured to send the first information to the mobile terminal based on the first electronic certificate.
The embodiment of the present application further provides another electronic credential prompting server, as shown in fig. 11, including a second establishing module 1101, an obtaining module 1002, a first determining module 1003, a first obtaining module 1004, a second obtaining module 1102, and a second sending module 1103. Wherein the content of the first and second substances,
a second establishing module 1101, configured to establish a corresponding relationship between the geo-fence and the electronic certificate, between the mobile terminal identifier and the electronic certificate, and between the second server and the electronic certificate;
a second obtaining module 1102, configured to obtain a second server corresponding to the first electronic certificate based on a correspondence between the second server and the electronic certificate, and request second information from the obtained second server;
a second sending module 1103, configured to obtain second information returned by the second server, and send third information to the mobile terminal based on the first electronic certificate and the second information.
The embodiment of the present application further provides another electronic credential prompting server, as shown in fig. 12, including a third establishing module 1201, an obtaining module 1002, a third obtaining module 1202, a second determining module 1203, a fourth obtaining module 1204, and a first sending module 1005. Wherein the content of the first and second substances,
a third establishing module 1201, configured to establish a correspondence between a geo-fence and the electronic credential, between the mobile terminal identifier and the electronic credential, and between the geo-fence and the mobile terminal identifier;
a third obtaining module 1202, configured to obtain, based on a correspondence between a geo-fence and a mobile terminal identifier, a first geo-fence corresponding to an uploaded identifier;
a second determining module 1203, configured to compare the uploaded geographic location with the first geo-fence, so as to determine whether the mobile terminal is inside the first geo-fence;
a fourth obtaining module 1204, configured to, if the mobile terminal is inside the first geo-fence, obtain, based on the uploaded identifier, and the corresponding relationship between the geo-fence and the electronic credential and the corresponding relationship between the mobile terminal identifier and the electronic credential, the first electronic credential that corresponds to both the geo-fence and the mobile terminal identifier.
The embodiment of the present application further provides another electronic credential prompting server, as shown in fig. 13, including a fourth establishing module 1301, an obtaining module 1002, a third obtaining module 1202, a second determining module 1203, a fourth obtaining module 1204, a second obtaining module 1102, and a second sending module 1103. Wherein the content of the first and second substances,
a fourth establishing module 1301, configured to establish a corresponding relationship between the geo-fence and the electronic credential, between the mobile terminal identifier and the electronic credential, between the second server and the electronic credential, and between the geo-fence and the mobile terminal identifier;
in the 90 s of the 20 th century, improvements in a technology could clearly distinguish between improvements in hardware (e.g., improvements in circuit structures such as diodes, transistors, switches, etc.) and improvements in software (improvements in process flow). However, as technology advances, many of today's process flow improvements have been seen as direct improvements in hardware circuit architecture. Designers almost always obtain the corresponding hardware circuit structure by programming an improved method flow into the hardware circuit. Thus, it cannot be said that an improvement in the process flow cannot be realized by hardware physical modules. For example, a Programmable Logic Device (PLD), such as a Field Programmable Gate Array (FPGA), is an integrated circuit whose Logic functions are determined by programming the Device by a user. A digital system is "integrated" on a PLD by the designer's own programming without requiring the chip manufacturer to design and fabricate a dedicated integrated circuit chip 2. Furthermore, nowadays, instead of manually making an integrated Circuit chip, such Programming is often implemented by "logic compiler" software, which is similar to a software compiler used in program development and writing, but the original code before compiling is also written by a specific Programming Language, which is called Hardware Description Language (HDL), and HDL is not only one but many, such as abel (advanced Boolean Expression Language), ahdl (alternate Language Description Language), traffic, pl (core unified Programming Language), HDCal, JHDL (Java Hardware Description Language), langue, Lola, HDL, laspam, hardsradware (Hardware Description Language), vhjhd (Hardware Description Language), and vhigh-Language, which are currently used in most popular applications. It will also be apparent to those skilled in the art that hardware circuitry that implements the logical method flows can be readily obtained by merely slightly programming the method flows into an integrated circuit using the hardware description languages described above.
The controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, an Application Specific Integrated Circuit (ASIC), a programmable logic controller, and an embedded microcontroller, examples of which include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320, the memory controller may also be implemented as part of the control logic for the memory.
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 thus be considered 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 systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functionality of the units may be implemented in one or more software and/or hardware when implementing the present application.
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 essentially or partially implemented 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, etc., and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) 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 and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
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, multiprocessor systems, microprocessor-based systems, set top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments that include any of the above systems or devices, and the like.
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, 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.
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.

Claims (14)

1. An electronic credential prompting method, comprising:
establishing a corresponding relation between the geo-fence and the electronic certificate and between the mobile terminal identification and the electronic certificate;
acquiring a geographical position and an identifier uploaded by a mobile terminal;
comparing the uploaded geographic position with the geographic fence to judge whether the mobile terminal is in the geographic fence or not;
if the mobile terminal is in the geo-fence, acquiring a first electronic certificate corresponding to the geo-fence and the mobile terminal identification at the same time based on the uploaded identification, the corresponding relation between the geo-fence and the electronic certificate and the corresponding relation between the mobile terminal identification and the electronic certificate;
sending first information to the mobile terminal based on the first electronic certificate; and the mobile terminal prompts the first electronic certificate according to the first information.
2. The method of claim 1, wherein obtaining the first electronic certificate based on the uploaded identification and the correspondence between the geo-fence and the electronic certificate and the correspondence between the mobile terminal identification and the electronic certificate if the mobile terminal is inside the geo-fence comprises:
if the mobile terminal is in the geographic fence, acquiring the geographic fence, and acquiring a second electronic certificate corresponding to the geographic fence based on the corresponding relation between the geographic fence and the electronic certificate;
and selecting a first electronic certificate corresponding to the uploaded mobile terminal identifier from the second electronic certificate based on the corresponding relation between the mobile terminal identifier and the electronic certificate.
3. The method of claim 1, wherein obtaining the first electronic certificate based on the uploaded identification and the correspondence between the geo-fence and the electronic certificate and the correspondence between the mobile terminal identification and the electronic certificate if the mobile terminal is inside the geo-fence comprises:
if the mobile terminal is inside the geo-fence, acquiring the geo-fence;
acquiring a third electronic certificate corresponding to the uploaded mobile terminal identification based on the corresponding relation between the mobile terminal identification and the electronic certificate;
and selecting the first electronic certificate corresponding to the obtained geo-fence from the third electronic certificates based on the corresponding relation between the geo-fence and the electronic certificates.
4. The method of claim 1, wherein establishing a correspondence of a geofence to an electronic credential comprises:
acquiring the geographic position of a third party, establishing a geographic fence of the third party according to the geographic position, and generating a geographic position code;
generating an electronic certificate of a third party according to the request of the mobile terminal;
establishing a corresponding relationship between the geographic location code and the electronic certificate of the third party, wherein the geographic location code is the geographic location code of the geofence of the third party.
5. The method of claim 4, wherein said establishing a third party geofence as a function of said geographic location and generating a geolocation code, comprises:
based on the geographic position of the third party, dividing the geographic position in the preset range into the geographic fence of the third party according to a preset rule, and generating a geographic position code according to the preset rule.
6. The method of claim 5, wherein the preset rules include a tail-elimination algorithm and a geohash algorithm.
7. The method of claim 4, wherein comparing the uploaded geographic location to a geo-fence to determine whether the mobile terminal is inside the geo-fence comprises:
generating a first geographical position code according to a preset rule, wherein the first geographical position code is a geographical position code of an uploaded geographical position;
and comparing the first geographical position code with the geographical position code of the geo-fence, if the first geographical position code is the same as the geographical position code of the geo-fence, judging that the mobile terminal is inside the geo-fence, and if the first geographical position code is not the same as the geographical position code of the geo-fence, judging that the mobile terminal is not inside the geo-fence.
8. The method of claim 7, wherein the preset rules include a tail-elimination algorithm and a geohash algorithm.
9. An electronic credential prompting method, comprising:
establishing corresponding relations between the geo-fence and the electronic certificate, between the mobile terminal identification and the electronic certificate, and between the second server and the electronic certificate;
acquiring a geographical position and an identifier uploaded by a mobile terminal;
comparing the uploaded geographic position with the geographic fence to judge whether the mobile terminal is in the geographic fence or not;
if the mobile terminal is in the geo-fence, acquiring a first electronic certificate corresponding to the geo-fence and the mobile terminal identification at the same time based on the uploaded identification, the corresponding relation between the geo-fence and the electronic certificate and the corresponding relation between the mobile terminal identification and the electronic certificate;
acquiring a second server corresponding to the first electronic certificate based on the corresponding relation between the second server and the electronic certificate, and requesting second information from the acquired second server;
acquiring second information returned by the second server, and sending third information to the mobile terminal based on the first electronic certificate and the second information; and the mobile terminal prompts the first electronic certificate and the second information according to the third information.
10. An electronic credential prompting method, comprising:
establishing corresponding relations between the geo-fence and the electronic certificate, between the mobile terminal identification and the electronic certificate, and between the geo-fence and the mobile terminal identification;
acquiring a geographical position and an identifier uploaded by a mobile terminal;
acquiring a first geo-fence corresponding to the uploaded identification based on the corresponding relation between the geo-fence and the mobile terminal identification;
comparing the uploaded geographic position with the first geographic fence to judge whether the mobile terminal is inside the first geographic fence;
if the mobile terminal is in the first geo-fence, acquiring a first electronic certificate corresponding to the geo-fence and the mobile terminal identification at the same time based on the uploaded identification, the corresponding relation between the geo-fence and the electronic certificate and the corresponding relation between the mobile terminal identification and the electronic certificate;
sending first information to the mobile terminal based on the first electronic certificate; and the mobile terminal prompts the first electronic certificate according to the first information.
11. An electronic credential prompting method, comprising:
establishing corresponding relations between the geo-fence and the electronic certificate, between the mobile terminal identification and the electronic certificate, between the second server and the electronic certificate, and between the geo-fence and the mobile terminal identification;
acquiring a geographical position and an identifier uploaded by a mobile terminal;
acquiring a first geo-fence corresponding to the uploaded identification based on the corresponding relation between the geo-fence and the mobile terminal identification;
comparing the uploaded geographic position with the first geographic fence to judge whether the mobile terminal is inside the first geographic fence;
if the mobile terminal is in the first geo-fence, acquiring a first electronic certificate corresponding to the geo-fence and the mobile terminal identification at the same time based on the uploaded identification, the corresponding relation between the geo-fence and the electronic certificate and the corresponding relation between the mobile terminal identification and the electronic certificate;
acquiring a second server corresponding to the first electronic certificate based on the corresponding relation between the second server and the electronic certificate, and requesting second information from the acquired second server;
acquiring second information returned by the second server, and sending third information to the mobile terminal based on the first electronic certificate and the second information; and the mobile terminal prompts the first electronic certificate and the second information according to the third information.
12. An electronic credential prompting method, comprising:
the first server establishes corresponding relations between the geo-fence and the electronic certificate, between the mobile terminal identification and the electronic certificate, and between the second server and the electronic certificate;
the mobile terminal uploads the geographical position and the identification of the mobile terminal to a first server;
the first server compares the uploaded geographic position with the geographic fence to judge whether the mobile terminal is in the geographic fence or not;
if the mobile terminal is in the geo-fence, the first server obtains a first electronic certificate corresponding to the geo-fence and the mobile terminal identification at the same time based on the uploaded identification, the corresponding relation between the geo-fence and the electronic certificate and the corresponding relation between the mobile terminal identification and the electronic certificate;
based on the corresponding relation between the second server and the electronic certificate, the first server acquires the second server corresponding to the first electronic certificate and requests second information from the acquired second server;
the first server acquires second information returned by the second server and sends third information to the mobile terminal based on the first electronic certificate and the second information;
and the mobile terminal prompts the first electronic certificate and the second information according to the third information.
13. An electronic credential prompting server, comprising:
the first establishing module is used for establishing the corresponding relation between the geo-fence and the electronic certificate and between the mobile terminal identification and the electronic certificate;
the acquisition module is used for acquiring the geographic position and the identification uploaded by the mobile terminal;
the first judgment module is used for comparing the uploaded geographic position with the geographic fence so as to judge whether the mobile terminal is in the geographic fence or not;
the first acquisition module is used for acquiring a first electronic certificate corresponding to the geo-fence and the mobile terminal identification simultaneously based on the uploaded identification, the corresponding relation between the geo-fence and the electronic certificate and the corresponding relation between the mobile terminal identification and the electronic certificate if the mobile terminal is in the geo-fence;
the first sending module is used for sending first information to the mobile terminal based on the first electronic certificate; and the mobile terminal prompts the first electronic certificate according to the first information.
14. An electronic credential prompting server, comprising:
the second establishing module is used for establishing corresponding relations between the geo-fence and the electronic certificate, between the mobile terminal identification and the electronic certificate and between the second server and the electronic certificate;
the acquisition module is used for acquiring the geographic position and the identification uploaded by the mobile terminal;
the first judgment module is used for comparing the uploaded geographic position with the geographic fence so as to judge whether the mobile terminal is in the geographic fence or not;
a first obtaining module, configured to obtain a first electronic certificate based on the uploaded identifier, the corresponding relationship between the geo-fence and the electronic certificate, and the corresponding relationship between the mobile terminal identifier and the electronic certificate, if the mobile terminal is inside the geo-fence;
the second acquisition module is used for acquiring a second server corresponding to the first electronic certificate based on the corresponding relation between the second server and the electronic certificate and requesting second information from the acquired second server;
the second sending module is used for acquiring second information returned by the second server and sending third information to the mobile terminal based on the first electronic certificate and the second information; and the mobile terminal prompts the first electronic certificate and the second information according to the third information.
CN201510174921.4A 2015-04-14 2015-04-14 Electronic certificate prompting method and server Active CN106162542B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202010738842.2A CN112004194A (en) 2015-04-14 2015-04-14 Electronic certificate prompting method and device and electronic equipment
CN201510174921.4A CN106162542B (en) 2015-04-14 2015-04-14 Electronic certificate prompting method and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510174921.4A CN106162542B (en) 2015-04-14 2015-04-14 Electronic certificate prompting method and server

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN202010738842.2A Division CN112004194A (en) 2015-04-14 2015-04-14 Electronic certificate prompting method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN106162542A CN106162542A (en) 2016-11-23
CN106162542B true CN106162542B (en) 2020-08-14

Family

ID=57336429

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202010738842.2A Pending CN112004194A (en) 2015-04-14 2015-04-14 Electronic certificate prompting method and device and electronic equipment
CN201510174921.4A Active CN106162542B (en) 2015-04-14 2015-04-14 Electronic certificate prompting method and server

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN202010738842.2A Pending CN112004194A (en) 2015-04-14 2015-04-14 Electronic certificate prompting method and device and electronic equipment

Country Status (1)

Country Link
CN (2) CN112004194A (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107071737A (en) * 2017-05-22 2017-08-18 济南浪潮高新科技投资发展有限公司 A kind of Internet of Things geography fence regulation engine accelerated method based on FPGA
CN109145225B (en) * 2017-06-27 2022-02-08 阿里巴巴集团控股有限公司 Data processing method and device
CN111323025A (en) * 2020-02-25 2020-06-23 北京首汽智行科技有限公司 Coordinate judgment method based on GeoHash algorithm
CN114449446B (en) * 2021-08-11 2023-01-10 荣耀终端有限公司 Virtual card switching method and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102054240A (en) * 2009-11-03 2011-05-11 余伟坚 Community-oriented electronic certificate system of mobile phone
CN102685662A (en) * 2011-03-17 2012-09-19 高德软件有限公司 Position-based discount coupon management platform, releasing method and releasing system and intelligent terminal
CN103761646A (en) * 2014-01-23 2014-04-30 上海动量惠银信息技术有限公司 Method for recognizing and verifying electronic consumption voucher on POS machine through mobile phone number
CN103985082A (en) * 2014-05-29 2014-08-13 中国工商银行股份有限公司 Verification method and device for electronic certificate information
CN104113828A (en) * 2013-04-19 2014-10-22 陈亚斌 Accurate push apparatus and accurate push method

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7143049B2 (en) * 1999-09-10 2006-11-28 Siemens Vdo Automotive Ag Method and system for registering tickets
CN1744135A (en) * 2005-09-06 2006-03-08 北京魅力之旅商业管理有限公司 Electronic evidence realizing method and device
JP5218080B2 (en) * 2009-01-15 2013-06-26 ソニー株式会社 Electronic coupon processing system, user management server device, service providing method, and program
CN102419851A (en) * 2011-11-04 2012-04-18 韩壮 Method and device for collecting consumption data of consumers
CN102982268A (en) * 2012-12-03 2013-03-20 冯建中 Information certificate system taking network account as permission and corresponding information certificate presentation method
CN103268670A (en) * 2013-02-28 2013-08-28 广东岭南通股份有限公司 Electronic ticket interaction method and device based on near field communication (NFC) terminal
CN103617546A (en) * 2013-11-27 2014-03-05 上海新大陆翼码信息科技有限公司 Information popularizing method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102054240A (en) * 2009-11-03 2011-05-11 余伟坚 Community-oriented electronic certificate system of mobile phone
CN102685662A (en) * 2011-03-17 2012-09-19 高德软件有限公司 Position-based discount coupon management platform, releasing method and releasing system and intelligent terminal
CN104113828A (en) * 2013-04-19 2014-10-22 陈亚斌 Accurate push apparatus and accurate push method
CN103761646A (en) * 2014-01-23 2014-04-30 上海动量惠银信息技术有限公司 Method for recognizing and verifying electronic consumption voucher on POS machine through mobile phone number
CN103985082A (en) * 2014-05-29 2014-08-13 中国工商银行股份有限公司 Verification method and device for electronic certificate information

Also Published As

Publication number Publication date
CN112004194A (en) 2020-11-27
CN106162542A (en) 2016-11-23

Similar Documents

Publication Publication Date Title
CN105848099B (en) Method, system, server and mobile terminal for identifying geo-fence
CN103222319B (en) A kind of method for mobile computing device and mobile computing device
CN104867065B (en) Method and equipment for processing order
CN106162542B (en) Electronic certificate prompting method and server
US20180109915A1 (en) Systems, methods and devices for virtual fencing
WO2014110647A1 (en) Methods and systems relating to privacy in location based mobile applications
CN102939514A (en) Method and apparatus for location services
CN110324781B (en) Indoor positioning method and device, electronic equipment and computer readable storage medium
CN102984654A (en) Mobile terminal group tracking service method based on internet of things resource sharing platform
CN107018491B (en) Method and device for processing position data
Keikhosrokiani et al. Wireless positioning techniques and location-based services: a literature review
US10028092B2 (en) Reducing client-side chatter for beacon-level events
US9838842B2 (en) Retrospective path analysis
CN104956420A (en) Wristwatch notification for late trains
Al Shammary et al. Smart transportation application using global positioning system
CN107247280B (en) Positioning authentication and processing method and device
JP6379305B1 (en) User context detection using mobile devices based on wireless signal characteristics
CN106464735B (en) Implementation of third-party services in digital service platform
KR101831250B1 (en) System for operating location based service using fixed terminal-mobile terminal and method therefor
CN108093365B (en) Geographical sign information sending method and device
KR100873318B1 (en) Method of location-based-service using relative location information and aparatus for the same
CN104322080A (en) Method and apparatus for providing location information
CN104301361A (en) Intelligent guide method and system based on M2M system
CN103425381B (en) User interaction method and server
CN108093366B (en) Geographic information sending method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 1230825

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant