WO2017067384A1 - 一种查询近距离对象的方法和装置 - Google Patents

一种查询近距离对象的方法和装置 Download PDF

Info

Publication number
WO2017067384A1
WO2017067384A1 PCT/CN2016/101480 CN2016101480W WO2017067384A1 WO 2017067384 A1 WO2017067384 A1 WO 2017067384A1 CN 2016101480 W CN2016101480 W CN 2016101480W WO 2017067384 A1 WO2017067384 A1 WO 2017067384A1
Authority
WO
WIPO (PCT)
Prior art keywords
objects
distance range
displayed
distance
range
Prior art date
Application number
PCT/CN2016/101480
Other languages
English (en)
French (fr)
Inventor
田元
李霖
Original Assignee
腾讯科技(深圳)有限公司
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 腾讯科技(深圳)有限公司 filed Critical 腾讯科技(深圳)有限公司
Priority to JP2017560968A priority Critical patent/JP6557361B2/ja
Priority to EP16856817.8A priority patent/EP3367707B1/en
Publication of WO2017067384A1 publication Critical patent/WO2017067384A1/zh
Priority to US15/703,603 priority patent/US10278038B2/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/20Services signaling; Auxiliary data signalling, i.e. transmitting data via a non-traffic channel
    • H04W4/21Services signaling; Auxiliary data signalling, i.e. transmitting data via a non-traffic channel for social networking applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/01Social networking
    • 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/51Discovery or management thereof, e.g. service location protocol [SLP] or web services
    • 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
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/029Location-based management or tracking services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/005Discovery of network devices, e.g. terminals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9537Spatial or temporal dependent retrieval, e.g. spatiotemporal queries
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • H04L67/306User profiles

Definitions

  • the present disclosure relates to the field of mobile terminal technologies, and in particular, to a method and apparatus for querying a close-range object.
  • the social application has added the Query Near Object function, which allows users to find nearby objects, such as nearby accounts, nearby groups, or nearby activities.
  • the user's terminal displays a certain number of account options for the user to view, wherein the displayed account
  • the option is to arrange the distance between the terminal and the target terminal that are registered by the corresponding account in the near and far directions, and the user can select the account that he is interested in and communicate with the selected account.
  • an embodiment of the present disclosure provides a method for querying a close-range object. Law and equipment.
  • the technical solution is as follows:
  • a method for querying a close object comprising:
  • the objects to be displayed are randomly selected from the objects corresponding to each distance range, and the objects to be displayed are displayed to the target terminal.
  • an apparatus for querying a close object comprising:
  • a receiving module configured to receive a short-range object query request that is sent by the target terminal and carries location information of the target terminal
  • a determining module configured to determine, according to location information of the target terminal, location information of a pre-stored object for short-range object query, and a plurality of preset distance ranges, respectively, determining a distance from the target terminal
  • the objects in the range are the objects corresponding to each distance range
  • the display module is configured to randomly select an object to be displayed among the objects corresponding to each distance range, and display the object to be displayed to the target terminal.
  • a server comprising:
  • One or more processors are One or more processors.
  • the memory stores one or more programs, the one or more programs being configured to be executed by the one or more processors, the one or more programs including instructions for:
  • the objects to be displayed are randomly selected from the objects corresponding to each distance range, and the objects to be displayed are displayed to the target terminal.
  • the short-range object query request sent by the target terminal is received, and the location information of the target terminal is obtained, and the pre-stored object for short-distance object is stored according to the location information of the target terminal.
  • the position information of the object to be inquired, and the plurality of preset distance ranges respectively determine the objects within the distance range from the target terminal, and obtain the objects corresponding to each distance range, and the objects corresponding to each distance range respectively Medium, randomly selecting an object to be displayed, and displaying the object to be displayed to the target terminal.
  • FIG. 1 is a flowchart of a method for querying a close distance object according to an embodiment of the present disclosure
  • FIG. 2 is a schematic diagram of a scenario provided by an embodiment of the present disclosure
  • FIG. 3 is a schematic diagram of acquiring an object corresponding to each distance range according to an embodiment of the present disclosure
  • FIG. 4 is a schematic diagram of randomly selecting an object to be displayed corresponding to each distance range according to an embodiment of the present disclosure
  • FIG. 5 is a schematic structural diagram of an apparatus for querying a close distance object according to an embodiment of the present disclosure
  • FIG. 6 is a schematic structural diagram of an apparatus for querying a close distance object according to an embodiment of the present disclosure
  • FIG. 7 is a schematic structural diagram of an apparatus for querying a close distance object according to an embodiment of the present disclosure.
  • FIG. 8 is a schematic structural diagram of an apparatus for querying a close distance object according to an embodiment of the present disclosure
  • FIG. 9 is a schematic structural diagram of an apparatus for querying a close distance object according to an embodiment of the present disclosure.
  • FIG. 10 is a schematic structural diagram of a server according to an embodiment of the present disclosure.
  • the embodiment of the present disclosure provides a method for querying a close-range object. As shown in FIG. 1 , the processing flow of the method may include the following steps:
  • Step 101 Receive a short-range object query request sent by the target terminal, and obtain a location of the target terminal. information.
  • Step 102 Determine, according to the location information of the target terminal, the pre-stored location information of the object for the close-range object query, and the plurality of preset distance ranges, respectively, the objects within the distance range from the target terminal are determined. Get the object corresponding to each distance range.
  • Step 103 randomly select an object to be displayed among the objects corresponding to each distance range, and display the object to be displayed to the target terminal.
  • the short-range object query request sent by the target terminal is received, and the location information of the target terminal is obtained, according to the location information of the target terminal, the pre-stored location information of the object for the close-range object query, and the like.
  • the preset distance ranges respectively determine the objects within the distance range from the target terminal, and obtain the objects corresponding to each distance range, and randomly select the objects to be displayed in the objects corresponding to each distance range, And displaying the object to be displayed to the target terminal. In this way, the randomness of the server when displaying the close-range object is large, which reduces the repeatability of the object that is repeatedly queried, and further, the effectiveness of the function of querying the close-range object can be enhanced.
  • the embodiment of the present disclosure provides a method for querying a close-range object, and the execution subject of the method is a server.
  • the server may be a server for querying a close-range object, and may be a background server having an application for querying a close-range object function.
  • the query close-range object function may be a “nearby person” function in a social-like application.
  • the corresponding object is the account, and the server can be a background server for the social application.
  • the server may be provided with a processor, a memory, and a transceiver.
  • the processor may be used to query a related process of a close-range object, and the memory may be used to store data and data generated in the following processing, and the transceiver may use Receive and send data.
  • Step 101 Receive a short-range object query request sent by the target terminal, and acquire location information of the target terminal.
  • the near-distance object function can be queried in the application to query nearby people, nearby activities, or nearby groups.
  • the user can search for a user corresponding to a terminal that is very close to the user's terminal (which may be referred to as a target terminal) through a "nearby person" function in the social application. And communicate with it.
  • the social application can be set with a button corresponding to the function of querying the close object (which can be called a close object query button).
  • the user can click the close object query button in the application.
  • the terminal may be triggered to generate a short-range object query request, and the terminal may obtain the address of the pre-stored server and the current location information, and then send a close-range object query request to the server, where the near-range object query request may carry the target terminal.
  • Location information As shown in FIG. 2, the server may receive a short-range object query request sent by the target terminal, and parse the device to obtain location information of the target terminal carried therein.
  • the solution may also be provided with a location query server, and the location query server may be a server dedicated to recording the location information of the terminal, so that when the user clicks the close object query button in the application, the terminal may be pre-stored according to the The address of the server, sending a close object query request to the server. After receiving the close object query request sent by the target terminal, the server may obtain the location information of the target terminal from the location query server.
  • Step 102 Determine, according to the location information of the target terminal, the pre-stored location information of the object for the close-range object query, and the plurality of preset distance ranges, respectively, the objects within the distance range from the target terminal are determined. Get the object corresponding to each distance range.
  • the object may be an account, an activity, a chat group.
  • the object used for the close object query may be an account registered in the terminal that has sent the close object query request to the server, and is used for the close range.
  • the location information of the object queried by the object may be location information of the terminal that has sent the proximity object query request to the server.
  • the object used for the close object query may be the creation activity.
  • the activity of the terminal sent by the terminal registered by the account of the chat group to the server or the group name of the chat group, and the location information of the object used for the close object query may be the location information of the terminal created when the chat group is created, or the user sets the terminal through the terminal.
  • the location of the event may be an account registered in the terminal that has sent the close object query request to the server, and is used for the close range.
  • the location information of the object queried by the object may be location information of the terminal that has sent the proximity object query request to the server.
  • the object used for the close object query may be the creation activity.
  • the server may acquire pre-stored location information of the object for the close-range object query, and multiple presets.
  • a range of distances wherein the plurality of preset distance ranges may be a range of distances between the object and the target terminal, and the distance segment from zero to a certain preset value may be divided into a plurality of consecutive distance ranges (which may be equally spaced, It can also be randomly divided.
  • the preset value can be 3 km
  • the plurality of distance ranges can be as follows: [0, 0.3) km, [0.3, 0.9) km, [0.9, 1.8) km, [1.8, 3) km.
  • the server may be based on the acquired location information of the target terminal and the location information of the object for the close object query
  • the distance between the object for the close object query and the target terminal stored in advance is calculated, and the distance range of each distance calculated is determined, thereby obtaining an object corresponding to each distance range.
  • the server may also filter the activity corresponding to each distance range according to the difference between the event holding time and the current time.
  • the processing of step 102 may be as follows: for the close object query.
  • the object is an activity; according to the location information, the pre-stored location information of the activity for the close object query, and the plurality of preset distance ranges, the activity at which the difference between the event holding time and the current time is less than the preset time threshold In the activity, the distance from the target terminal is determined in each distance range, and the activity corresponding to each distance range is obtained.
  • the server may pre-store a duration threshold for screening activities.
  • the server queries the location information of the target terminal carried in the request according to the acquired close object, the pre-stored location information of the object for the close object query, and the plurality of pre- The distance range is set, and after determining the activity corresponding to each distance range, the event holding time corresponding to all activities stored in advance can be obtained, and then the current time is subtracted from each event holding time to obtain the time difference corresponding to each activity. a value, so that the difference between the obtained time is compared with a preset duration threshold, and the difference between the event holding time and the current time may be selected from each activity corresponding to each determined distance range to be less than a preset duration.
  • Threshold activity as an activity for each distance range. In this way, the activity time of each activity corresponding to the distance range will be closer to the current time, which is beneficial for the user to judge whether to register the activity according to his or her own time situation (the registration activity can be regarded as a kind of communication).
  • the server may also filter the activity corresponding to each distance range according to the difference between the time when the short-range object query request was sent last time and the current time.
  • the processing of step 102 may be as follows: : the object for the close object query is an account; according to the location information, the pre-stored location information of the terminal registered for the account for the close object query, and a plurality of preset distance ranges, currently registered and last time In the account that sends the short-distance object query request and the current time difference is less than the preset duration threshold, respectively determine the account of the distance between the registered terminal and the target terminal in each distance range, and obtain each distance range. Corresponding account.
  • the server may pre-store a duration threshold for screening accounts.
  • the server may retain the location information of the terminal for a period of time, where the server may receive the location information sent by the terminal. After clearing the message, delete the location information of the locally stored terminal, and the server can also The location information of the terminal is automatically deleted after the storage time of the location information reaches a certain preset duration.
  • the server may also obtain the location information of the terminal that is currently stored in the server for the short-distance object query, and then calculate the pre-stored terminal and The distance of the target terminal determines the distance range of each distance calculated, so that the account corresponding to each distance range can be obtained.
  • the server may also obtain the account in which the login is being made and the time when the closest object query request is sent, and then send the current time and the latest acquisition of the close object query request. The time is subtracted to get the difference in the time corresponding to each account.
  • the server may compare the obtained time difference with the preset duration threshold, and may select the time and current time of the last time the close object query request is sent from each account corresponding to each distance range determined according to the location information.
  • An account whose time difference is less than the preset duration threshold is used as an account corresponding to each distance range. In this way, the account corresponding to each distance range is the account that has recently sent the close object query request and is currently in the login state, which can improve the success rate of communication between the user and others.
  • Step 103 randomly select an object to be displayed among the objects corresponding to each distance range, and display the object to be displayed to the target terminal.
  • the object to be displayed may be an object selected by the server for displaying to the target terminal.
  • the server may randomly select a certain number of objects to be displayed in the objects corresponding to each distance range, and select the selected objects to be displayed.
  • the object is sent to the target terminal. Specifically, if the object to be displayed is an account, the server may send the account data of the account, nickname, signature, etc. of the account to be displayed to the target terminal for display; if the object to be displayed is an activity, the server may select the theme of the activity.
  • the event information such as time, location, and the like is sent to the target terminal for display; if the object to be displayed is a chat group, the server may send the group name, the number of people, the group owner, and the like information of the chat group to the target terminal for display.
  • the number of objects to be displayed selected in each distance range may be determined according to weights corresponding to each distance range.
  • the processing may be as follows: obtaining weights corresponding to each distance range; The weight corresponding to the distance range and the total number of preset object displays, determining the number of objects to be displayed corresponding to each distance range; and corresponding to each distance range according to the number of objects to be displayed corresponding to each distance range In the object, randomly select the object to be displayed.
  • the server may pre-store the total number of objects to be displayed (ie, the total number of preset object displays), and after determining the objects corresponding to each distance range, each distance may be acquired.
  • the weight corresponding to the range can then be multiplied by the weight of each distance range and the total number of preset object displays, so that the number of objects to be displayed corresponding to each distance range can be determined.
  • the server may randomly select the objects to be displayed corresponding to the number of objects to be displayed corresponding to the distance range among the objects corresponding to the distance range.
  • the weight corresponding to each distance range obtained may be a weight set in advance in the server.
  • the weight corresponding to each distance range may be set according to a ratio of the number of objects selected by each account in the account library to the number of objects in the distance range, and correspondingly,
  • the processing procedure may be as follows: for each distance range, obtain the number of objects in the account library within the preset historical duration, the number of objects queried by the close object query request, and the close object query within the distance range The number of objects selected in the requested object; for each distance range, the ratio of the number of objects selected within the distance range to the number of objects queried within the distance range is determined; corresponding to each distance range The scale value determines the weight corresponding to each distance range.
  • the server may obtain the number of objects queried when each account in the account library sends a close object query request within a preset historical time period, and the object that each account queries within the distance range.
  • the number of objects selected wherein the number of objects queried is the number of objects to be displayed selected by the server when sending a close object query request in the past time, and the number of selected objects is the query The number of objects to which the object is communicated.
  • the number of objects selected is the number of accounts in the queried account that communicate with the user's account.
  • the number of selected objects is the number of activities registered by the user in the queried activity, or the number of chat groups requested by the user in the queried chat group.
  • the server may divide the number of objects selected in each distance range by the number of objects to be queried, thereby obtaining a scale value corresponding to each distance range, where The higher the scale value, the easier it is for the user to communicate with users within that distance.
  • the server may divide the scale value corresponding to each distance range by the sum of the scale values corresponding to all the distance ranges, and obtain the weight corresponding to the distance range.
  • the scale value corresponding to the distance range is larger, and the distance range corresponds to The larger the weight, the more the number of objects to be displayed randomly selected within the distance range. In this way, the weight of the object to be displayed can be reduced when the user sends the close object query request multiple times.
  • the renaturation can also improve the success rate of communication between the user and the randomly selected object to be displayed.
  • the weight corresponding to each distance range may be set according to a ratio of the number of objects selected in each distance range and the number of objects queried within the distance range of the target account registered in the target terminal.
  • the processing may be as follows: for each distance range, obtaining the target account registered in the target terminal within the preset historical duration, the number of objects queried by the close object query request, and within the distance range The number of objects selected in the queryed object by the close-range object query request; for each distance range, determining the ratio of the number of objects selected within the distance range to the number of objects queried within the distance range; The distance value corresponding to the distance range determines the weight corresponding to each distance range.
  • the server may obtain the number of objects that are queried when the target account sends the close object query request within the preset historical time period, and the object selected by the target account within the distance range.
  • the number of objects to be queried is the number of objects to be displayed selected by the server when sending a close object query request in the past time.
  • the number of selected objects is the same as the queried object.
  • the number of objects to be communicated, the function of querying the close distance object corresponds to the person in the vicinity of the query, the number of selected objects is the number of accounts in the queried account that communicate with the user's account, and the function of querying the close distance object corresponds.
  • the number of selected objects is the number of activities registered by the user in the queried activity, or the number of chat groups requested by the user in the queried chat group.
  • the server may divide the number of objects selected in each distance range by the number of objects to be queried, thereby obtaining a scale value corresponding to each distance range, wherein The higher the ratio value, the easier it is for the target user to communicate with users within that distance.
  • the server may divide the scale value corresponding to each distance range by the sum of the scale values corresponding to all the distance ranges, and obtain the weight corresponding to the distance range.
  • the scale value corresponding to the distance range is larger, and the distance range corresponds to The larger the weight, the more the number of objects to be displayed randomly selected within the distance range. In this way, the repeatability of the object to be displayed can be reduced when the user sends the close object query request multiple times, and the success rate of the communication between the user and the randomly selected object to be displayed can be improved.
  • an equal number of objects to be displayed may be selected in each distance range.
  • the processing may be as follows: based on the preset total number of objects displayed, respectively, in each object corresponding to each distance range, random Select the same number of objects to display.
  • the server may pre-store the total number of objects to be displayed to be selected (ie, pre- Set the total number of objects to be displayed. You can divide the total number of preset object displays by the number of preset distance ranges to get the number corresponding to each distance range. The server can randomly select an equal number of objects to be displayed among the objects corresponding to each distance range obtained by the query.
  • the server may display the target distance to the target terminal according to the current distance between the selected object to be displayed and the target terminal, and correspondingly, the processing may be as follows: according to the selected object to be displayed The object to be displayed is presented to the target terminal in an order of small to large from the current distance between the target terminals.
  • the server may select the object selected within each distance range according to the current distance between the selected object to be displayed and the target terminal from small to large. Arrange in order.
  • the server may display the target terminal according to the distance corresponding to the preset multiple distance ranges.
  • the feedback message may be sent to the target terminal, where the feedback message carries the identifier of the selected object to be displayed.
  • the terminal can receive the feedback message sent by the server, parse it, obtain the identifier of the object to be displayed carried in the terminal, and display the identifier of the object to be displayed.
  • the server determines the number of objects to be displayed corresponding to each distance range, and randomly selects the object to be displayed within each distance range, if the object corresponding to a certain distance range is smaller than the number of objects to be displayed, The server can select all objects corresponding to the distance range. After the corresponding object to be displayed is selected in each distance range, the total number of preset object displays can be subtracted from the total number of objects to be displayed, and the number of objects to be displayed still needs to be selected. The server may randomly select, among all the objects corresponding to the objects to be displayed, which are randomly selected, the number of objects to be displayed that are to be displayed, and the objects to be displayed.
  • the server may also acquire an object corresponding to the distance of the target terminal from the distance outside the preset distance range, and may randomly select the object to be displayed that is to be selected among the objects corresponding to the distance outside the preset distance range.
  • the number of objects to be displayed for example, the distance corresponding to the preset distance range is 0-20 km, the total number of preset object displays is 100, and the total number of objects to be displayed selected in the object corresponding to 0-20 km is 80. At this time, 20 objects to be displayed may be randomly selected from objects corresponding to distances greater than 20 km.
  • the server may randomly select objects to be displayed in multiple distance ranges according to the corresponding distance from small to large, when a certain distance range The corresponding object is smaller than the number of objects to be displayed, and all objects corresponding to the distance range may be selected, and the number of objects to be displayed corresponding to the distance range corresponding to the distance range is corresponding to the distance range.
  • the difference between the number of objects is added to the next distance range, that is, for the first distance range of the plurality of preset distance ranges, according to the number of objects to be displayed corresponding to each distance range, Among the objects corresponding to a range of distances, the objects to be displayed are randomly selected; for each of the other distance ranges outside the first distance range of the plurality of preset distance ranges, the objects to be displayed corresponding to the other distance ranges are The number, and the difference between the number of objects to be displayed and the number of objects corresponding to the previous distance range of other distance ranges, randomly select an account to be displayed, for example, a plurality of preset distance ranges are [0, 0.1) km, respectively.
  • the number of objects to be displayed corresponding to each distance range is 40, 30, 30, respectively, and the number of objects corresponding to each distance range is 35, 40, 50 respectively.
  • the first distance range is [0,0.1) km
  • the number of objects to be displayed selected in the distance range is 35
  • the objects to be displayed are randomly selected in the second distance range [0.1, 0.8) km
  • the number is 35, in The number of the object to be displayed three distance range [0.8,2) km 30 that is randomly selected.
  • the user may actively block some objects, and the server may not display the objects.
  • the corresponding processing may be as follows: receiving an object shielding request sent by the target terminal and carrying the object blacklist, and the object blacklist includes at least one object.
  • the objects to be displayed are randomly selected from the objects corresponding to the at least one object corresponding to each distance range, and the objects to be displayed are displayed to the target terminal.
  • the object blacklist when the user queries the nearby object by the application to query the nearby person, the nearby activity, or the nearby group, the object blacklist may be set, and at least one object that the user wants to block may be recorded in the object blacklist.
  • the user can open the application, and the button corresponding to the short-distance object shielding function can be set in the application, and the user can click the button, and the terminal can display the object blacklist, and the user can input the desired object in the blacklist.
  • the name of the object to be masked, the name can be the nickname of the account, the subject of the activity, or the group name of the chat group.
  • the terminal After the user input is completed and the confirmation button is clicked, the terminal can be triggered to send the object shielding with the object blacklist to the server.
  • the request, the object blacklist can include at least one object.
  • the server may acquire at least one object in the object blacklist, and then, after obtaining the object corresponding to each distance range, the server may respectively correspond to each of the distance ranges, except at least one of the foregoing In the object other than the object, a certain number of objects to be displayed are randomly selected, and the selected object to be displayed is sent to the target terminal.
  • each object may be provided with a corresponding mask button.
  • the terminal may automatically press the mask.
  • the object corresponding to the key is added to the object blacklist, so that the next time the terminal sends a close object query request to the server, the object mask request carrying the object blacklist may be sent first.
  • the short-range object query request sent by the target terminal is received, and the location information of the target terminal is obtained, according to the location information of the target terminal, the pre-stored location information of the object for the close-range object query, and the like.
  • the preset distance ranges respectively determine the objects within the distance range from the target terminal, and obtain the objects corresponding to each distance range, and randomly select the objects to be displayed in the objects corresponding to each distance range, And displaying the object to be displayed to the target terminal. In this way, the randomness of the server when displaying the close-range object is large, which reduces the repeatability of the object that is repeatedly queried, and further, the effectiveness of the function of querying the close-range object can be enhanced.
  • the embodiment of the present disclosure further provides a device for querying a close-range object.
  • the device includes:
  • the first receiving module 510 is configured to receive a short-range object query request sent by the target terminal, and acquire location information of the target terminal.
  • a determining module 520 configured to determine, according to location information of the target terminal, location information of a pre-stored object for short-range object query, and a plurality of preset distance ranges, respectively, determining a distance from the target terminal Objects within a range of distances, get the object corresponding to each distance range;
  • the display module 530 is configured to randomly select an object to be displayed among the objects corresponding to each distance range, and display the object to be displayed to the target terminal.
  • the object for the close object query is an activity
  • the determining module 520 is configured to:
  • the pre-stored location information of the activity for the close-range object query and the plurality of preset distance ranges, in the activity that the difference between the event holding time and the current time is less than the preset duration threshold, respectively
  • An activity that is within a range of distances from the target terminal is determined, and an activity corresponding to each distance range is obtained.
  • the object used for the close object query is an account
  • the determining module 520 is configured to:
  • the location information of the terminal registered by the account for the proximity object query stored in advance, and the plurality of preset distance ranges, the current login and the last time sending the close distance pair In the account that the difference between the time of the query request and the current time is less than the preset time threshold, respectively determine the account whose distance between the registered terminal and the target terminal is within each distance range, and obtain an account corresponding to each distance range. .
  • the display module 530 includes:
  • the obtaining submodule 5301 is configured to obtain a weight corresponding to each distance range
  • a determining sub-module 5302 configured to determine, according to the weight corresponding to each distance range and the preset total number of object displays, the number of objects to be displayed corresponding to each distance range;
  • the sub-module 5303 is configured to randomly select an object to be displayed among the objects corresponding to each distance range according to the number of objects to be displayed corresponding to each distance range.
  • the obtaining submodule 5301 includes:
  • the first obtaining unit 53011 is configured to obtain, for each distance range, the number of objects that are queried by the close object query request within the distance range of each account in the account library, and the distance at the distance Within the scope, the number of objects selected in the object that is queried by the close object query request;
  • the first determining unit 53012 is configured to determine, for each distance range, a ratio of the number of objects selected within the distance range to the number of objects queried within the distance range;
  • the second determining unit 53013 is configured to determine, according to the proportional value corresponding to each distance range, a weight corresponding to each distance range.
  • the obtaining submodule 5301 includes:
  • the second obtaining unit 53014 is configured to acquire, for each distance range, the number of objects that are queried by the close object query request within the distance range of the target account registered in the target terminal within the preset history duration, and Within the distance range, the number of objects selected in the queryed object by the close object query request;
  • a third determining unit 53015 configured to determine, for each distance range, a ratio of the number of objects selected within the distance range to the number of objects queried within the distance range;
  • the fourth determining unit 53016 is configured to determine, according to the scale value corresponding to each distance range, a weight corresponding to each distance range.
  • the display module 530 is configured to:
  • an equal number of objects to be displayed are randomly selected among the objects corresponding to each distance range.
  • the display module 530 is configured to:
  • the apparatus further includes:
  • the second receiving module 540 is configured to receive an object screening request that is sent by the target terminal and that carries the object blacklist, where the object blacklist includes at least one object.
  • the display module 530 is configured to:
  • the objects to be displayed are randomly selected from the objects corresponding to the at least one object corresponding to each distance range, and the objects to be displayed are displayed to the target terminal.
  • the short-range object query request sent by the target terminal is received, and the location information of the target terminal is obtained, according to the location information of the target terminal, the pre-stored location information of the object for the close-range object query, and the like.
  • the preset distance ranges respectively determine the objects within the distance range from the target terminal, and obtain the objects corresponding to each distance range, and randomly select the objects to be displayed in the objects corresponding to each distance range, And displaying the object to be displayed to the target terminal. In this way, the randomness of the server when displaying the close-range object is large, which reduces the repeatability of the object that is repeatedly queried, and further, the effectiveness of the function of querying the close-range object can be enhanced.
  • the device for querying a close-range object provided by the foregoing embodiment is only illustrated by the division of each functional module when querying a close-range object.
  • the function may be assigned differently according to requirements.
  • the function module is completed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.
  • the device for querying a close-range object and the method for querying a close-range object provided by the foregoing embodiments are in the same concept, and the specific implementation process is described in detail in the method embodiment, and details are not described herein again.
  • FIG. 10 is a schematic structural diagram of a server according to an embodiment of the present disclosure.
  • the server 1900 can vary considerably depending on configuration or performance, and can include one or more central processing units (CPUs) 1922 (eg, one or more processors) and memory 1932, one or one The above storage medium 1942 or storage medium 1930 of data 1944 (eg, one or one storage device in Shanghai).
  • the memory 1932 and the storage medium 1930 may be short-term storage or persistent storage.
  • the program stored on the storage medium 1930 may include one or more modules. Blocks (not shown), each module can include a series of instruction operations on the statistics server.
  • central processor 1922 can be configured to communicate with storage medium 1930, which performs a series of instruction operations in storage medium 1930.
  • Server 1900 may also include one or more power sources 1926, one or more wired or wireless network interfaces 1950, one or more input and output interfaces 1958, one or more keyboards 1956, and/or one or more operating systems 1941.
  • power sources 1926 For example, Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
  • Server 1900 can include a memory, and one or more programs, wherein one or more programs are stored in the memory, and configured to be executed by one or more processors, the one or more programs included for performing the above A method of querying a close object as described in various embodiments.
  • non-transitory computer readable storage medium comprising instructions, such as a memory comprising instructions executable by a processor of a mobile terminal to perform the above method of querying a close object.
  • the non-transitory computer readable storage medium may be a ROM (Read-Only Memory), a RAM (Random-Access Memory), or a CD-ROM (Compact Disc Read-Only Memory, CD-ROM, tape, floppy disk and optical data storage devices.
  • a person skilled in the art may understand that all or part of the steps of implementing the above embodiments may be completed by hardware, or may be instructed by a program to execute related hardware, and the program may be stored in a computer readable storage medium.
  • the storage medium mentioned may be a read only memory, a magnetic disk or an optical disk or the like.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • Marketing (AREA)
  • Tourism & Hospitality (AREA)
  • Health & Medical Sciences (AREA)
  • Economics (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Resources & Organizations (AREA)
  • Theoretical Computer Science (AREA)
  • Primary Health Care (AREA)
  • Strategic Management (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • Databases & Information Systems (AREA)
  • Computing Systems (AREA)
  • Telephonic Communication Services (AREA)
  • Information Transfer Between Computers (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

本公开公开了一种查询近距离对象的方法和装置,属于移动终端技术领域。所述方法包括:接收目标终端发送的近距离对象查询请求,获取所述目标终端的位置信息;根据所述目标终端的位置信息、预先存储的用于近距离对象查询的对象的位置信息、以及多个预设的距离范围,分别确定与所述目标终端的距离在每个距离范围内的对象,得到每个距离范围对应的对象;分别在每个距离范围对应的对象中,随机选取待展示的对象,并向所述目标终端展示所述待展示的对象。采用本公开,可以增强查询近距离对象功能的有效性。

Description

一种查询近距离对象的方法和装置
本申请要求于2015年10月19日提交中国专利局、申请号为2015106777583、发明名称为“一种查询近距离对象的方法和装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本公开涉及移动终端技术领域,特别涉及一种查询近距离对象的方法和装置。
背景技术
随着移动终端技术的发展,手机、平板电脑等终端得到了广泛的应用,终端上的应用程序的种类越来越多、功能越来越丰富。比如社交类应用程序中添加了查询近距离对象功能,用户可以利用该功能查找附近的对象,如附近的账户、附近的群或者附近的活动等。
以对象为账户为例,当用户利用查询近距离对象功能查找附近的账户时,用户的终端(可以称为目标终端)会显示一定数目的账户的选项,以供用户查看,其中,显示的账户的选项是按照其对应的账户所登录的终端与目标终端的距离由近及远的顺序排列的,用户可以在其中选取自己感兴趣的账户,并与选取的账户进行通信。
在实现本公开的过程中,发明人发现相关技术至少存在以下问题:
基于上述处理,如果用户在某场所(如住宅)内多次查找附近的对象,终端每次显示的对象中大部分可能是相同的,在之前的近距离对象查询结果中,用户不感兴趣的对象,在此次近距离对象查询结果中有很大可能被显示出来,从而,导致查询近距离对象功能的有效性较差。
发明内容
为了解决相关技术的问题,本公开实施例提供了一种查询近距离对象的方 法和装置。所述技术方案如下:
第一方面,提供了一种查询近距离对象的方法,所述方法包括:
接收目标终端发送的近距离对象查询请求,获取所述目标终端的位置信息;
根据所述目标终端的位置信息、预先存储的用于近距离对象查询的对象的位置信息、以及多个预设的距离范围,分别确定与所述目标终端的距离在每个距离范围内的对象,得到每个距离范围对应的对象;
分别在每个距离范围对应的对象中,随机选取待展示的对象,并向所述目标终端展示所述待展示的对象。
第二方面,提供了一种查询近距离对象的装置,所述装置包括:
接收模块,用于接收目标终端发送的携带有所述目标终端的位置信息的近距离对象查询请求;
确定模块,用于根据所述目标终端的位置信息、预先存储的用于近距离对象查询的对象的位置信息、以及多个预设的距离范围,分别确定与所述目标终端的距离在每个距离范围内的对象,得到每个距离范围对应的对象;
展示模块,用于分别在每个距离范围对应的对象中,随机选取待展示的对象,并向所述目标终端展示所述待展示的对象。
第三方面,提供了一种服务器,所述服务器包括:
一个或多个处理器;和
存储器;
所述存储器存储有一个或多个程序,所述一个或多个程序被配置成由所述一个或多个处理器执行,所述一个或多个程序包含用于进行以下操作的指令:
接收目标终端发送的近距离对象查询请求,获取所述目标终端的位置信息;
根据所述目标终端的位置信息、预先存储的用于近距离对象查询的对象的位置信息、以及多个预设的距离范围,分别确定与所述目标终端的距离在每个距离范围内的对象,得到每个距离范围对应的对象;
分别在每个距离范围对应的对象中,随机选取待展示的对象,并向所述目标终端展示所述待展示的对象。
本公开实施例提供的技术方案带来的有益效果是:
本公开实施例中,接收目标终端发送的近距离对象查询请求,获取所述目标终端的位置信息,根据目标终端的位置信息、预先存储的用于近距离对象查 询的对象的位置信息、以及多个预设的距离范围,分别确定与目标终端的距离在每个距离范围内的对象,得到每个距离范围对应的对象,分别在每个距离范围对应的对象中,随机选取待展示的对象,并向目标终端展示所述待展示的对象。这样,服务器在展示近距离对象时的随机性较大,降低了多次查询到的对象的重复性,进而,可以增强查询近距离对象功能的有效性。
附图说明
为了更清楚地说明本公开实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本公开的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是本公开实施例提供的一种查询近距离对象的方法的流程图;
图2是本公开实施例提供的一种场景示意图;
图3是本公开实施例提供的一种获取每个距离范围对应的对象的示意图;
图4是本公开实施例提供的一种随机选取每个距离范围对应的待展示的对象的示意图;
图5是本公开实施例提供的一种查询近距离对象的装置的结构示意图;
图6是本公开实施例提供的一种查询近距离对象的装置的结构示意图;
图7是本公开实施例提供的一种查询近距离对象的装置的结构示意图;
图8是本公开实施例提供的一种查询近距离对象的装置的结构示意图;
图9是本公开实施例提供的一种查询近距离对象的装置的结构示意图;
图10是本公开实施例提供的一种服务器的结构示意图。
具体实施方式
为使本公开的目的、技术方案和优点更加清楚,下面将结合附图对本公开实施方式作进一步地详细描述。
实施例一
本公开实施例提供了一种查询近距离对象的方法,如图1所示,该方法的处理流程可以包括如下的步骤:
步骤101,接收目标终端发送的近距离对象查询请求,获取目标终端的位置 信息。
步骤102,根据目标终端的位置信息、预先存储的用于近距离对象查询的对象的位置信息、以及多个预设的距离范围,分别确定与目标终端的距离在每个距离范围内的对象,得到每个距离范围对应的对象。
步骤103,分别在每个距离范围对应的对象中,随机选取待展示的对象,并向目标终端展示所述待展示的对象。
本公开实施例中,接收目标终端发送的近距离对象查询请求,获取所述目标终端的位置信息,根据目标终端的位置信息、预先存储的用于近距离对象查询的对象的位置信息、以及多个预设的距离范围,分别确定与目标终端的距离在每个距离范围内的对象,得到每个距离范围对应的对象,分别在每个距离范围对应的对象中,随机选取待展示的对象,并向目标终端展示所述待展示的对象。这样,服务器在展示近距离对象时的随机性较大,降低了多次查询到的对象的重复性,进而,可以增强查询近距离对象功能的有效性。
实施例二
本公开实施例提供了一种查询近距离对象的方法,该方法的执行主体为服务器。其中,服务器可以是用于查询近距离对象的服务器,可以是具有查询近距离对象功能的应用程序的后台服务器,例如,查询近距离对象功能可以是社交类应用程序中“附近的人”功能,相应的对象是账户,服务器可以是社交类应用程序的后台服务器。该服务器中可以设置有处理器、存储器、收发器,处理器可以用于查询近距离对象的相关处理过程,存储器可以用于存储下述处理过程中需要的数据以及产生的数据,收发器可以用于接收和发送数据。
下面将结合具体实施方式,对图1所示的处理流程进行详细的说明,内容可以如下:
步骤101,接收目标终端发送的近距离对象查询请求,获取所述目标终端的位置信息。
在实施中,用户想要与附近的人聊天、参加附近的活动或者加入附近的聊天群时,可以通过应用程序中查询近距离对象功能对附近的人、附近的活动或者附近的群进行查询,例如,用户可以通过社交类应用程序中的“附近的人”功能,查找与用户的终端(可以称为目标终端)距离很近的终端所对应的用户, 并与其进行通信。社交类应用程序中可以设置有查询近距离对象功能对应的按键(可以称为近距离对象查询按键),用户使用应用程序中查询近距离对象功能时,可以点击应用程序中的近距离对象查询按键,则会触发终端生成近距离对象查询请求,终端可以获取预先存储的服务器的地址和当前的位置信息,然后向服务器发送近距离对象查询请求,其中,近距离对象查询请求中可以携带有目标终端的位置信息。如图2所示,服务器可以接收目标终端发送的近距离对象查询请求,并对其进行解析,获取其中携带的目标终端的位置信息。此外,方案中还可以设置有位置查询服务器,位置查询服务器可以是专门用来记录终端的位置信息的服务器,这样,当用户点击应用程序中的近距离对象查询按键时,终端可以根据预先存储的服务器的地址,向服务器发送近距离对象查询请求。服务器接收到目标终端发送的近距离对象查询请求后,可以从位置查询服务器处获取目标终端的位置信息。
步骤102,根据目标终端的位置信息、预先存储的用于近距离对象查询的对象的位置信息、以及多个预设的距离范围,分别确定与目标终端的距离在每个距离范围内的对象,得到每个距离范围对应的对象。
其中,对象可以是账户、活动、聊天群,对于“附近的人”功能,用于近距离对象查询的对象可以是向服务器发送过近距离对象查询请求的终端中登录的账户,用于近距离对象查询的对象的位置信息可以是向服务器发送过近距离对象查询请求的终端的位置信息,对于“附近的活动”、“附近的群”功能,用于近距离对象查询的对象可以是创建活动、聊天群的账户所登录的终端向服务器发送的活动或者聊天群的群名称,用于近距离对象查询的对象的位置信息可以是创建聊天群时创建终端的位置信息,或者是用户通过终端设置的活动的举办位置信息。
在实施中,如图3所示,服务器获取近距离对象查询请求中携带的目标终端的位置信息后,可以获取预先存储的用于近距离对象查询的对象的位置信息,以及多个预设的距离范围,其中,多个预设的距离范围可以是对象与目标终端的距离的范围,可以将从零到某一预设数值的距离段划分为多个连续的距离范围(可以等距离划分,也可以随机划分),例如,预设数值可以为3km,多个距离范围可以如下:[0,0.3)km、[0.3,0.9)km、[0.9,1.8)km、[1.8,3)km。服务器可以根据获取的目标终端的位置信息和用于近距离对象查询的对象的位置信 息,计算预先存储的所有的用于近距离对象查询的对象与目标终端的距离,确定计算得到的每个距离所在的距离范围,从而得到每个距离范围对应的对象。
可选的,针对对象是活动的情况,服务器还可以根据活动举办时间与当前时间的差值筛选每个距离范围对应的活动,相应的,步骤102的处理过程可以如下:用于近距离对象查询的对象为活动;根据位置信息、预先存储的用于近距离对象查询的活动的位置信息、以及多个预设的距离范围,在活动举办时间与当前时间的差值小于预设时长阈值的活动中,分别确定与目标终端的距离在每个距离范围内的活动,得到每个距离范围对应的活动。
在实施中,服务器可以预先存储用于筛选活动的时长阈值。当用于近距离对象查询的对象为活动时,服务器根据获取的近距离对象查询请求中携带的目标终端的位置信息、预先存储的用于近距离对象查询的对象的位置信息,以及多个预设的距离范围,确定每个距离范围对应的活动后,还可以获取预先存储的所有活动对应的活动举办时间,然后将当前时间减去每个活动举办时间,得到每个活动对应的时间的差值,从而将得到的时间的差值与预设的时长阈值进行比较,可以从确定出的每个距离范围对应的每个活动中,选取活动举办时间与当前时间的差值小于预设的时长阈值的活动,将其作为每个距离范围对应的活动。这样,每个距离范围对应的活动的举办时间都会比较接近当前时间,有利于用户根据自己的时间情况判断是否要报名活动(可以把报名活动看作是一种通信)。
可选的,针对对象是账户的情况,服务器还可以根据最近一次发送近距离对象查询请求的时间与当前时间的差值筛选每个距离范围对应的活动,相应的,步骤102的处理过程可以如下:用于近距离对象查询的对象为账户;根据位置信息、预先存储的用于近距离对象查询的账户所登录的终端的位置信息、以及多个预设的距离范围,在当前登录且最近一次发送近距离对象查询请求的时间与当前时间的差值小于预设时长阈值的账户中,分别确定所登录的终端与所述目标终端的距离在每个距离范围内的账户,得到每个距离范围对应的账户。
在实施中,服务器可以预先存储用于筛选账户的时长阈值。当用于近距离对象查询的对象为账户时,账户所登录的终端发送过近距离对象查询请求后,服务器可以将终端的位置信息保留一段时间,其中,服务器可以在接收到终端发送的位置信息清除消息后,删除本地存储的终端的位置信息,服务器也可以 在位置信息的存储时长达到一定的预设时长后自动删除终端的位置信息。
服务器获取近距离对象查询请求中携带的目标终端的位置信息后,还可以获取服务器中目前还存储有的用于近距离对象查询的账户所登录的终端的位置信息,然后计算预先存储的终端与目标终端的距离,确定计算得到的每个距离所在的距离范围,从而可以得到每个距离范围对应的账户。服务器根据位置信息确定每个距离范围对应的账户后,还可以获取其中正在登录的账户以及最近一次发送近距离对象查询请求的时间,再将当前时间与获取的最近一次发送近距离对象查询请求的时间相减,得到每个账户对应的时间的差值。服务器可以将得到的时间的差值与预设的时长阈值进行比较,可以从根据位置信息确定出的每个距离范围对应的每个账户中,选取最近一次发送近距离对象查询请求的时间与当前时间的差值小于预设时长阈值的账户,将其作为每个距离范围对应的账户。这样,每个距离范围对应的账户都是最近发送过近距离对象查询请求的账户且当前处于登录状态,可以提高用户和他人进行通信的成功率。
步骤103,分别在每个距离范围对应的对象中,随机选取待展示的对象,并向目标终端展示所述待展示的对象。
其中,待展示的对象可以是服务器选取的用于向目标终端展示的对象。
在实施中,如图4所示,得到每个距离范围对应的对象后,服务器可以分别在每个距离范围对应的对象中,随机选取一定数量的待展示的对象,并将选取的待展示的对象发送给目标终端。具体的,如果待展示的对象是账户,服务器则可以将待展示的账户的账号、昵称、签名等账户资料发送给目标终端进行展示;如果待展示的对象是活动,服务器则可以将活动的主题、时间、地点等活动信息发送给目标终端进行展示;如果待展示的对象是聊天群,服务器则可以将聊天群的群名称、人数、群主等群信息发送给目标终端进行展示。
可选的,可以根据每个距离范围对应的权重,确定在每个距离范围中选取的待展示的对象的数量,相应的,处理过程可以如下:获取每个距离范围对应的权重;根据每个距离范围对应的权重和预设的对象展示总数量,确定每个距离范围对应的待展示的对象的数量;根据每个距离范围对应的待展示的对象的数量,分别在每个距离范围对应的对象中,随机选取待展示的对象。
在实施中,服务器可以预先存储所要选取的待展示的对象的总数量(即预设的对象展示总数量),在确定每个距离范围对应的对象后,可以获取每个距离 范围对应的权重,然后可以分别将每个距离范围对应的权重与预设的对象展示总数量相乘,从而可以确定每个距离范围对应的待展示的对象的数量。对于每个距离范围,服务器可以分别在距离范围对应的对象中随机选取该距离范围对应的待展示的对象的数量的待展示对象。
可选的,获取的每个距离范围对应的权重可以是预先在服务器中设置的权重。
可选的,可以根据账户库中各账户在每个距离范围内选取的对象的数量与在该距离范围内查询到的对象的数量的比例值,设置每个距离范围对应的权重,相应的,处理过程可以如下:对于每个距离范围,获取账户库中各账户在预设历史时长内在距离范围内,通过近距离对象查询请求查询到的对象的数量,以及在距离范围内通过近距离对象查询请求查询到的对象中选取的对象的数量;对于每个距离范围,确定在距离范围内选取的对象的数量与在距离范围内查询到的对象的数量的比例值;根据每个距离范围对应的比例值,确定每个距离范围对应的权重。
在实施中,对于每个距离范围,服务器可以获取账户库中的各账户在预设历史时长内发送近距离对象查询请求时查询到的对象的数量,以及各账户在距离范围内查询到的对象中选取的对象的数量,其中,查询到的对象的数量即是在过去的时间内发送近距离对象查询请求时,服务器所选取的待展示的对象的数量,选取的对象的数量即是与查询到的对象进行通信的对象的数量,查询近距离对象功能对应的是查询附近的人时,选取的对象的数量即是查询到的账户中与用户的账户进行了通信的账户的数量,查询近距离对象功能对应的是查询附近的活动或聊天群时,选取的对象的数量即是查询到的活动中用户报名参加的活动的数量,或者查询到的聊天群中用户请求加入的聊天群的数量。获取上述两个数量后,对于每个距离范围,服务器可以将在每个距离范围内选取的对象的数量与查询到的对象的数量相除,从而得到每个距离范围对应的比例值,其中,比例值越高,说明用户越容易与该距离范围内的用户进行通信。服务器可以将每个距离范围对应的比例值除以所有距离范围对应的比例值的总和,得到该距离范围对应的权值,不难理解,距离范围对应的比例值越大,该距离范围对应的权重越大,在该距离范围内随机选取的待展示的对象的数量就越多。这样,既可以在用户多次发送近距离对象查询请求时,降低待展示的对象的重 复性,还可以提高用户和随机选取的待展示的对象进行通信的成功率。
可选的,还可以根据目标终端中登录的目标账户在每个距离范围内选取的对象的数量与在该距离范围内查询到的对象的数量的比例值,设置每个距离范围对应的权重,相应的,处理过程可以如下:对于每个距离范围,获取目标终端中登录的目标账户在预设历史时长内在距离范围内,通过近距离对象查询请求查询到的对象的数量,以及在距离范围内通过近距离对象查询请求查询到的对象中选取的对象的数量;对于每个距离范围,确定在距离范围内选取的对象的数量与在距离范围内查询到的对象的数量的比例值;根据每个距离范围对应的比例值,确定每个距离范围对应的权重。
在实施中,对于每个距离范围,服务器可以获取目标账户在预设历史时长内发送近距离对象查询请求时查询到的对象的数量,以及目标账户在距离范围内查询到的对象中选取的对象的数量,其中,查询到的对象的数量即是在过去的时间内发送近距离对象查询请求时,服务器所选取的待展示的对象的数量,选取的对象的数量即是与查询到的对象进行通信的对象的数量,查询近距离对象功能对应的是查询附近的人时,选取的对象的数量即是查询到的账户中与用户的账户进行了通信的账户的数量,查询近距离对象功能对应的是查询附近的活动或聊天群时,选取的对象的数量即是是查询到的活动中用户报名参加的活动的数量,或者查询到的聊天群中用户请求加入的聊天群的数量。获取上述两个数量后,对于每个距离范围,服务器可以将在每个距离范围内选取的对象的数量与查询到的对象的数量进行相除,从而得到每个距离范围对应的比例值,其中,比例值越高,说明目标用户越容易与该距离范围内的用户进行通信。服务器可以将每个距离范围对应的比例值除以所有距离范围对应的比例值的总和,得到该距离范围对应的权值,不难理解,距离范围对应的比例值越大,该距离范围对应的权重越大,在该距离范围内随机选取的待展示的对象的数量就越多。这样,既可以在用户多次发送近距离对象查询请求时,降低待展示的对象的重复性,还可以提高用户和随机选取的待展示的对象进行通信的成功率。
可选的,还可以在每个距离范围内选取等数量的待展示的对象,相应的,处理过程可以如下:基于预设的对象展示总数量,分别在每个距离范围对应的对象中,随机选取等数量的待展示的对象。
在实施中,服务器可以预先存储所要选取的待展示的对象的总数量(即预 设的对象展示总数量),可以将预设的对象展示总数量除以预设的距离范围的数量,得到每个距离范围对应的数量。服务器可以在查询得到的每个距离范围对应的对象中,随机选取等数量的待展示的对象。
可选的,服务器可以按照选取的待展示的对象与所述目标终端之间的当前距离由小到大的顺序向目标终端进行展示,相应的,处理过程可以如下:按照选取的待展示的对象与目标终端之间的当前距离由小到大的顺序,向目标终端展示所述待展示的对象。
在实施中,在每个距离范围内随机选取待展示的对象后,服务器可以将每个距离范围内选取的对象,按照选取的待展示的对象与目标终端之间的当前距离由小到大的顺序排列。服务器可以按照预设的多个距离范围对应的距离由小到大的顺序向目标终端进行展示,其中,可以向目标终端发送反馈消息,反馈消息中携带有选取的待展示的对象的标识。终端可以接收服务器发送的反馈消息,并对其进行解析,获取其中携带的待展示的对象的标识,并对待展示的对象的标识进行显示。
另外,当服务器确定出每个距离范围对应的待展示的对象的数量,并在每个距离范围内随机选取待展示的对象时,若某个距离范围对应的对象小于待展示的对象的数量,服务器则可以选取该距离范围对应的全部对象。在每个距离范围内选取完对应的待展示的对象后,可以将预设的对象展示总数量减去选取出的待展示的对象的总数量,得到还需选取的待展示的对象的数量。服务器可以在所有距离范围对应的、除随机选取的待展示的对象之外的对象中,随机选取还需选取的待展示的对象的数量的待展示的对象。此外,服务器还可以获取与目标终端的距离在预设距离范围之外的距离对应的对象,可以在预设距离范围之外的距离对应的对象中,随机选取还需选取的待展示的对象的数量的待展示的对象,例如,预设的距离范围对应的距离是0-20km,预设的对象展示总数量是100,在0-20km对应的对象中选取的总的待展示的对象数量是80,此时,可以在大于20km的距离对应的对象中随机选取20个待展示的对象。另外,在确定出每个距离范围对应的待展示的对象的数量后,服务器可以按照对应的距离由小到大的顺序依次在多个距离范围中随机选取待展示的对象,当某个距离范围对应的对象小于待展示的对象的数量,可以选取该距离范围对应的全部对象,并将该距离范围对应的应该选取的待展示的对象的数量与该距离范围对应 的对象的数量的差值,累加到下一距离范围,即对于所述多个预设的距离范围中的第一个距离范围,根据每个距离范围对应的待展示的对象的数量,在第一个距离范围对应的对象中,随机选取待展示的对象;对于多个预设的距离范围中第一个距离范围之外的每个其它距离范围,根据其它距离范围对应的待展示的对象的数量,以及其它距离范围的前一个距离范围对应的待展示的对象的数量与对象的数量的差值,随机选取待展示的账户,例如多个预设距离范围分别是[0,0.1)km、[0.1,0.8)km、[0.8,2)km,每个距离范围对应的待展示的对象的数量分别是40、30、30,每个距离范围对应的对象的数量分别是35、40、50,第一个距离范围即是[0,0.1)km,在该距离范围选取的待展示的对象的数量是35,在第二个距离范围[0.1,0.8)km随机选取的待展示的对象的数量即是35,在第三个距离范围[0.8,2)km随机选取的待展示的对象的数量即是30。
可选的,用户可以主动屏蔽一些对象,服务器则可以不对这些对象进行展示,相应的处理可以如下:接收目标终端发送的携带有对象黑名单的对象屏蔽请求,对象黑名单中包括至少一个对象,分别在每个距离范围对应的、除至少一个对象之外的对象中,随机选取待展示的对象,并向目标终端展示待展示的对象。
在实施中,用户在通过应用程序查询近距离对象功能查询附近的人、附近的活动或者附近的群时,可以设置对象黑名单,对象黑名单中可以记录有至少一个用户想要屏蔽的对象。具体的,用户可以打开上述应用程序,应用程序中可以设置有近距离对象屏蔽功能对应的按键,用户可以点击该按键,终端则可以显示对象黑名单,进而用户可以在该对象黑名单中输入想要屏蔽的对象的名称,名称可以是账户的昵称、活动的主题或者聊天群的群名称,在用户输入完成,并点击确认按键后,则可以触发终端向服务器发送携带有对象黑名单的对象屏蔽请求,该对象黑名单中可以包括至少一个对象。
服务器接收到目标终端发送的对象屏蔽请求后,可以获取对象黑名单中的至少一个对象,然后在得到每个距离范围对应的对象后,服务器可以分别在每个距离范围对应的、除上述至少一个对象之外的对象中,随机选取一定数量的待展示的对象,并将选取的待展示的对象发送给目标终端。
另外,目标终端在显示终端发送的待展示的对象时,每个对象旁边可以设置有对应的屏蔽按键,当用户点击一个屏蔽按键后,终端可以自动将该屏蔽按 键对应的对象添加至对象黑名单中,这样,在下次终端向服务器发送近距离对象查询请求前,可以先发送携带有对象黑名单的对象屏蔽请求。
本公开实施例中,接收目标终端发送的近距离对象查询请求,获取所述目标终端的位置信息,根据目标终端的位置信息、预先存储的用于近距离对象查询的对象的位置信息、以及多个预设的距离范围,分别确定与目标终端的距离在每个距离范围内的对象,得到每个距离范围对应的对象,分别在每个距离范围对应的对象中,随机选取待展示的对象,并向目标终端展示所述待展示的对象。这样,服务器在展示近距离对象时的随机性较大,降低了多次查询到的对象的重复性,进而,可以增强查询近距离对象功能的有效性。
实施例三
基于相同的技术构思,本公开实施例还提供了一种查询近距离对象的装置,如图5所示,该装置包括:
第一接收模块510,用于接收目标终端发送的近距离对象查询请求,获取所述目标终端的位置信息;
确定模块520,用于根据所述目标终端的位置信息、预先存储的用于近距离对象查询的对象的位置信息、以及多个预设的距离范围,分别确定与所述目标终端的距离在每个距离范围内的对象,得到每个距离范围对应的对象;
展示模块530,用于分别在每个距离范围对应的对象中,随机选取待展示的对象,并向所述目标终端展示所述待展示的对象。
可选的,所述用于近距离对象查询的对象为活动;
所述确定模块520,用于:
根据所述位置信息、预先存储的用于近距离对象查询的活动的位置信息、以及多个预设的距离范围,在活动举办时间与当前时间的差值小于预设时长阈值的活动中,分别确定与所述目标终端的距离在每个距离范围内的活动,得到每个距离范围对应的活动。
可选的,所述用于近距离对象查询的对象为账户;
所述确定模块520,用于:
根据所述位置信息、预先存储的用于近距离对象查询的账户所登录的终端的位置信息、以及多个预设的距离范围,在当前登录且最近一次发送近距离对 象查询请求的时间与当前时间的差值小于预设时长阈值的账户中,分别确定所登录的终端与所述目标终端的距离在每个距离范围内的账户,得到每个距离范围对应的账户。
可选的,如图6所示,所述展示模块530,包括:
获取子模块5301,用于获取每个距离范围对应的权重;
确定子模块5302,用于根据每个距离范围对应的权重和预设的对象展示总数量,确定所述每个距离范围对应的待展示的对象的数量;
选取子模块5303,用于根据每个距离范围对应的待展示的对象的数量,分别在每个距离范围对应的对象中,随机选取待展示的对象。
可选的,如图7所示,所述获取子模块5301,包括:
第一获取单元53011,用于对于每个距离范围,获取账户库中各账户在预设历史时长内在所述距离范围内,通过近距离对象查询请求查询到的对象的数量,以及在所述距离范围内,通过近距离对象查询请求查询到的对象中选取的对象的数量;
第一确定单元53012,用于对于每个距离范围,确定在所述距离范围内选取的对象的数量与在所述距离范围内查询到的对象的数量的比例值;
第二确定单元53013,用于根据每个距离范围对应的比例值,确定每个距离范围对应的权重。
可选的,如图8所示,所述获取子模块5301,包括:
第二获取单元53014,用于对于每个距离范围,获取所述目标终端中登录的目标账户在预设历史时长内在所述距离范围内,通过近距离对象查询请求查询到的对象的数量,以及在所述距离范围内,通过近距离对象查询请求查询到的对象中选取的对象的数量;
第三确定单元53015,用于对于每个距离范围,确定在所述距离范围内选取的对象的数量与在所述距离范围内查询到的对象的数量的比例值;
第四确定单元53016,用于根据每个距离范围对应的比例值,确定每个距离范围对应的权重。
可选的,所述展示模块530,用于:
基于预设的对象展示总数量,分别在每个距离范围对应的对象中,随机选取等数量的待展示的对象。
可选的,所述展示模块530,用于:
按照选取的待展示的对象与所述目标终端的当前距离由小到大的顺序,向所述目标终端展示所述待展示的对象。
可选的,如图9所示,所述装置还包括:
第二接收模块540,用于接收目标终端发送的携带有对象黑名单的对象屏蔽请求,所述对象黑名单中包括至少一个对象;
所述展示模块530,用于:
分别在每个距离范围对应的、除所述至少一个对象之外的对象中,随机选取待展示的对象,并向所述目标终端展示所述待展示的对象。
本公开实施例中,接收目标终端发送的近距离对象查询请求,获取所述目标终端的位置信息,根据目标终端的位置信息、预先存储的用于近距离对象查询的对象的位置信息、以及多个预设的距离范围,分别确定与目标终端的距离在每个距离范围内的对象,得到每个距离范围对应的对象,分别在每个距离范围对应的对象中,随机选取待展示的对象,并向目标终端展示所述待展示的对象。这样,服务器在展示近距离对象时的随机性较大,降低了多次查询到的对象的重复性,进而,可以增强查询近距离对象功能的有效性。
需要说明的是:上述实施例提供的查询近距离对象的装置在查询近距离对象时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的查询近距离对象的装置与查询近距离对象的方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。
实施例四
图10是本公开实施例提供的服务器的结构示意图。该服务器1900可因配置或性能不同而产生比较大的差异,可以包括一个或一个以上中央处理器(central processing units,CPU)1922(例如,一个或一个以上处理器)和存储器1932,一个或一个以上存储应用程序1942或数据1944的存储介质1930(例如一个或一个以上海量存储设备)。其中,存储器1932和存储介质1930可以是短暂存储或持久存储。存储在存储介质1930的程序可以包括一个或一个以上模 块(图示没标出),每个模块可以包括对统计服务器中的一系列指令操作。更进一步地,中央处理器1922可以设置为与存储介质1930通信,在服务器1900上执行存储介质1930中的一系列指令操作。
服务器1900还可以包括一个或一个以上电源1926,一个或一个以上有线或无线网络接口1950,一个或一个以上输入输出接口1958,一个或一个以上键盘1956,和/或,一个或一个以上操作系统1941,例如Windows ServerTM,Mac OS XTM,UnixTM,LinuxTM,FreeBSDTM等等。
服务器1900可以包括有存储器,以及一个或者一个以上的程序,其中一个或者一个以上程序存储于存储器中,且经配置以由一个或者一个以上处理器执行所述一个或者一个以上程序包含用于进行上述各个实施例所述的查询近距离对象的方法。
在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器,上述指令可由移动终端的处理器执行以完成上述查询近距离对象的方法。例如,所述非临时性计算机可读存储介质可以是ROM(Read-Only Memory,只读存储器)、RAM(Random-Access Memory,随机存取存储器)、CD-ROM(Compact Disc Read-Only Memory,光盘只读存储器)、磁带、软盘和光数据存储设备等。
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。
以上所述仅为本公开的较佳实施例,并不用以限制本公开,凡在本公开的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本公开的保护范围之内。

Claims (24)

  1. 一种查询近距离对象的方法,其特征在于,所述方法包括:
    接收目标终端发送的近距离对象查询请求,获取所述目标终端的位置信息;
    根据所述目标终端的位置信息、预先存储的用于近距离对象查询的对象的位置信息、以及多个预设的距离范围,分别确定与所述目标终端的距离在每个距离范围内的对象,得到每个距离范围对应的对象;
    分别在每个距离范围对应的对象中,随机选取待展示的对象,并向所述目标终端展示所述待展示的对象。
  2. 根据权利要求1所述的方法,其特征在于,所述用于近距离对象查询的对象为账户;
    所述根据所述位置信息、预先存储的用于近距离对象查询的对象的位置信息、以及多个预设的距离范围,分别确定与所述目标终端的距离在每个距离范围内的对象,得到每个距离范围对应的对象,包括:
    根据所述位置信息、预先存储的用于近距离对象查询的账户所登录的终端的位置信息、以及多个预设的距离范围,在当前登录且最近一次发送近距离对象查询请求的时间与当前时间的差值小于预设时长阈值的账户中,分别确定所登录的终端与所述目标终端的距离在每个距离范围内的账户,得到每个距离范围对应的账户。
  3. 根据权利要求1所述的方法,其特征在于,所述分别在每个距离范围对应的对象中,随机选取待展示的对象,包括:
    获取每个距离范围对应的权重;
    根据每个距离范围对应的权重和预设的对象展示总数量,确定所述每个距离范围对应的待展示的对象的数量;
    根据每个距离范围对应的待展示的对象的数量,分别在每个距离范围对应的对象中,随机选取待展示的对象。
  4. 根据权利要求3所述的方法,其特征在于,所述获取预设的每个距离范围对应的权重,包括:
    对于每个距离范围,获取账户库中各账户在预设历史时长内在所述距离范围内,通过近距离对象查询请求查询到的对象的数量,以及在所述距离范围内, 通过近距离对象查询请求查询到的对象中选取的对象的数量;
    对于每个距离范围,确定在所述距离范围内选取的对象的数量与在所述距离范围内查询到的对象的数量的比例值;
    根据每个距离范围对应的比例值,确定每个距离范围对应的权重。
  5. 根据权利要求3所述的方法,其特征在于,所述获取每个距离范围对应的权重,包括:
    对于每个距离范围,获取所述目标终端中登录的目标账户在预设历史时长内在所述距离范围内,通过近距离对象查询请求查询到的对象的数量,以及在所述距离范围内,通过近距离对象查询请求查询到的对象中选取的对象的数量;
    对于每个距离范围,确定在所述距离范围内选取的对象的数量与在所述距离范围内查询到的对象的数量的比例值;
    根据每个距离范围对应的比例值,确定每个距离范围对应的权重。
  6. 根据权利要求1所述的方法,其特征在于,所述分别在每个距离范围对应的对象中,随机选取待展示的对象,包括:
    基于预设的对象展示总数量,分别在每个距离范围对应的对象中,随机选取等数量的待展示的对象。
  7. 根据权利要求1所述的方法,其特征在于,所述向所述目标终端展示所述待展示的对象,包括:
    按照选取的待展示的对象与所述目标终端的当前距离由小到大的顺序,向所述目标终端展示所述待展示的对象。
  8. 根据权利要求1所述的方法,其特征在于,所述接收目标终端发送的近距离对象查询请求之前,还包括:
    接收目标终端发送的携带有对象黑名单的对象屏蔽请求,所述对象黑名单中包括至少一个对象;
    所述分别在每个距离范围对应的对象中,随机选取待展示的对象,并向所述目标终端展示所述待展示的对象,包括:
    分别在每个距离范围对应的、除所述至少一个对象之外的对象中,随机选取待展示的对象,并向所述目标终端展示所述待展示的对象。
  9. 一种查询近距离对象的装置,其特征在于,所述装置包括:
    第一接收模块,用于接收目标终端发送的近距离对象查询请求,获取所述目标终端的位置信息;
    确定模块,用于根据所述目标终端的位置信息、预先存储的用于近距离对象查询的对象的位置信息、以及多个预设的距离范围,分别确定与所述目标终端的距离在每个距离范围内的对象,得到每个距离范围对应的对象;
    展示模块,用于分别在每个距离范围对应的对象中,随机选取待展示的对象,并向所述目标终端展示所述待展示的对象。
  10. 根据权利要求9所述的装置,其特征在于,所述用于近距离对象查询的对象为账户;
    所述确定模块,用于:
    根据所述位置信息、预先存储的用于近距离对象查询的账户所登录的终端的位置信息、以及多个预设的距离范围,在当前登录且最近一次发送近距离对象查询请求的时间与当前时间的差值小于预设时长阈值的账户中,分别确定所登录的终端与所述目标终端的距离在每个距离范围内的账户,得到每个距离范围对应的账户。
  11. 根据权利要求9所述的装置,其特征在于,所述展示模块,包括:
    获取子模块,用于获取每个距离范围对应的权重;
    确定子模块,用于根据每个距离范围对应的权重和预设的对象展示总数量,确定所述每个距离范围对应的待展示的对象的数量;
    选取子模块,用于根据每个距离范围对应的待展示的对象的数量,分别在每个距离范围对应的对象中,随机选取待展示的对象。
  12. 根据权利要求11所述的装置,其特征在于,所述获取子模块,包括:
    第一获取单元,用于对于每个距离范围,获取账户库中各账户在预设历史时长内在所述距离范围内,通过近距离对象查询请求查询到的对象的数量,以及在所述距离范围内,通过近距离对象查询请求查询到的对象中选取的对象的数量;
    第一确定单元,用于对于每个距离范围,确定在所述距离范围内选取的对象的数量与在所述距离范围内查询到的对象的数量的比例值;
    第二确定单元,用于根据每个距离范围对应的比例值,确定所述每个距离范围对应的权重。
  13. 根据权利要求11所述的装置,其特征在于,所述获取子模块,包括:
    第二获取单元,用于对于每个距离范围,获取所述目标终端中登录的目标账户在预设历史时长内在所述距离范围内,通过近距离对象查询请求查询到的对象的数量,以及在所述距离范围内,通过近距离对象查询请求查询到的对象中选取的对象的数量;
    第三确定单元,用于对于每个距离范围,确定在所述距离范围内选取的对象的数量与在所述距离范围内查询到的对象的数量的比例值;
    第四确定单元,用于根据每个距离范围对应的比例值,确定每个距离范围对应的权重。
  14. 根据权利要求9所述的装置,其特征在于,所述展示模块,用于:
    基于预设的对象展示总数量,分别在每个距离范围对应的对象中,随机选取等数量的待展示的对象。
  15. 根据权利要求9所述的装置,其特征在于,所述展示模块,用于:
    按照选取的待展示的对象与所述目标终端的当前距离由小到大的顺序,向所述目标终端展示所述待展示的对象。
  16. 根据权利要求9所述的装置,其特征在于,所述装置还包括:
    第二接收模块,用于接收目标终端发送的携带有对象黑名单的对象屏蔽请求,所述对象黑名单中包括至少一个对象;
    所述展示模块,用于:
    分别在每个距离范围对应的、除所述至少一个对象之外的对象中,随机选取待展示的对象,并向所述目标终端展示所述待展示的对象。
  17. 一种服务器,其特征在于,所述服务器包括:
    一个或多个处理器;和
    存储器;
    所述存储器存储有一个或多个程序,所述一个或多个程序被配置成由所述一个或多个处理器执行,所述一个或多个程序包含用于进行以下操作的指令:
    接收目标终端发送的近距离对象查询请求,获取所述目标终端的位置信息;
    根据所述目标终端的位置信息、预先存储的用于近距离对象查询的对象的位置信息、以及多个预设的距离范围,分别确定与所述目标终端的距离在每个 距离范围内的对象,得到每个距离范围对应的对象;
    分别在每个距离范围对应的对象中,随机选取待展示的对象,并向所述目标终端展示所述待展示的对象。
  18. 根据权利要求17所述的服务器,其特征在于,所述用于近距离对象查询的对象为账户;
    所述一个或多个程序还包含用于进行以下操作的指令:
    根据所述位置信息、预先存储的用于近距离对象查询的账户所登录的终端的位置信息、以及多个预设的距离范围,在当前登录且最近一次发送近距离对象查询请求的时间与当前时间的差值小于预设时长阈值的账户中,分别确定所登录的终端与所述目标终端的距离在每个距离范围内的账户,得到每个距离范围对应的账户。
  19. 根据权利要求17所述的服务器,其特征在于,所述一个或多个程序还包含用于进行以下操作的指令:
    获取每个距离范围对应的权重;
    根据每个距离范围对应的权重和预设的对象展示总数量,确定每个距离范围对应的待展示的对象的数量;
    根据每个距离范围对应的待展示的对象的数量,分别在每个距离范围对应的对象中,随机选取待展示的对象。
  20. 根据权利要求19所述的服务器,其特征在于,所述一个或多个程序还包含用于进行以下操作的指令:
    对于每个距离范围,获取账户库中各账户在预设历史时长内在所述距离范围内,通过近距离对象查询请求查询到的对象的数量,以及在所述距离范围内,通过近距离对象查询请求查询到的对象中选取的对象的数量;
    对于每个距离范围,确定在所述距离范围内选取的对象的数量与在所述距离范围内查询到的对象的数量的比例值;
    根据每个距离范围对应的比例值,确定每个距离范围对应的权重。
  21. 根据权利要求19所述的服务器,其特征在于,所述一个或多个程序还包含用于进行以下操作的指令:
    对于每个距离范围,获取所述目标终端中登录的目标账户在预设历史时长内在所述距离范围内,通过近距离对象查询请求查询到的对象的数量,以及在 所述距离范围内,通过近距离对象查询请求查询到的对象中选取的对象的数量;
    对于每个距离范围,确定在所述距离范围内选取的对象的数量与在所述距离范围内查询到的对象的数量的比例值;
    根据每个距离范围对应的比例值,确定每个距离范围对应的权重。
  22. 根据权利要求17所述的服务器,其特征在于,所述一个或多个程序还包含用于进行以下操作的指令:
    基于预设的对象展示总数量,分别在每个距离范围对应的对象中,随机选取等数量的待展示的对象。
  23. 根据权利要求17所述的方法,其特征在于,所述一个或多个程序还包含用于进行以下操作的指令:
    按照选取的待展示的对象与所述目标终端的当前距离由小到大的顺序,向所述目标终端展示所述待展示的对象。
  24. 根据权利要求17所述的服务器,其特征在于,所述一个或多个程序还包含用于进行以下操作的指令:
    接收目标终端发送的携带有对象黑名单的对象屏蔽请求,所述对象黑名单中包括至少一个对象;
    分别在每个距离范围对应的、除所述至少一个对象之外的对象中,随机选取待展示的对象,并向所述目标终端展示所述待展示的对象。
PCT/CN2016/101480 2015-10-19 2016-10-08 一种查询近距离对象的方法和装置 WO2017067384A1 (zh)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP2017560968A JP6557361B2 (ja) 2015-10-19 2016-10-08 近距離オブジェクトを照会するための方法およびデバイス
EP16856817.8A EP3367707B1 (en) 2015-10-19 2016-10-08 Method and device for querying close-range objects
US15/703,603 US10278038B2 (en) 2015-10-19 2017-09-13 Method and apparatus for searching for short-distance object

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510677758.3 2015-10-19
CN201510677758.3A CN105392117B (zh) 2015-10-19 2015-10-19 一种查询近距离对象的方法和装置

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US15/703,603 Continuation-In-Part US10278038B2 (en) 2015-10-19 2017-09-13 Method and apparatus for searching for short-distance object

Publications (1)

Publication Number Publication Date
WO2017067384A1 true WO2017067384A1 (zh) 2017-04-27

Family

ID=55423861

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/101480 WO2017067384A1 (zh) 2015-10-19 2016-10-08 一种查询近距离对象的方法和装置

Country Status (5)

Country Link
US (1) US10278038B2 (zh)
EP (1) EP3367707B1 (zh)
JP (1) JP6557361B2 (zh)
CN (1) CN105392117B (zh)
WO (1) WO2017067384A1 (zh)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105392117B (zh) 2015-10-19 2020-06-02 腾讯科技(深圳)有限公司 一种查询近距离对象的方法和装置
US11294976B1 (en) * 2018-07-22 2022-04-05 Tuple Software LLC Ad-hoc venue engagement system
CN110062325A (zh) * 2019-04-03 2019-07-26 北京旺马科技有限公司 基于公路交通路线的lbs群聊方法、系统、设备及存储介质
CN112632406B (zh) * 2020-10-10 2024-04-09 咪咕文化科技有限公司 查询方法、装置、电子设备及存储介质
CN113765975A (zh) * 2020-11-12 2021-12-07 北京沃东天骏信息技术有限公司 一种信息处理方法及装置、存储介质
CN113377782B (zh) * 2021-08-12 2021-11-16 深圳市数字城市工程研究中心 一种城市空间移动对象查询方法、装置及存储介质

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102571910A (zh) * 2011-11-16 2012-07-11 腾讯科技(深圳)有限公司 在社交网络中查找附近用户的方法和服务器
US20130036165A1 (en) * 2010-12-22 2013-02-07 Erick Tseng Displaying Social Opportunities by Location on a Map
CN103514799A (zh) * 2012-06-25 2014-01-15 腾讯科技(深圳)有限公司 地图服务器、视野的控制方法和系统
CN105120426A (zh) * 2015-07-16 2015-12-02 青岛海信网络科技股份有限公司 一种寻车方法及装置
CN105159906A (zh) * 2015-06-16 2015-12-16 腾讯科技(深圳)有限公司 信息展示方法及装置
CN105392117A (zh) * 2015-10-19 2016-03-09 腾讯科技(深圳)有限公司 一种查询近距离对象的方法和装置

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7720436B2 (en) * 2006-01-09 2010-05-18 Nokia Corporation Displaying network objects in mobile devices based on geolocation
US8571580B2 (en) * 2006-06-01 2013-10-29 Loopt Llc. Displaying the location of individuals on an interactive map display on a mobile communication device
US20080079539A1 (en) * 2006-08-15 2008-04-03 Daley Robert C Friends Finder Service for a Mobile Device in a Network
KR101545703B1 (ko) * 2009-01-12 2015-08-20 삼성전자 주식회사 이동단말의 위치정보를 활용한 위치 서비스 제공 및 수신방법
US20100205242A1 (en) * 2009-02-12 2010-08-12 Garmin Ltd. Friend-finding system
JP5372981B2 (ja) * 2011-02-15 2013-12-18 ヤフー株式会社 情報処理装置及び方法
KR101689242B1 (ko) * 2011-04-21 2016-12-23 엠파이어 테크놀로지 디벨롭먼트 엘엘씨 모바일 장치를 사용하는 위치 소셜 네트워킹
KR101257169B1 (ko) * 2011-04-28 2013-04-22 엔에이치엔(주) 모바일 단말의 움직임 및 사용자에 의해 설정된 거리를 이용하여 사용자들간에 관계를 설정하는 소셜 네트워크 서비스 제공 시스템 및 방법
KR101540450B1 (ko) * 2011-10-31 2015-07-31 네이버 주식회사 주변 정보 제공 장치 및 방법
CN102546656B (zh) * 2012-02-10 2015-04-29 腾讯科技(深圳)有限公司 在社交网络中查找用户的方法、系统和装置
JP5475835B2 (ja) * 2012-06-15 2014-04-16 ヤフー株式会社 地点登録装置、端末装置、及び地点登録方法
KR20140113813A (ko) * 2013-03-14 2014-09-25 삼성전자주식회사 휴대단말기에서 액세스 포인트를 이용한 근접 친구를 찾는 방법 및 시스템
US9213744B2 (en) * 2013-03-15 2015-12-15 Ifwe Inc. Perturbing search results

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130036165A1 (en) * 2010-12-22 2013-02-07 Erick Tseng Displaying Social Opportunities by Location on a Map
CN102571910A (zh) * 2011-11-16 2012-07-11 腾讯科技(深圳)有限公司 在社交网络中查找附近用户的方法和服务器
CN103514799A (zh) * 2012-06-25 2014-01-15 腾讯科技(深圳)有限公司 地图服务器、视野的控制方法和系统
CN105159906A (zh) * 2015-06-16 2015-12-16 腾讯科技(深圳)有限公司 信息展示方法及装置
CN105120426A (zh) * 2015-07-16 2015-12-02 青岛海信网络科技股份有限公司 一种寻车方法及装置
CN105392117A (zh) * 2015-10-19 2016-03-09 腾讯科技(深圳)有限公司 一种查询近距离对象的方法和装置

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3367707A4 *

Also Published As

Publication number Publication date
JP6557361B2 (ja) 2019-08-07
EP3367707A4 (en) 2019-07-03
CN105392117A (zh) 2016-03-09
EP3367707A1 (en) 2018-08-29
CN105392117B (zh) 2020-06-02
US10278038B2 (en) 2019-04-30
EP3367707B1 (en) 2021-04-07
JP2018520422A (ja) 2018-07-26
US20180007524A1 (en) 2018-01-04

Similar Documents

Publication Publication Date Title
WO2017067384A1 (zh) 一种查询近距离对象的方法和装置
US9479900B2 (en) Geographic location-based communications method, mobile terminal, server, and geographic location-based communications system
JP6224135B2 (ja) ルーチン逸脱の通知
RU2635889C2 (ru) Способ и устройство для создания группы, способ и устройство для выхода из группы
US9215286B1 (en) Creating a social network based on an activity
US9521105B2 (en) Sending communications to contacts on a social networking service
US20150281382A1 (en) Group creating and joining method, client, server , and system
JP6151803B2 (ja) 周辺ロケーション更新のグループ化
EP4109827A1 (en) Group display method and device
KR102558866B1 (ko) 필터 활동을 통한 오디언스 도출
JP5913758B2 (ja) ルーチンの推定
JP6663002B2 (ja) ジオフェンシング探索結果に基づく通知の提供
TW201443810A (zh) 使用者資訊推薦方法、裝置、設備及系統
US20140206399A1 (en) Location-based group generation method, apparatus and system
WO2013075583A1 (zh) 添加好友的方法、装置及存储介质
JP6246837B2 (ja) パターンのラベリング
US9218503B2 (en) Collection and analysis of customer data from application programming interface usage
CN111984992B (zh) 一种防用户泄露的传染病追踪方法、系统及终端设备
CN101996256A (zh) 搜索方法、移动信息终端集成子系统及搜索系统
CN106790690B (zh) 一种跨楼层的消息推送方法及装置
WO2016173404A1 (zh) 用户匹配方法及装置
US20140157290A1 (en) Method, system, and device for switching between network applications, and computer storage medium
WO2017107420A1 (zh) 一种确定业务员通信账户对应的业务区域的方法和装置
KR20180105176A (ko) 서비스 프로세싱 방법 및 장치
WO2017202138A1 (zh) 基于搜索引擎的信息处理方法和装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16856817

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2017560968

Country of ref document: JP

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE