CN106570762A - Method and apparatus for finding nearby friends - Google Patents
Method and apparatus for finding nearby friends Download PDFInfo
- Publication number
- CN106570762A CN106570762A CN201610974592.6A CN201610974592A CN106570762A CN 106570762 A CN106570762 A CN 106570762A CN 201610974592 A CN201610974592 A CN 201610974592A CN 106570762 A CN106570762 A CN 106570762A
- Authority
- CN
- China
- Prior art keywords
- information
- friend
- user
- geographic location
- sharing
- 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.)
- Withdrawn
Links
Classifications
-
- G06Q10/40—
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/953—Querying, e.g. by the use of web search engines
- G06F16/9537—Spatial or temporal dependent retrieval, e.g. spatiotemporal queries
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
Abstract
本发明涉及一种寻找附近好友的方法,所述方法包括:获取社交网站中与第一用户具有好友关系的第二用户的分享信息,所述分享信息中包括分享时间信息和地理位置信息;确定所述分享时间信息符合预设时间条件且所述地理位置信息与第一用户的地理位置符合设定距离条件的第二用户标识;显示与确定的所述第二用户标识对应的好友信息。使用该方法能够准确快速定位附近好友。此外,还提供了装置。
The present invention relates to a method for finding nearby friends, the method comprising: obtaining sharing information of a second user who has a friend relationship with the first user in a social networking site, and the sharing information includes sharing time information and geographic location information; determining The sharing time information meets the preset time condition and the geographic location information and the geographic location of the first user meet the second user ID of the set distance condition; displaying friend information corresponding to the determined second user ID. Using this method can accurately and quickly locate nearby friends. Additionally, a device is provided.
Description
技术领域technical field
本发明涉及计算机应用技术领域,特别是涉及一种寻找附近好友的方法和装置。The invention relates to the field of computer application technology, in particular to a method and device for finding nearby friends.
背景技术Background technique
传统技术中,联络好友的方式一般是通过电话、短信或者通过即时通讯APP询问,等待好友回复来获取好友的位置。这种方式需要进行信息编辑、拨号等操作,而且需要等待好友的信息反馈,当遇到突发情况需要寻求好友及时帮助时,这种方式显然不同准确快速的定位附近的好友以便进行求助。In the traditional technology, the method of contacting a friend is generally to ask through a phone call, a text message or an instant messaging APP, and wait for a reply from the friend to obtain the location of the friend. This method requires operations such as information editing and dialing, and needs to wait for information feedback from friends. When encountering an emergency and needing timely help from friends, this method is obviously different from accurately and quickly locating nearby friends for help.
发明内容Contents of the invention
基于此,提有必要针对上述技术问题,提供一种能够准确快速定位附近好友的寻找附近好友的方法和装置。Based on this, it is necessary to address the above technical problems and provide a method and device for finding nearby friends that can accurately and quickly locate nearby friends.
一种寻找附近好友的方法,所述方法包括:A method for finding nearby friends, the method comprising:
获取社交网站中与第一用户具有好友关系的第二用户的分享信息,所述分享信息中包括分享时间信息和地理位置信息;Acquiring sharing information of a second user who has a friend relationship with the first user in a social networking site, the sharing information includes sharing time information and geographic location information;
确定所述分享时间信息符合预设时间条件且所述地理位置信息与第一用户的地理位置符合设定距离条件的第二用户标识;determining that the sharing time information meets a preset time condition and that the geographic location information and the geographic location of the first user meet a set distance condition;
显示与确定的所述第二用户标识对应的好友信息。Displaying friend information corresponding to the determined second user identifier.
在一个实施例中,在所述显示与确定的所述第二用户标识对应的好友信息的步骤之后,还包括:In one embodiment, after the step of displaying the friend information corresponding to the determined second user identifier, it further includes:
获取用户对显示的所述好友信息中至少一个的选择操作;Obtaining a user's selection operation on at least one of the displayed friend information;
向选择的所述好友信息对应的好友标识所在终端发送提醒信息。Send reminder information to the terminal where the selected friend ID corresponding to the friend information is located.
在一个实施例中,所述方法还包括:In one embodiment, the method also includes:
获取对其中一个显示的所述好友信息的触发操作;Obtain a trigger operation on one of the displayed friend information;
在加载的地图上显示触发的所述好友信息对应的好友标识下历史地理位置信息对应的定位点;Displaying on the loaded map the anchor point corresponding to the historical geographic location information under the friend identification corresponding to the triggered friend information;
按照时间先后顺序,连接所述定位点生成所述好友标识的位置轨迹;In chronological order, connect the positioning points to generate the location track of the friend identifier;
根据每个所述历史地理位置信息对应的分享时间信息在所述位置轨迹上显示表征时间指向的箭头,所述箭头指向与时间流向相同。According to the sharing time information corresponding to each of the historical geographic location information, an arrow representing a direction of time is displayed on the location track, and the direction of the arrow is the same as the direction of time flow.
在一个实施例中,所述确定所述分享时间信息符合预设时间条件且所述地理位置信息与第一用户的地理位置符合设定距离条件的第二用户标识的步骤包括:In one embodiment, the step of determining that the sharing time information meets the preset time condition and the geographic location information and the geographic location of the first user meet the set distance condition of the second user ID includes:
筛选所述时间分享信息符合预设时间条件的所述第二用户的分享信息;screening the sharing information of the second user whose time-sharing information meets a preset time condition;
确定筛选的所述第二用户的分享信息中距离当前时刻最近的分享时间对应的地理位置信息;determining geographic location information corresponding to the sharing time closest to the current moment in the screened shared information of the second user;
筛选所述确定的地理位置信息中与所述第一用户的地理位置符合设定距离条件的所述地理位置信息,进而确定筛选的所述地理位置信息对应的第二用户标识。Screening the determined geographic location information that meets a set distance condition with the geographic location of the first user, and then determining a second user identifier corresponding to the filtered geographic location information.
在一个实施例中,所述显示所述第二用户标识对应的好友信息为:In one embodiment, the displaying the friend information corresponding to the second user identifier is:
以列表的形式显示所述好友信息,每个显示的所述好友信息包括好友的属性信息和导航指示图标;Displaying the friend information in the form of a list, each displayed friend information includes friend attribute information and navigation indicator icons;
获取对所述导航指示图标的触发操作,跳转页面至导航页面,在所述导航页面中自动导入对应的好友的所述地理位置信息。Acquiring a trigger operation on the navigation indicator icon, jumping to a navigation page, and automatically importing the geographic location information of the corresponding friend into the navigation page.
一种寻找附近好友的装置,所述装置包括:A device for finding nearby friends, said device comprising:
信息获取模块,用于获取社交网站中与第一用户具有好友关系的第二用户的分享信息,所述分享信息中包括分享时间信息和地理位置信息;An information acquisition module, configured to acquire sharing information of a second user who has a friend relationship with the first user in a social networking site, and the sharing information includes sharing time information and geographic location information;
附近好友确定模块,用于确定所述分享时间信息符合预设时间条件且所述地理位置信息与第一用户的地理位置符合设定距离条件的第二用户标识;A nearby friend determination module, configured to determine a second user identifier whose sharing time information meets a preset time condition and whose geographic location information and the geographic location of the first user meet a set distance condition;
附近好友显示模块,用于显示与确定的所述第二用户标识对应的好友信息。A nearby friend display module, configured to display friend information corresponding to the determined second user identifier.
在一个实施例中,所述装置还包括:In one embodiment, the device also includes:
选择操作获取模块,用于获取用户对显示的所述好友信息中至少一个的选择操作;A selection operation acquisition module, configured to acquire a user's selection operation on at least one of the displayed friend information;
召唤提醒模块,用于向选择的所述好友信息对应的好友标识所在终端发送提醒信息。The call reminder module is configured to send reminder information to the terminal where the friend ID corresponding to the selected friend information is located.
在一个实施例中,所述装置还包括:In one embodiment, the device also includes:
触发操作获取模块,用于获取对其中一个显示的所述好友信息的触发操作;A trigger operation acquisition module, configured to acquire a trigger operation on one of the displayed friend information;
历史位置显示模块,用于在加载的地图上显示触发的所述好友信息对应的好友标识下历史地理位置信息对应的定位点;A historical location display module, configured to display on the loaded map the anchor points corresponding to the historical geographic location information under the triggered friend identification corresponding to the friend information;
位置轨迹生成模块,用于按照时间先后顺序,连接所述定位点生成所述好友标识的位置轨迹;A location track generating module, configured to connect the positioning points in chronological order to generate the location track of the friend identifier;
轨迹指向模块,用于根据每个所述历史地理位置信息对应的分享时间信息在所述位置轨迹上显示表征时间指向的箭头,所述箭头指向与时间流向相同。The track pointing module is configured to display an arrow representing time pointing on the position track according to the sharing time information corresponding to each of the historical geographic location information, and the pointing of the arrow is the same as the time flow direction.
在一个实施例中,所述附近好友确定模块包括:In one embodiment, the nearby friend determination module includes:
时间筛选模块,筛选所述时间分享信息满足时间预设条件的第一好友标识;A time screening module, which screens the first friend ID whose time sharing information satisfies the time preset condition;
位置筛选模块,用于确定筛选的所述第二用户的分享信息中距离当前时刻最近的分享时间对应的地理位置信息;筛选所述确定的地理位置信息中与所述第一用户的地理位置符合设定距离条件的所述地理位置信息,进而确定筛选的所述地理位置信息对应的第二用户标识。The location screening module is configured to determine the geographical location information corresponding to the sharing time closest to the current moment among the screened shared information of the second user; The geographic location information of the distance condition is set, and then the second user identifier corresponding to the filtered geographic location information is determined.
在一个实施例中,所述附近好友显示模块还包括:In one embodiment, the nearby friend display module also includes:
显示模块,用于以列表的形式显示所述好友信息,每个显示的所述好友信息包括好友的属性信息和导航指示图标;A display module, configured to display the friend information in the form of a list, and each displayed friend information includes friend attribute information and navigation indicator icons;
导航模块,用于获取对所述导航指示图标的触发操作,跳转页面至导航页面,在所述导航页面中自动导入对应的好友的所述地理位置信息。The navigation module is configured to acquire a trigger operation on the navigation indicator icon, jump to a navigation page, and automatically import the geographic location information of the corresponding friend into the navigation page.
上述寻找附近好友的方法和装置,通过获取社交网络中好友分享的分享信息,获取好友在分享时间地理位置信息,进而根据获取的好友的地理位置信息判断该好友是否是附近好友(满足设定距离条件的好友为附近好友),确定附近好友标识,显示确定的附近好友标识对应的好友信息,实现了对附近好友的更加准确和快速定位,与附近好友之间的通信更加快捷。The above-mentioned method and device for finding a nearby friend obtains the geographical location information of the friend at the sharing time by obtaining the sharing information shared by the friends in the social network, and then judges whether the friend is a nearby friend (meeting the set distance) according to the obtained geographical location information of the friend. conditional friend is a nearby friend), determine the nearby friend ID, display the friend information corresponding to the determined nearby friend ID, realize more accurate and fast positioning of the nearby friend, and communicate with the nearby friend more quickly.
附图说明Description of drawings
图1为一个实施例中寻找附近好友的方法的应用环境图;Fig. 1 is an application environment diagram of a method for finding nearby friends in one embodiment;
图2为一个实施例中寻找附近好友的方法的流程图;Fig. 2 is a flowchart of a method for finding nearby friends in one embodiment;
图3为另一个实施例中寻找附近好友的方法的流程图;Fig. 3 is a flowchart of a method for finding nearby friends in another embodiment;
图4为一个实施例中显示附近好友轨迹所涉及的流程图;Fig. 4 is a flow chart involved in displaying the trajectories of nearby friends in one embodiment;
图5为一个实施例中好友轨迹的界面图;Fig. 5 is an interface diagram of a friend track in an embodiment;
图6为一个实施例中寻找附近好友的装置的结构框图;Fig. 6 is a structural block diagram of a device for finding nearby friends in one embodiment;
图7为另一个实施例中寻找附近好友的装置的结构框图;Fig. 7 is a structural block diagram of a device for finding nearby friends in another embodiment;
图8为另一个实施例中显示附近好友轨迹所涉及结构框图。Fig. 8 is a structural block diagram related to displaying tracks of nearby friends in another embodiment.
具体实施方式detailed description
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.
图1为一个实施例中寻找附近好友的方法的应用环境图,如图1所示,该应用环境包括第一用户终端110、第二用户终端120和社交网站服务器130,其中,第一用户终端110和第二用户终端120可通过网络与社交网站服务器通信,第二终端用户与第一终端用户在社交网站中是好友关系。第二用户终端在社交网站中发布的分享信息可通过社交网站服务器推送到第一用户终端中,第一用户从社交网站服务器中获取具有好友关系的第二用户终端发布的分享信息,通过分享信息获知终端用户历史时刻的地理位置信息,进而通过好友的地理位置-时间信息查找满足时间条件和距离条件的好友标识,该查找的好友标识即为附近好友标识。Fig. 1 is an application environment diagram of a method for finding nearby friends in an embodiment. As shown in Fig. 1, the application environment includes a first user terminal 110, a second user terminal 120 and a social networking site server 130, wherein the first user terminal 110 and the second user terminal 120 can communicate with the server of the social networking site through the network, and the second terminal user and the first terminal user are friends in the social networking site. The shared information published by the second user terminal on the social networking site can be pushed to the first user terminal through the social networking site server, and the first user obtains the shared information issued by the second user terminal with a friend relationship from the social networking site server. The geographical location information of the terminal user's historical moment is obtained, and then the friend ID meeting the time condition and the distance condition is searched through the geographical position-time information of the friend, and the friend ID to be searched is the nearby friend ID.
在一个实施例中,如图2所示,提供了一种寻找附近好友的方法,该方法以应用在如图1所示的第一用户终端110中进行举例说明,具体包括如下步骤:In one embodiment, as shown in FIG. 2 , a method for finding nearby friends is provided. The method is illustrated by using the first user terminal 110 shown in FIG. 1 as an example, and specifically includes the following steps:
步骤S202:获取社交网站中与第一用户具有好友关系的第二用户的分享信息,分享信息中包括分享时间信息和地理位置信息。Step S202: Obtain sharing information of a second user who has a friend relationship with the first user in a social networking site, and the sharing information includes sharing time information and geographic location information.
社交网站是指针对社会群体的互联网应用服务,是信息的载体,登录社交网站中的用户可通过社交网站发布分享信息(例如Facebook、Twitter等)。Social networking sites refer to Internet application services for social groups, and are carriers of information. Users who log in to social networking sites can publish and share information through social networking sites (such as Facebook, Twitter, etc.).
第一用户终端注册社交网站,社交网站服务器根据第一用户终端的注册信息为其分配唯一的用户标识,第一用户终端通过用户标识与密码登录到社交网站服务器中,并可添加其他注册的用户作为好友,即社交网站服务器建立第一用户终端用户标识与添加的好友的用户标识之间的关联关系。The first user terminal registers with the social networking site, and the social networking site server assigns a unique user ID to it according to the registration information of the first user terminal, and the first user terminal logs into the social networking site server through the user ID and password, and can add other registered users As a friend, that is, the social networking site server establishes an association relationship between the user ID of the first user terminal and the user ID of the added friend.
注册社交网站服务器的用户终端可通过社交网站服务器发布分享信息,社交网站服务器将用户终端发布的分享信息推送至与其具有好友关系的好友的终端界面中显示,也就是,用户终端可以看到好友发布的分享信息。A user terminal registered with a social networking site server can publish shared information through the social networking site server, and the social networking site server pushes the shared information released by the user terminal to the terminal interface of the friend who has a friend relationship with it for display, that is, the user terminal can see the information posted by the friend. share information.
具体的,第一用户终端接收社交网站服务器推送的好友分享信息,并对接收的好友分享信息进行筛选,筛选出最近第一设定时长的好友分享信息,提取筛选的好友分享信息中具体的分享时间信息和地理位置信息。Specifically, the first user terminal receives the friend sharing information pushed by the server of the social networking site, and screens the received friend sharing information, screens out the most recent friend sharing information of the first set duration, and extracts the specific sharing information in the screened friend sharing information. Time information and geographic location information.
举例来说,筛选最近24小时内的好友分享信息,筛选出好友A的3个分享信息和好友B的两个分享信息,分别提取好友A的每个分享信息的分享时间信息和地理位置信息,以分别提取好友B的每个分享信息的分享时间信息和地理位置信息,提取信息的结果可如下表1所示。For example, filter the friends' shared information in the last 24 hours, filter out three shared information of friend A and two shared information of friend B, and extract the sharing time information and geographic location information of each shared information of friend A respectively, The sharing time information and geographic location information of each shared information of friend B are respectively extracted, and the result of the extracted information can be shown in Table 1 below.
表1Table 1
步骤S204:确定分享时间信息符合预设时间条件且地理位置信息与第一用户的地理位置符合设定距离条件的第二用户标识。Step S204: Determine the identity of the second user whose sharing time information meets the preset time condition and whose geographic location information and the geographic location of the first user meet the set distance condition.
第一用户终端判断上述提取信息中是否有同时满足预设时间条件和预设位置条件的分享信息,其中,这里的预设时间条件可以是最近第二设定时长,该最近第二设定时长可以与最近第一设定时长相同,也可以小于最近第一设定时长。The first user terminal judges whether there is shared information that satisfies both the preset time condition and the preset location condition in the above-mentioned extracted information, wherein the preset time condition here may be the latest second set duration, and the latest second set duration It may be the same as the latest first set duration, or may be shorter than the latest first set duration.
具体的,第一用户终端判断在最近第一设定时长内,是否有满足预设距离条件的分享信息,若有,确定该分享信息所对应的好友标识。这里的预设距离条件为获取的好友地理位置信息与第一用户终端当前的地理位置信息的距离之间的间隔阈值,当好友的地理位置与第一用户终端当前的地理位置之间的间隔小于该间隔阈值,则该好友的地理位置信息满足预设距离条件。Specifically, the first user terminal judges whether there is any shared information that satisfies the preset distance condition within the latest first set time period, and if so, determines the friend ID corresponding to the shared information. The preset distance condition here is the distance threshold between the acquired friend's geographic location information and the distance between the first user terminal's current geographic location information. When the distance between the friend's geographic location and the first user terminal's current geographic location is less than If the interval threshold is set, the geographical location information of the friend satisfies the preset distance condition.
上述的满足时间条件、距离条件的好友用户标识即为查找的第二用户标识。The above-mentioned friend user identifiers satisfying the time condition and the distance condition are the second user identifiers to be searched.
步骤S206:显示与确定的第二用户标识对应的好友信息。Step S206: Displaying friend information corresponding to the determined second user identifier.
查找第二用户标识(即附近好友的用户标识)对应的好友信息。在一个实施例中,好友信息包括该好友用户的在社交网站中的头像信息、昵称、性别、移动通信号码等个人信息。Search for friend information corresponding to the second user ID (that is, the user ID of nearby friends). In one embodiment, the friend information includes personal information such as profile picture information, nickname, gender, and mobile communication number of the friend user in a social networking site.
本实施例中,通过获取社交网络中好友分享的分享信息,获取好友在分享时间地理位置信息,进而根据获取的好友的地理位置信息判断该好友是否是附近好友(满足设定距离条件的好友为附近好友),确定附近好友标识,显示确定的附近好友标识对应的好友信息,实现了对附近好友的更加准确和快速定位,与附近好友之间的通信更加快捷。In this embodiment, by obtaining the sharing information shared by friends in the social network, the geographic location information of the friends at the sharing time is obtained, and then it is judged according to the geographical location information of the obtained friends whether the friends are nearby friends (friends satisfying the set distance condition are nearby friend), determine the nearby friend ID, display the friend information corresponding to the determined nearby friend ID, realize more accurate and fast positioning of the nearby friend, and communicate with the nearby friend more quickly.
在一个实施例中,如图3所示,在步骤S206:显示与确定的第二用户标识对应的好友信息之后,还包括:In one embodiment, as shown in FIG. 3 , after step S206: after displaying the friend information corresponding to the determined second user ID, the method further includes:
步骤S208:获取用户对显示的好友信息中至少一个的选择操作。Step S208: Obtain the user's selection operation on at least one of the displayed friend information.
第一用户终端显示查找的满足预设条件的好友信息,并监听显示界面中用户对显示的一个或者多个好友信息的选择操作。The first user terminal displays the searched friend information that satisfies the preset condition, and monitors the user's selection operation on one or more displayed friend information on the display interface.
步骤S210:向选择的好友信息对应的好友标识所在终端发送提醒信息。Step S210: Send reminder information to the terminal where the friend ID corresponding to the selected friend information is located.
具体的,通过用户触发的选择操作获取发送提醒信息的对象,监听用户触发的信息发送指令,该指令携带预先设定的信息内容,社交网站服务器接收第一用户终端发送的信息发送指令,提取信息发送指令中的好友标识信息和信息内容信息,向好友标识对应的终端的社交网站客户端发送该内容信息。Specifically, the user-triggered selection operation is used to obtain the object to send the reminder information, and the user-triggered information sending instruction is monitored. The instruction carries preset information content. Send the friend ID information and information content information in the instruction, and send the content information to the social networking site client of the terminal corresponding to the friend ID.
在一个实施例中,社交网站服务器预设有提醒信息内容模板,当获取到用户触发的信息发送指令时,社交网站服务器基于第一用户终端当前的地理位置信息和第一用户信息,填充预设的提醒信息内容模块,生成提醒信息,并向好友标识对应的终端发送该生成的提醒信息。In one embodiment, the social networking site server is preset with a reminder information content template. When the information sending instruction triggered by the user is obtained, the social networking site server fills the preset template based on the current geographic location information of the first user terminal and the first user information. The reminder information content module generates reminder information, and sends the generated reminder information to the terminal corresponding to the friend ID.
在一个实施例中,社交网站预设多个提醒信息内容模板,并显示于第一用户终端,第一用户可进行提醒信息内容模块的选择,并将选择的模板标识携带于信息发送指令中。In one embodiment, the social networking site presets a plurality of reminder information content templates and displays them on the first user terminal. The first user can select a reminder information content module and carry the selected template identifier in the information sending instruction.
在一个实施例中,第一用户终端根据选择的好友信息中的移动通信号码,向该移动通信号码对应的终端发送短信息,或者呼叫该移动通信号码对应的终端。In one embodiment, according to the mobile communication number in the selected friend information, the first user terminal sends a short message to the terminal corresponding to the mobile communication number, or calls the terminal corresponding to the mobile communication number.
本实施例中,用户只需通过简单的选择操作、触发操作即可向附近的好友发送提醒信息,与附近好友之间的通信更加快捷。In this embodiment, the user can send reminder information to nearby friends only through simple selection operations and trigger operations, and the communication with nearby friends is faster.
在一个实施例中,如图4所示,在步骤S206:显示与确定的第二用户标识对应的好友信息之后,还包括:In one embodiment, as shown in FIG. 4 , after step S206: displaying the friend information corresponding to the determined second user ID, the method further includes:
步骤S302:获取对其中一个显示的好友信息的触发操作。Step S302: Obtain a trigger operation on one of the displayed friend information.
步骤S304:在加载的地图上显示触发的所述好友信息对应的好友标识下历史地理位置信息对应的定位点。Step S304: displaying on the loaded map the anchor point corresponding to the historical geographic location information under the triggered friend ID corresponding to the friend information.
第一用户终端监听用户对任一显示的好友信息的触发操作,响应于该触发操作,获取该好友在历史时间的分享信息,提取所有分享信息的分享时间信息和地理位置信息,并加载地图程序,根据地理位置信息在地图界面中显示每个分享信息的定位点。The first user terminal listens to the user's trigger operation on any displayed friend information, and in response to the trigger operation, obtains the friend's sharing information in historical time, extracts the sharing time information and geographic location information of all the sharing information, and loads the map program , display each anchor point of shared information on the map interface according to the geographic location information.
步骤S306:按照时间先后顺序,连接定位点生成好友标识的位置轨迹。Step S306: In chronological order, connect the anchor points to generate the location track of the friend ID.
根据每个定位点对应的分享时间的先后,进行定位点的连接,生成该好友的位置轨迹曲线。According to the order of the sharing time corresponding to each anchor point, the anchor points are connected to generate the position track curve of the friend.
步骤S308:根据每个历史地理位置信息对应的分享时间信息在位置轨迹上显示表征时间指向的箭头,箭头指向与时间流向相同。Step S308: According to the sharing time information corresponding to each historical geographic location information, an arrow representing the direction of time is displayed on the location track, and the direction of the arrow is the same as the time flow.
具体的,在相连两个定位点之间的线段上标记箭头,该箭头从前一历史时刻指向后一历史时刻,如图5所示。Specifically, an arrow is marked on a line segment connecting two anchor points, and the arrow points from a previous historical moment to a subsequent historical moment, as shown in FIG. 5 .
本实施例中,以地图的形式可以更加直观的、清楚地了解好友的位置动态。In this embodiment, the location dynamics of friends can be understood more intuitively and clearly in the form of a map.
在一个实施例中,步骤S204:确定分享时间信息符合预设时间条件且地理位置信息与第一用户的地理位置符合设定距离条件的第二用户标识的步骤为:筛选时间分享信息符合预设时间条件的第二用户的分享信息;确定筛选的第二用户的分享信息中距离当前时刻最近的分享时间对应的地理位置信息;筛选确定的地理位置信息中与第一用户的地理位置符合设定距离条件的地理位置信息,进而确定筛选的地理位置信息对应的第二用户标识。In one embodiment, step S204: the step of determining the identity of the second user whose sharing time information meets the preset time condition and whose geographic location information and the geographic location of the first user meet the set distance condition is: screening the time sharing information to meet the preset The shared information of the second user based on the time condition; determine the geographical location information corresponding to the sharing time closest to the current moment in the shared information of the second user that is screened; the selected geographic location information matches the first user's geographical location The geographic location information of the distance condition, and then determine the second user identifier corresponding to the filtered geographic location information.
具体的,首先基于分享时间信息进行分享信息的筛选,筛选出满足预设时间条件的分享信息,由于对于一个好友筛选出的满足预设时间条件的分享信息可能有多个,判断该好友是否为附近好友时,获取分享时间最靠近当前时刻的分享信息的地理位置信息,如果该地理位置信息满足设定条件,则该好友为附近好友。Specifically, firstly, based on the sharing time information, the shared information is screened, and the shared information that meets the preset time condition is screened out. Since there may be multiple shared information that meets the preset time condition screened out by a friend, it is judged whether the friend is When a friend is nearby, the geographical location information of the shared information whose sharing time is closest to the current moment is obtained, and if the geographical location information satisfies the set condition, the friend is a nearby friend.
本实施例中,通过上述方法得到的附近好友的准确度更高。In this embodiment, the accuracy of nearby friends obtained through the above method is higher.
在一个实施例中,显示第二用户标识对应的好友信息的步骤为:以列表的形式显示好友信息,每个显示的好友信息包括好友的属性信息和导航指示图标;获取对导航指示图标的触发操作,跳转页面至导航页面,在导航页面中自动导入对应的好友的地理位置信息。In one embodiment, the step of displaying the friend information corresponding to the second user identifier is: displaying the friend information in the form of a list, each displayed friend information includes the friend's attribute information and a navigation indicator icon; acquiring a trigger for the navigation indicator icon Operation, jump to the navigation page, and automatically import the geographic location information of the corresponding friends in the navigation page.
显示好友信息的同时,显示导航指示图标,触发该指示图标即跳转至导航页面,自动导入预先获取的好友的地理位置信息,自动进行导航以指引用户抵达好友所在地。While displaying friend information, a navigation indicator icon is displayed, and the indicator icon is triggered to jump to the navigation page, automatically import the pre-acquired friend's geographic location information, and automatically navigate to guide the user to the friend's location.
本实施例中,在查找好友的同时,通过导航指示图标自动进行抵达好友所在地的导航指引,无需用户在进入导航APP,手动输入好友所在地址。In this embodiment, while searching for a friend, the navigation indicator icon is used to automatically guide to the location of the friend, and the user does not need to manually enter the address of the friend when entering the navigation APP.
在一个实施例中,如图6所示,提供了一种寻找附近好友的装置,包括:In one embodiment, as shown in Figure 6, a device for finding nearby friends is provided, including:
信息获取模块402,用于获取社交网站中与第一用户具有好友关系的第二用户的分享信息,分享信息中包括分享时间信息和地理位置信息。The information acquisition module 402 is configured to acquire sharing information of a second user who has a friend relationship with the first user in a social networking site, and the sharing information includes sharing time information and geographic location information.
附近好友确定模块404,用于确定分享时间信息符合预设时间条件且地理位置信息与第一用户的地理位置符合设定距离条件的第二用户标识。The nearby friend determination module 404 is configured to determine a second user identifier whose sharing time information meets a preset time condition and whose geographic location information and the geographic location of the first user meet a set distance condition.
附近好友显示模块406,用于显示与确定的第二用户标识对应的好友信息。A nearby friend display module 406, configured to display friend information corresponding to the determined second user identifier.
在一个实施例中,如图7所示,寻找附近好友的装置还包括:In one embodiment, as shown in Figure 7, the device for finding nearby friends also includes:
选择操作获取模块408,用于获取用户对显示的好友信息中至少一个的选择操作;A selection operation acquisition module 408, configured to acquire a user's selection operation on at least one of the displayed friend information;
召唤提醒模块410,用于向选择的好友信息对应的好友标识所在终端发出召唤的提醒信息。The call reminder module 410 is configured to send a call reminder message to the terminal where the friend ID corresponding to the selected friend information is located.
在一个实施例中,如图8所示,寻找附近好友的装置还包括:In one embodiment, as shown in Figure 8, the device for finding nearby friends also includes:
触发操作获取模块502,用于获取对其中一个显示的好友信息的触发操作。The trigger operation acquisition module 502 is configured to acquire a trigger operation on one of the displayed friend information.
历史位置显示模块504,用于在加载的地图上显示好友标识下历史地理位置信息所对应的定位点。The historical location display module 504 is configured to display on the loaded map the anchor point corresponding to the historical geographic location information under the friend ID.
位置轨迹生成模块506,用于按照时间先后顺序,连接定位点生成好友标识的位置轨迹。The location track generation module 506 is configured to connect the anchor points in a chronological order to generate a location track of the friend ID.
轨迹指向模块508,用于根据每个地理位置信息对应的分享时间信息在位置轨迹上显示表征时间指向的箭头,箭头指向与时间流向相同。The track pointing module 508 is configured to display an arrow representing time pointing on the location track according to the sharing time information corresponding to each geographic location information, and the arrow pointing is the same as the time flow direction.
在一个实施例中,附近好友确定模块402,还用于筛选时间分享信息满足时间预设条件的第一好友标识;确定筛选的第二用户的分享信息中距离当前时刻最近的分享时间对应的地理位置信息;筛选确定的地理位置信息中与第一用户的地理位置符合设定距离条件的地理位置信息,进而确定筛选的地理位置信息对应的第二用户标识。In one embodiment, the nearby friend determination module 402 is also used to screen the first friend ID whose time sharing information satisfies the time preset condition; determine the geographic location corresponding to the sharing time closest to the current moment in the screened second user's shared information Location information: screening geographic location information that meets a set distance condition with the geographic location information of the first user among the determined geographic location information, and then determining a second user identifier corresponding to the filtered geographic location information.
在一个实施例中,附近好友显示模块406还用于以列表的形式显示好友信息,每个显示的好友信息包括好友的属性信息和导航指示图标。获取对导航指示图标的触发操作,跳转页面至导航页面,在导航页面中自动导入对应的好友的地理位置信息。In one embodiment, the nearby friend display module 406 is further configured to display friend information in the form of a list, and each displayed friend information includes friend attribute information and a navigation indicator icon. Obtain a trigger operation on the navigation indicator icon, jump to the navigation page, and automatically import the geographic location information of the corresponding friend in the navigation page.
以上所述实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The various technical features of the above-mentioned embodiments can be combined arbitrarily. To make the description concise, all possible combinations of the various technical features in the above-mentioned embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, should be considered as within the scope of this specification.
以上所述实施例仅表达了本发明的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干变形和改进,这些都属于本发明的保护范围。因此,本发明专利的保护范围应以所附权利要求为准。The above-mentioned embodiments only express several implementation modes of the present invention, and the descriptions thereof are relatively specific and detailed, but should not be construed as limiting the patent scope of the invention. It should be pointed out that those skilled in the art can make several modifications and improvements without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the patent for the present invention should be based on the appended claims.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610974592.6A CN106570762A (en) | 2016-10-28 | 2016-10-28 | Method and apparatus for finding nearby friends |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610974592.6A CN106570762A (en) | 2016-10-28 | 2016-10-28 | Method and apparatus for finding nearby friends |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN106570762A true CN106570762A (en) | 2017-04-19 |
Family
ID=58541599
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201610974592.6A Withdrawn CN106570762A (en) | 2016-10-28 | 2016-10-28 | Method and apparatus for finding nearby friends |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN106570762A (en) |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110298527A (en) * | 2018-03-23 | 2019-10-01 | 阿里巴巴集团控股有限公司 | Information output method, system and equipment |
| CN110427572A (en) * | 2019-07-15 | 2019-11-08 | 奇酷互联网络科技(深圳)有限公司 | Method for finding friends, mobile terminal and storage medium |
| CN112311819A (en) * | 2019-07-25 | 2021-02-02 | 长城汽车股份有限公司 | Information sharing method, device and system based on location triggering |
| CN113438145A (en) * | 2020-03-23 | 2021-09-24 | 邓友云 | Method and device for quickly adding friend users in instant messaging |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101720055A (en) * | 2009-11-18 | 2010-06-02 | 华为终端有限公司 | Method and mobile terminal for prompting geographical position of contact person |
| CN102377800A (en) * | 2010-08-19 | 2012-03-14 | 昆达电脑科技(昆山)有限公司 | Method for finding nearby friends and handheld electronic device |
| CN104182495A (en) * | 2014-08-13 | 2014-12-03 | 墨仕(厦门)电子商务有限公司 | SNS location information matching method based on scenes |
-
2016
- 2016-10-28 CN CN201610974592.6A patent/CN106570762A/en not_active Withdrawn
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101720055A (en) * | 2009-11-18 | 2010-06-02 | 华为终端有限公司 | Method and mobile terminal for prompting geographical position of contact person |
| CN102377800A (en) * | 2010-08-19 | 2012-03-14 | 昆达电脑科技(昆山)有限公司 | Method for finding nearby friends and handheld electronic device |
| CN104182495A (en) * | 2014-08-13 | 2014-12-03 | 墨仕(厦门)电子商务有限公司 | SNS location information matching method based on scenes |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110298527A (en) * | 2018-03-23 | 2019-10-01 | 阿里巴巴集团控股有限公司 | Information output method, system and equipment |
| CN110427572A (en) * | 2019-07-15 | 2019-11-08 | 奇酷互联网络科技(深圳)有限公司 | Method for finding friends, mobile terminal and storage medium |
| CN112311819A (en) * | 2019-07-25 | 2021-02-02 | 长城汽车股份有限公司 | Information sharing method, device and system based on location triggering |
| CN113438145A (en) * | 2020-03-23 | 2021-09-24 | 邓友云 | Method and device for quickly adding friend users in instant messaging |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US9479900B2 (en) | Geographic location-based communications method, mobile terminal, server, and geographic location-based communications system | |
| US8660582B2 (en) | System and method for electronic communications between users in a similar geographic location | |
| US8655385B2 (en) | Social networking methods and apparatus for use in facilitating participation in user-relevant social groups | |
| CN105530607B (en) | User recommendation method, device and system | |
| US20180107342A1 (en) | Message composition indicators | |
| US20140095509A1 (en) | Method of tagging content lacking geotags with a location | |
| KR101667946B1 (en) | Determining additional information associated with geographic location information | |
| US20130246525A1 (en) | Instant transition from a public conversation thread to a private chat or instant message environment | |
| US11356498B2 (en) | Method and a device for sharing a hosted application | |
| KR20220000149A (en) | Method and system for providing relevance information between users | |
| JP2019114282A (en) | Control program for terminal equipment, control method for terminal equipment, and terminal equipment | |
| CN112395509B (en) | Information display method, information providing method, device and computer readable medium | |
| CN105553831B (en) | Message delivery method and system | |
| US11281761B2 (en) | Method and system for using a plurality of accounts in an instant messaging application | |
| KR20170038807A (en) | Instant messaging group polls | |
| CN106570762A (en) | Method and apparatus for finding nearby friends | |
| US20140025752A1 (en) | Message distribution and viewing rules in a network | |
| KR102392436B1 (en) | Sharing media data and location information via instant messaging | |
| KR20170038806A (en) | Instant messaging | |
| CN105992145A (en) | Location information sharing method and system | |
| CN112994906A (en) | Method, device, storage medium and computer equipment for joining group | |
| US9363135B1 (en) | Social vicinity service for social networks | |
| CN107948047B (en) | User recommendation method and terminal | |
| CN108391233B (en) | Geographic position sharing method, device and system | |
| US20170187872A1 (en) | System and method for device availability signaling |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| WW01 | Invention patent application withdrawn after publication | ||
| WW01 | Invention patent application withdrawn after publication |
Application publication date: 20170419 |