CN104580379B - Method and device for sending display information - Google Patents

Method and device for sending display information Download PDF

Info

Publication number
CN104580379B
CN104580379B CN201410775592.4A CN201410775592A CN104580379B CN 104580379 B CN104580379 B CN 104580379B CN 201410775592 A CN201410775592 A CN 201410775592A CN 104580379 B CN104580379 B CN 104580379B
Authority
CN
China
Prior art keywords
information
position information
display
display information
terminal
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
CN201410775592.4A
Other languages
Chinese (zh)
Other versions
CN104580379A (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.)
Shenzhen Tencent Computer Systems Co Ltd
Original Assignee
Shenzhen Tencent Computer Systems Co 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 Shenzhen Tencent Computer Systems Co Ltd filed Critical Shenzhen Tencent Computer Systems Co Ltd
Priority to CN201410775592.4A priority Critical patent/CN104580379B/en
Publication of CN104580379A publication Critical patent/CN104580379A/en
Application granted granted Critical
Publication of CN104580379B publication Critical patent/CN104580379B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/52Network services specially adapted for the location of the user terminal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention discloses a method and a device for sending display information, and belongs to the technical field of internet. The method comprises the following steps: receiving an information acquisition request sent by a terminal, wherein the information acquisition request carries current position information of the terminal; acquiring historical position information corresponding to an account currently logged in by the terminal; determining display information corresponding to the current position information and the historical position information according to a corresponding relation between pre-stored position information and the display information; and sending the determined display information to the terminal. By adopting the invention, the waste of network resources can be reduced.

Description

Method and device for sending display information
Technical Field
The invention relates to the technical field of internet, in particular to a method and a server for sending display information.
Background
With the rapid development of computer technology and communication technology, mobile terminals have become widely popular and become one of the most important tools in people's daily life. The network information acquisition function is an important function of the mobile terminal, and the server on the network side can push corresponding display information, such as news, road condition information, discount information and the like, for the mobile terminal according to the real-time position of the mobile terminal.
In the prior art, a mobile terminal is usually provided with a positioning function, and when a user wants to query information of surrounding restaurants or hotels and the like at a certain position, the user usually sends an information acquisition request to a server through an application program on the mobile terminal, wherein the information acquisition request carries current position information, and the position information includes accurate longitude and latitude coordinates. In the server, a large amount of display information and corresponding longitude and latitude coordinates are stored in advance, for example, the server stores a large amount of discount information and corresponding longitude and latitude coordinates of shops. And after receiving the information acquisition request, the server acquires the longitude and latitude coordinates carried in the information acquisition request, further inquires corresponding display information and sends the display information to the mobile terminal.
In the process of implementing the invention, the inventor finds that the prior art has at least the following problems:
for the above manner of sending the display information to the user, the server sends the queried display information around the current location to the mobile terminal by using only the real-time location information of the user, however, the number of the display information around the current location is often limited, and if the user does not obtain the required display information, the user may initiate the information obtaining process again, thereby causing the waste of network resources.
Disclosure of Invention
In order to solve the problems in the prior art, embodiments of the present invention provide a method and an apparatus for sending presentation information. The technical scheme is as follows:
in a first aspect, a method for sending presentation information is provided, where the method includes:
receiving an information acquisition request sent by a terminal, wherein the information acquisition request carries current position information of the terminal;
acquiring historical position information corresponding to an account currently logged in by the terminal;
determining display information corresponding to the current position information and the historical position information according to a corresponding relation between pre-stored position information and the display information;
and sending the determined display information to the terminal.
In a second aspect, an apparatus for sending presentation information is provided, the apparatus comprising:
the receiving module is used for receiving an information acquisition request sent by a terminal, wherein the information acquisition request carries current position information of the terminal;
the acquisition module is used for acquiring historical position information corresponding to an account currently logged in by the terminal;
the determining module is used for determining the display information corresponding to the current position information and the historical position information according to the corresponding relation between the pre-stored position information and the display information;
and the sending module is used for sending the determined display information to the terminal.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
in the embodiment of the invention, an information acquisition request sent by a terminal is received, the information acquisition request carries current position information of the terminal, historical position information corresponding to an account currently logged in by the terminal is acquired, display information corresponding to the current position information and the historical position information is determined according to a corresponding relation between the pre-stored position information and the display information, and the determined display information is sent to the terminal. Therefore, more peripheral display information can be obtained together according to the current position and the historical position of the user, the user can obtain needed information more easily, the possibility that the user initiates information obtaining processing again is reduced, and therefore waste of network resources can be reduced.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart of a method for sending presentation information according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of processing historical location information according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a process of sending presentation information according to an embodiment of the present invention;
fig. 4 is a schematic diagram of processing location information of presentation information according to an embodiment of the present invention;
5a, 5b, and 5c are schematic diagrams of a map area corresponding to a geohash code according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an apparatus for sending display information according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a server according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
Example one
An embodiment of the present invention provides a method for sending presentation information, and as shown in fig. 1, a processing flow of the method may include the following steps:
step 101, receiving an information acquisition request sent by a terminal, wherein the information acquisition request carries current position information of the terminal.
And 102, acquiring historical position information corresponding to the account currently logged in by the terminal.
And 103, determining display information corresponding to the current position information and the historical position information according to the corresponding relationship between the pre-stored position information and the display information.
And 104, sending the determined display information to the terminal.
In the embodiment of the invention, an information acquisition request sent by a terminal is received, the information acquisition request carries current position information of the terminal, historical position information corresponding to an account currently logged in by the terminal is acquired, display information corresponding to the current position information and the historical position information is determined according to a corresponding relation between the pre-stored position information and the display information, and the determined display information is sent to the terminal. Therefore, more peripheral display information can be obtained together according to the current position and the historical position of the user, the user can obtain needed information more easily, the possibility that the user initiates information obtaining processing again is reduced, and therefore waste of network resources can be reduced.
Example two
The embodiment of the invention provides a method for sending display information, wherein an execution main body of the method is a server. The terminal in the method can be a mobile terminal such as a mobile phone and a tablet personal computer, and an application program for information query can be installed on the terminal, so that information such as news, road condition information and discount information can be queried. The server may be a backend server for the application.
The process flow shown in fig. 1 will be described in detail below with reference to specific embodiments, and the contents may be as follows:
step 101, receiving an information acquisition request sent by a terminal, wherein the information acquisition request carries current position information of the terminal.
The information obtaining request may be a request message that the terminal requests the server for the presentation information related to the location.
In implementation, the terminal may be installed with an application program for information query, such as a life service application program, an instant messaging application program with a group purchase function, and the like. When a user wants to perform information query, the application program can be started, a key of a query function is clicked in a main page of the application program, the application program is triggered to load a query page, the terminal acquires current position information (which can be latitude and longitude coordinates) of the terminal, an information acquisition request is generated, the acquired current position information is carried in the information acquisition request, an account identifier of an account logged in by the user in the application program can also be carried in the information acquisition request, and then the information acquisition request is sent to a server. Correspondingly, the server receives the information acquisition request sent by the terminal, and can further analyze the information acquisition request, acquire the current position information of the terminal carried in the information acquisition request, and also acquire the account identifier in the information acquisition request.
And 102, acquiring historical position information corresponding to the account currently logged in by the terminal.
In implementation, the server may establish a location information base in which information on the location where the terminal registered for each account is located at some historical time is stored. The server can collect the location information through the application program, and the location information and the account identifier in the information acquisition request can be acquired and correspondingly recorded in the location information base each time the information acquisition request sent by the terminal is received, or the location information and the account identifier of the corresponding terminal can be automatically reported to the server by the application program when the user starts the application program and recorded in the location information base by the server, or the location information and the account identifier of the corresponding terminal can be reported by the application program according to a preset reporting period and recorded in the location information base by the server. For the case that a plurality of application programs have account association, the server can also acquire the position information of the account history time from background servers of other application programs and record the position information into the position information base.
After receiving the information acquisition request sent by the terminal, the server can acquire the account identifier carried in the information acquisition request, search corresponding position information in a position information base according to the account identifier, and perform subsequent processing by taking the searched position information as historical position information. The location information reported by the terminal is generally a longitude and latitude coordinate, and after the longitude and latitude coordinate corresponding to the account identifier is found, a geohash (an algorithm for coding the longitude and latitude coordinate in the positioning process) code of a specified digit can be performed on the longitude and latitude coordinate (the specific process is described in detail in the subsequent content), that is, the geohash code of the longitude and latitude coordinate corresponding to the account identifier is obtained. A geohash code of a given number of bits may correspond to a rectangular area on the map.
Optionally, a certain mechanism may be further configured to filter location information queried in the location information base to determine historical location information to be used, and correspondingly, the processing in step 102 may be as follows: the method comprises the steps of acquiring position information uploaded by an account currently logged in by a terminal in a preset historical time period, and determining preset number of position information with the maximum repetition times in the acquired position information as historical position information corresponding to the account.
In implementation, when the server acquires the location information corresponding to the account and establishes the location information base, the server may repeatedly record the acquired location information that appears repeatedly in a certain account, or record the number of times that the location information is repeated. When the server uses the account identifier in the information acquisition request to search the corresponding location information in the location information base, the server may acquire the number of repetitions corresponding to each found location information, and determine M (e.g., 3) location information with the highest number of repetitions as the finally selected historical location information corresponding to the account. As shown in fig. 2, i1 to i10 represent longitude and latitude coordinates corresponding to an account identifier in a location information base, A, B, C, D is a geohash code, each box represents an area corresponding to a geohash code, and the geohash codes of the longitude and latitude coordinates in the same area are the same.
And 103, determining display information corresponding to the current position information and the historical position information according to the corresponding relationship between the pre-stored position information and the display information.
The display information may be news, road condition information, discount information, and the like.
In implementation, the server may pre-establish a display information base, collect massive display information and position information corresponding to each display information, and store a corresponding relationship between the position information and the display information in the display information base. For example, in the case where the presentation information is discount information, each store may upload discount information in its store to the server and upload position information of the store at the same time. The position information acquired by the server can be longitude and latitude coordinates, and the server can correspondingly store the longitude and latitude coordinates and the display information in the display information base. After the server obtains the current position information and the historical position information, the server can inquire the display information corresponding to the position information in a display information base.
Optionally, the server may further perform a geohash code on the obtained longitude and latitude coordinates, and correspondingly store the geohash code and the display information in the display information base, where the processing procedure in step 103 may be as follows: determining a geohash code of the current location information and a geohash code of the historical location information; and determining display information corresponding to the geohash code of the current position information and the geohash code of the historical position information according to the corresponding relation between the stored geohash code of the position information and the display information.
In implementation, after the server obtains the current location information and the historical location information, the server may perform a geohash coding on the current location information and the historical location information, and then search for the display information corresponding to each geohash code in a correspondence between the geohash codes of the location information stored in the display information base and the display information, using the geohash codes corresponding to the current location information and the historical location information, respectively.
And 104, sending the determined display information to the terminal.
In implementation, after the server finds the display information, the server may send part or all of the display information to the terminal. After receiving the display information, the terminal may display the received display information in the query page of the application program. Furthermore, the user can browse the display information through the query page and select the information required by the user. The process from the server receiving the information acquisition request sent by the terminal to the server sending the presentation information to the terminal may be as shown in fig. 3.
Optionally, the server may further set an arrangement order of the display information when displayed on the terminal, and correspondingly, the processing procedure in step 104 may be as follows:
step one, obtaining the sorting weight of each piece of display information corresponding to the pre-stored current position information and historical position information.
In implementation, the server may set a ranking weight for each presentation information in the presentation information base in advance, and the ranking weight may be stored in the presentation information base and corresponds to the presentation information. For different types of display information, different setting methods can be adopted for the sorting weight, and the sorting weight can be set randomly according to requirements. For example, when the display information is discount information, the ranking weight corresponding to the discount information may be determined according to the discount rate and the present price of the product corresponding to the discount information and the purchase amount (denoted as Δ purchase amount) in a preset time period, and the calculation formula may be: the ranking weight is discount rate log (present price) Δ purchase amount. As shown in fig. 4, i1 to i12 represent longitude and latitude coordinates corresponding to a plurality of display information, each box represents an area corresponding to a geohash code, the geohash codes of the longitude and latitude coordinates in the same area are the same, and w1 to w12 represent sorting weights corresponding to each display information.
Optionally, after the first step is executed and before the second step is executed, the ranking weights of some display information may be adjusted according to a certain mechanism, and the corresponding processing procedure may be as follows: acquiring display information corresponding to a plurality of pieces of position information in the current position information and the historical position information at the same time from the display information corresponding to the current position information and the historical position information; and increasing the sorting weight of the display information according to the number of the plurality of position information corresponding to the acquired display information.
In an implementation, the same display information may be provided in different geographic locations, for example, in a case where the display information is discount information, a store to which a certain discount information belongs may be a chain store, and the location of each chain store is different, but the discount information is the same. Thus, a plurality of items of the display information are set in the display information base, and the display information corresponds to different position information in different items respectively. When the server searches for the presentation information using the current position information and the historical position information, if the same presentation information is found using a plurality of different position information, the number of the plurality of position information corresponding to the presentation information may be recorded. Then, the ranking weight of the display information is increased and adjusted according to the number, and the specific increasing manner may be set arbitrarily according to actual requirements, for example, the ranking weight may be multiplied by the number to obtain an adjusted ranking weight, or a weight adjustment coefficient may also be determined according to the number, for example, the weight adjustment coefficient is 1.5 when the number is 2, the weight adjustment coefficient is 1.8 when the number is 3, and the adjusted ranking weight is obtained by multiplying the ranking weight by the weight adjustment coefficient.
And step two, determining the display sequence information of each piece of display information according to the sequencing weight of each piece of display information.
In implementation, the presentation information may be sorted in order of descending sorting weight to determine the presentation order information corresponding to each presentation information, where the presentation order information may be a sequence number after sorting, and the like.
Optionally, the ranking weight of the display information corresponding to the current location information and the ranking weight of the display information corresponding to the historical location information may be adjusted to different degrees, and then ranking is performed, and correspondingly, the processing procedure in the second step may be as follows: and determining the display sequence information of each piece of display information according to the sequencing weight of each piece of display information, and the weight adjustment coefficient of the display information corresponding to the pre-stored current position information and the weight adjustment coefficient of the display information corresponding to the historical position information.
In implementation, a higher weight adjustment coefficient (referred to as a first weight adjustment coefficient) such as 1.2 may be set corresponding to the current location information, and a lower weight adjustment coefficient (referred to as a first weight adjustment coefficient) such as 1 may be set corresponding to the historical location information. After the ranking weight of each piece of display information is determined, the ranking weight of the display information corresponding to the current position information can be multiplied by a first weight adjustment coefficient to obtain an adjusted new ranking weight, the ranking weight of the display information corresponding to the historical position information can be multiplied by a second weight adjustment coefficient to obtain an adjusted new ranking weight, and then the display information is ranked according to the ranking weight from large to small to determine the display sequence information corresponding to each piece of display information. Therefore, the display information corresponding to the current position information can be sorted in advance. In addition, different weight adjustment coefficients can be set for the display information corresponding to different historical position information according to different generation time of the historical position information, and the weight adjustment coefficient is smaller as the generation time is earlier. Different weight adjustment coefficients can be set for the display information corresponding to different historical position information according to the distance between the historical position and the current position, and the weight adjustment coefficient is smaller when the distance is larger.
And step three, sending the determined display information and the corresponding display sequence information to the terminal.
In implementation, the server may send, according to the display sequence information, some of the determined display information and the display sequence information that is ranked in the top order to the terminal, or may send all of the determined display information and the display sequence information that is determined to the terminal. The terminal receives the display information and the corresponding display sequence information, can sort the display information according to the display sequence information, and then displays the sorted display information in the query page of the application program.
The processing procedure of the above-mentioned geohash encoding is explained in detail as follows:
the geohash code is an address code, and can encode two-dimensional longitude and latitude into a one-dimensional character string (for example, the latitude of the technical center of Shenzhen nan mountain region Feiyada (hereinafter referred to as Feiyada) is 22.538, the longitude is 113.955, and the geohash code is ws101 n). And the geohash code corresponds to a rectangular area on the map.
The following encoding process is described below as a specific example.
The latitude interval of the earth is [ -90,90], the latitude of the femto is 22.538, and the latitude 22.538 can be approximately encoded by the following algorithm (the encoding process is shown in table 1):
in step one, the interval [ -90,90] is divided into [ -90, 0], [0,90], called left and right interval, and it can be determined 22.538 that belongs to the right interval [0,90], and the label is 1.
And step two, dividing the interval [0,90] into [0,45 ], and [45,90], wherein 22.538 can be determined to belong to the left interval [0,45), and the mark is 0.
Step three, recursion above process 22.538 always belongs to a certain interval [ a, b ]. The interval a, b is always shrinking with each iteration and is approaching 22.538 more and more.
Step four, if the given latitude x (22.538) belongs to the left interval, then 0 is recorded, if it belongs to the right interval, then 1 is recorded, thus a sequence 1010000000001101 is generated as the algorithm proceeds, and the length of the sequence is related to the number of divisions given.
TABLE 1
Latitude range Partition area 0 Dividing compartment 1 Latitude bit
(-90,90) (-90,0) (0,90) 1
(0,90) (0,45) (45,90) 0
(0,45) (0,22.5) (22.5,45) 1
(22.5,45) (22.5,33.75) (33.75,45) 0
(22.5,33.75) (22.5,28.125) (28.125,33.75) 0
(22.5,28.125) (22.5,25.3125) (25.3125,28.125) 0
(22.5,25.3125) (22.5,23.9063) (23.906,25.3125) 0
(22.5,23.9063) (22.5,23.2031) (23.2031,23.9063) 0
(22.5,23.2031) (22.5,22.8516) (22.8516,23.2031) 0
(22.5,22.8516) (22.5,22.6758) (22.6758,22.8516) 0
(22.5,22.6758) (22.5,22.5879) (22.5879,22.6758) 0
(22.5,22.5879) (22.5,22.5439) (22.5439,22.5879) 0
(22.5,22.5439) (22.5,22.5220) (22.5220,22.5439) 1
(22.5220,22.5439) (22.5220,22.5330) (22.5330,22.5439) 1
(22.5330,22.5439) (22.5330,22.5385) (22.5385,22.5439) 0
(22.5330,22.5385) (22.5330,22.5357) (22.5357,22.5385) 1
Similarly, the longitude interval of the earth is [ -180,180], the longitude of femto is 113.955, and the longitude 113.955 can be similarly approximation coded (coding process is shown in table 2), which is 1101000100001001:
TABLE 2
Figure BDA0000633581250000091
By the above calculation, the latitude-generated code is 1010000000001101, and the longitude-generated code is 1101000100001001. Longitude is set at even number, and latitude is set at odd number, then new string can be synthesized: 11100110000000100000000011010011.
the character string is subjected to base32 (a 32-bit encoding method) (i, l, o are removed by using numbers 0 to 9 and subtitles b to z for encoding), and 111001100000001000000000110100 is converted into decimal. The corresponding numbers are: 28, 24,1,0,1, 20. Then, the coding and decoding table (table 3) is looked up, and the corresponding base32 is coded as ws101n, and the coding is the geohash coding.
TABLE 3
Decimal number 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Base 32 0 1 2 3 4 5 6 7 8 9 b c d e f g
Decimal number 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
Base 32 h j k m n p q r s t u v w x y z
The precision of the geohash coding length can be controlled, see a comparison table of the coding length and the precision shown in table 4, when the coding length is 8, the precision is about 19 meters, when the coding length is 9, the precision is about 2 meters, and the coding length can be selected according to actual needs.
TABLE 4
Code length Latitude bits Longitude bits Error in latitude Error in longitude Distance error (km)
1 2 3 ±23 ±23 ±2500
2 5 5 ±2.8 ±5.6 ±630
3 7 8 ±0.70 ±0.7 ±78
4 10 10 ±0.087 ±0.18 ±20
5 12 13 ±0.022 ±0.022 ±2.4
6 15 15 ±0.0027 ±0.0055 ±0.61
7 17 18 ±0.00068 ±0.00068 ±0.076
8 20 20 ±0.000085 ±0.00017 ±0.019
For example, fig. 5a shows the range of the geohash code in the map corresponding to the longitude and latitude coordinates of the femto-tree with the coding length of 8 (the middle box), fig. 5b shows the range of the geohash code in the map corresponding to the longitude and latitude coordinates of the femto-tree with the coding length of 7 (the middle box), and fig. 5c shows the range of the geohash code in the map corresponding to the longitude and latitude coordinates of the femto-tree with the coding length of 6 (the middle box).
In the embodiment of the invention, an information acquisition request sent by a terminal is received, the information acquisition request carries current position information of the terminal, historical position information corresponding to an account currently logged in by the terminal is acquired, display information corresponding to the current position information and the historical position information is determined according to a corresponding relation between the pre-stored position information and the display information, and the determined display information is sent to the terminal. Therefore, more peripheral display information can be obtained together according to the current position and the historical position of the user, the user can obtain needed information more easily, the possibility that the user initiates information obtaining processing again is reduced, and therefore waste of network resources can be reduced.
EXAMPLE III
Based on the same technical concept, an embodiment of the present invention further provides an apparatus for sending presentation information, as shown in fig. 6, the apparatus includes:
a receiving module 610, configured to receive an information acquisition request sent by a terminal, where the information acquisition request carries current location information of the terminal;
an obtaining module 620, configured to obtain historical location information corresponding to an account currently logged in by the terminal;
a determining module 630, configured to determine, according to a correspondence between pre-stored location information and display information, display information corresponding to the current location information and the historical location information;
a sending module 640, configured to send the determined display information to the terminal.
Optionally, the obtaining module 620 is configured to:
acquiring position information uploaded by an account currently logged in by the terminal within a preset historical time period, and determining preset number of position information with the most repetition times in the acquired position information as historical position information corresponding to the account.
Optionally, the determining module 630 is configured to:
determining a geohash code of the current location information and a geohash code of the historical location information;
and determining the display information corresponding to the geohash code of the current position information and the geohash code of the historical position information according to the corresponding relation between the stored geohash code of the position information and the display information.
Optionally, the sending module 640 is configured to:
obtaining the pre-stored ranking weight of each piece of display information corresponding to the current position information and the historical position information;
determining the display sequence information of each piece of display information according to the sequencing weight of each piece of display information;
and sending the determined display information and the corresponding display sequence information to the terminal.
Optionally, the sending module 640 is further configured to:
before determining the display sequence information of each piece of display information according to the sorting weight of each piece of display information, obtaining display information simultaneously corresponding to a plurality of pieces of position information in the current position information and the historical position information from the display information corresponding to the current position information and the historical position information;
and increasing the sorting weight of the display information according to the number of the plurality of position information corresponding to the acquired display information.
Optionally, the sending module 640 is configured to:
and determining the display sequence information of each piece of display information according to the sequencing weight of each piece of display information, and the weight adjustment coefficient of the display information corresponding to the pre-stored current position information and the weight adjustment coefficient of the display information corresponding to the historical position information.
In the embodiment of the invention, an information acquisition request sent by a terminal is received, the information acquisition request carries current position information of the terminal, historical position information corresponding to an account currently logged in by the terminal is acquired, display information corresponding to the current position information and the historical position information is determined according to a corresponding relation between the pre-stored position information and the display information, and the determined display information is sent to the terminal. Therefore, more peripheral display information can be obtained together according to the current position and the historical position of the user, the user can obtain needed information more easily, the possibility that the user initiates information obtaining processing again is reduced, and therefore waste of network resources can be reduced.
It should be noted that: in the apparatus for sending display information according to the above embodiment, when sending display information, only the division of the above functional modules is used as an example, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the apparatus is divided into different functional modules to complete all or part of the above described functions. In addition, the apparatus for sending presentation information and the method for sending presentation information provided by the above embodiments belong to the same concept, and specific implementation processes thereof are detailed in the method embodiments and are not described herein again.
Example four
Fig. 7 is a schematic structural diagram of a server according to an embodiment of the present invention. The server 1900 may vary widely by configuration or performance and may include one or more Central Processing Units (CPUs) 1922 (e.g., one or more processors) and memory 1932, one or more storage media 1930 (e.g., one or more mass storage devices) storing applications 1942 or data 1944. Memory 1932 and storage medium 1930 can be, among other things, transient or persistent storage. The program stored in the storage medium 1930 may include one or more modules (not shown), each of which may include a series of instructions operating on a server. Still further, a central processor 1922 may be provided in communication with the storage medium 1930 to execute a series of instruction operations in the storage medium 1930 on the server 1900.
The server 1900 may also include one or more power supplies 1926, one or more wired or wireless network interfaces 1950, one or more input-output interfaces 1958, one or more keyboards 1956, and/or one or more operating systems 1941, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
Server 1900 may include memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors include instructions for:
receiving an information acquisition request sent by a terminal, wherein the information acquisition request carries current position information of the terminal;
acquiring historical position information corresponding to an account currently logged in by the terminal;
determining display information corresponding to the current position information and the historical position information according to a corresponding relation between pre-stored position information and the display information;
and sending the determined display information to the terminal.
Optionally, the obtaining of the historical location information corresponding to the account currently logged in by the terminal includes:
acquiring position information uploaded by an account currently logged in by the terminal within a preset historical time period, and determining preset number of position information with the most repetition times in the acquired position information as historical position information corresponding to the account.
Optionally, the determining, according to a correspondence between pre-stored location information and presentation information, presentation information corresponding to the current location information and the historical location information includes:
determining a geohash code of the current location information and a geohash code of the historical location information;
and determining the display information corresponding to the geohash code of the current position information and the geohash code of the historical position information according to the corresponding relation between the stored geohash code of the position information and the display information.
Optionally, the sending the determined display information to the terminal includes:
obtaining the pre-stored ranking weight of each piece of display information corresponding to the current position information and the historical position information;
determining the display sequence information of each piece of display information according to the sequencing weight of each piece of display information;
and sending the determined display information and the corresponding display sequence information to the terminal.
Optionally, before determining the display sequence information of each piece of display information according to the sorting weight of each piece of display information, the method further includes:
obtaining display information corresponding to a plurality of position information in the current position information and the historical position information at the same time from the display information corresponding to the current position information and the historical position information;
and increasing the sorting weight of the display information according to the number of the plurality of position information corresponding to the acquired display information.
Optionally, the determining, according to the ranking weight of each piece of display information, display order information of each piece of display information includes:
and determining the display sequence information of each piece of display information according to the sequencing weight of each piece of display information, and the weight adjustment coefficient of the display information corresponding to the pre-stored current position information and the weight adjustment coefficient of the display information corresponding to the historical position information.
In the embodiment of the invention, an information acquisition request sent by a terminal is received, the information acquisition request carries current position information of the terminal, historical position information corresponding to an account currently logged in by the terminal is acquired, display information corresponding to the current position information and the historical position information is determined according to a corresponding relation between the pre-stored position information and the display information, and the determined display information is sent to the terminal. Therefore, more peripheral display information can be obtained together according to the current position and the historical position of the user, the user can obtain needed information more easily, the possibility that the user initiates information obtaining processing again is reduced, and therefore waste of network resources can be reduced.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (5)

1. A method for sending presence information, the method comprising:
receiving an information acquisition request sent by a terminal, wherein the information acquisition request carries current position information of the terminal;
acquiring position information uploaded by an account currently logged in by the terminal within a preset historical time period, determining a geohash code of the position information uploaded within the preset historical time period, and determining a preset number of geohash codes corresponding to the maximum position information as the geohash code of the historical position information, wherein the geohash code corresponds to a rectangular area, and the length of the geohash code is in negative correlation with the size of the rectangular area corresponding to the geohash code;
determining a geohash code of the current location information;
determining the display information corresponding to the geohash code of the current position information and the geohash code of the historical position information according to the corresponding relation between the stored geohash code of the position information and the display information;
acquiring the sorting weight of each piece of display information corresponding to the pre-stored current position information and the pre-stored historical position information, wherein the sorting weights of different types of display information are set according to different methods;
obtaining display information corresponding to a plurality of position information in the current position information and the historical position information at the same time from the display information corresponding to the current position information and the historical position information;
increasing the sorting weight of the display information according to the number of the plurality of position information corresponding to the acquired display information;
determining the display sequence information of each piece of display information according to the sequencing weight of each piece of display information;
and sending the determined display information and the corresponding display sequence information to the terminal.
2. The method according to claim 1, wherein the determining the presentation order information of each presentation information according to the ranking weight of each presentation information comprises:
and determining the display sequence information of each piece of display information according to the sequencing weight of each piece of display information, and the weight adjustment coefficient of the display information corresponding to the pre-stored current position information and the weight adjustment coefficient of the display information corresponding to the historical position information.
3. An apparatus for transmitting presentation information, the apparatus comprising:
the receiving module is used for receiving an information acquisition request sent by a terminal, wherein the information acquisition request carries current position information of the terminal;
the terminal comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring the position information uploaded by an account currently logged in by the terminal in a preset historical time period, determining the geohash codes of the position information uploaded in the preset historical time period, and determining the geohash codes corresponding to the position information with the maximum preset number as the geohash codes of the historical position information, wherein the geohash codes correspond to a rectangular area, and the length of the geohash codes is in negative correlation with the size of the rectangular area corresponding to the geohash codes;
a determining module, configured to determine a geohash code of the current location information;
determining the display information corresponding to the geohash code of the current position information and the geohash code of the historical position information according to the corresponding relation between the stored geohash code of the position information and the display information;
the sending module is used for acquiring the pre-stored ranking weight of each piece of display information corresponding to the current position information and the historical position information, wherein the ranking weights of different types of display information are set according to different methods;
obtaining display information corresponding to a plurality of position information in the current position information and the historical position information at the same time from the display information corresponding to the current position information and the historical position information;
increasing the sorting weight of the display information according to the number of the plurality of position information corresponding to the acquired display information;
determining the display sequence information of each piece of display information according to the sequencing weight of each piece of display information;
and sending the determined display information and the corresponding display sequence information to the terminal.
4. The apparatus of claim 3, wherein the sending module is configured to:
and determining the display sequence information of each piece of display information according to the sequencing weight of each piece of display information, and the weight adjustment coefficient of the display information corresponding to the pre-stored current position information and the weight adjustment coefficient of the display information corresponding to the historical position information.
5. A computer-readable storage medium having stored thereon at least one instruction, which is loaded and executed by the processor, to implement the method of sending a presentation information according to any one of claims 1 to 2.
CN201410775592.4A 2014-12-15 2014-12-15 Method and device for sending display information Active CN104580379B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410775592.4A CN104580379B (en) 2014-12-15 2014-12-15 Method and device for sending display information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410775592.4A CN104580379B (en) 2014-12-15 2014-12-15 Method and device for sending display information

Publications (2)

Publication Number Publication Date
CN104580379A CN104580379A (en) 2015-04-29
CN104580379B true CN104580379B (en) 2021-03-19

Family

ID=53095537

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410775592.4A Active CN104580379B (en) 2014-12-15 2014-12-15 Method and device for sending display information

Country Status (1)

Country Link
CN (1) CN104580379B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104918327B (en) * 2015-06-08 2018-05-18 浙江每日互动网络科技股份有限公司 A kind of method and system in real-time detection mobile terminal geographical location
CN105050039B (en) * 2015-06-16 2018-09-11 浙江每日互动网络科技股份有限公司 One kind carrying out mobile terminal real-time detecting method and system based on wireless signal
CN106251166A (en) * 2016-04-05 2016-12-21 上海驴徒电子商务有限公司 Method and system are recommended by businessman

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101917665A (en) * 2010-08-23 2010-12-15 宇龙计算机通信科技(深圳)有限公司 Information pushing method and system
CN102215452A (en) * 2011-05-30 2011-10-12 宇龙计算机通信科技(深圳)有限公司 Information push method, server and terminal based on geographical position
CN103052021A (en) * 2011-10-11 2013-04-17 北京千橡网景科技发展有限公司 Method and equipment for providing location-based service
CN103905978A (en) * 2012-12-27 2014-07-02 中国电信股份有限公司 Information pushing method based on position, pushing device and network

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3101561A1 (en) * 2012-06-22 2016-12-07 Google, Inc. Ranking nearby destinations based on visit likelihoods and predicting future visits to places from location history

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101917665A (en) * 2010-08-23 2010-12-15 宇龙计算机通信科技(深圳)有限公司 Information pushing method and system
CN102215452A (en) * 2011-05-30 2011-10-12 宇龙计算机通信科技(深圳)有限公司 Information push method, server and terminal based on geographical position
CN103052021A (en) * 2011-10-11 2013-04-17 北京千橡网景科技发展有限公司 Method and equipment for providing location-based service
CN103905978A (en) * 2012-12-27 2014-07-02 中国电信股份有限公司 Information pushing method based on position, pushing device and network

Also Published As

Publication number Publication date
CN104580379A (en) 2015-04-29

Similar Documents

Publication Publication Date Title
CN110008293B (en) Geographic position query method and device
CN104731917B (en) A kind of recommendation method and device
CN100461178C (en) Range query and data stream processing methods and apparatus
KR102121361B1 (en) Method and device for identifying the type of geographic location where the user is located
CN108712519B (en) Method and device for positioning IP address and storage medium
CN107092623B (en) Interest point query method and device
WO2019072092A1 (en) Ip address positioning method and apparatus, electronic device, and storage medium
CN105187237A (en) Method and device for searching associated user identifications
CN108182253B (en) Method and apparatus for generating information
CN107885873B (en) Method and apparatus for outputting information
CN104143005A (en) Related searching system and method
US10630799B2 (en) Method and apparatus for pushing information
CN104834721A (en) Search processing method and device based on positions
CN111274341A (en) Site selection method and device for network points
JP2018517193A (en) Computerized system and method for performing location-based search
CN104320848B (en) The system and method for indoor positioning is realized based on cloud computing
CN104580379B (en) Method and device for sending display information
CN103198135A (en) Microblog registration data online acquiring method for grid division of geographic regions
CN108280183B (en) Information pushing system based on big data matching and GPS positioning
CN110209748B (en) Method and apparatus for indexing geofences
JP2011141682A (en) Local information retrieval server and local information retrieval method
US20100161507A1 (en) Gps rating system
CN110427574B (en) Route similarity determination method, device, equipment and medium
CN111080326A (en) Equipment after-sale data monitoring method, device and system and air conditioner after-sale monitoring system
CN110895591B (en) Method and device for positioning self-lifting point

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant