WO2016161848A1 - 基于社交网络应用的距离显示方法、终端和服务器 - Google Patents

基于社交网络应用的距离显示方法、终端和服务器 Download PDF

Info

Publication number
WO2016161848A1
WO2016161848A1 PCT/CN2016/074121 CN2016074121W WO2016161848A1 WO 2016161848 A1 WO2016161848 A1 WO 2016161848A1 CN 2016074121 W CN2016074121 W CN 2016074121W WO 2016161848 A1 WO2016161848 A1 WO 2016161848A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
icon
distance
social network
network application
Prior art date
Application number
PCT/CN2016/074121
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 腾讯科技(深圳)有限公司
Publication of WO2016161848A1 publication Critical patent/WO2016161848A1/zh
Priority to US15/432,736 priority Critical patent/US9930489B2/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/023Services making use of location information using mutual or relative location information between multiple location based services [LBS] targets or of distance thresholds
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/52User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail for supporting social networking 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/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
    • H04W8/00Network data management
    • H04W8/005Discovery of network devices, e.g. terminals

Definitions

  • the present invention relates to the field of computer technologies, and in particular, to a distance display method, a terminal, and a server based on a social network application.
  • a distance display method based on a social network application comprising:
  • the first terminal establishes a connection with the second terminal by using the social network application
  • the first terminal generates an icon corresponding to the distance according to the distance, and displays on the interface of the social network application.
  • a terminal includes a memory and a processor, wherein the memory stores instructions that, when executed by the processor, cause the processor to perform the following steps:
  • An icon corresponding to the distance is generated according to the distance, and displayed on an interface of the social network application.
  • a distance display method based on a social network application comprising:
  • a server includes a memory and a processor, the memory storing instructions that, when executed by the processor, cause the processor to perform the following steps:
  • 1 is an application environment diagram of a distance display method based on a social network application in an embodiment
  • Figure 2 is a diagram showing the internal structure of the terminal of Figure 1 in an embodiment
  • Figure 3 is a diagram showing the internal structure of the server of Figure 1 in an embodiment
  • FIG. 4 is a flowchart of a method for displaying a distance based on a social network application in an embodiment
  • FIG. 5 is a schematic diagram of an interface for establishing a social network application before connection in an embodiment
  • FIG. 6 is a schematic diagram of an interface of a social network application while waiting for a connection in an embodiment
  • FIG. 7 is a schematic diagram of an interface of a social network application connecting a request recipient in an embodiment
  • FIG. 8 is a schematic diagram of an interface of a social network application after establishing a connection in an embodiment
  • Figure 9 is a flow chart of generating an icon in one embodiment
  • FIG. 10 is a schematic diagram of an interface of a social network application after establishing a connection in another embodiment
  • FIG. 11 is a flowchart of a method for displaying a distance based on a social network application in an embodiment
  • FIG. 12 is a structural block diagram of a terminal in an embodiment
  • FIG. 13 is a structural block diagram of a display implementation module in an embodiment
  • Figure 14 is a block diagram showing the structure of a server in one embodiment.
  • FIG. 1 is an application environment diagram of a distance display method based on a social network application in an embodiment.
  • the application environment includes a terminal 110, a server 120, and a terminal 130. Both the terminal 110 and the terminal 130 can communicate with the server 120 over a network.
  • the terminal 110 and the terminal 130 may be a smart phone, a tablet computer, a notebook computer, a desktop computer, or the like having a positioning function, but are not limited thereto.
  • the terminal 110 and the terminal 130 can obtain their own location information according to the own positioning function.
  • a social network application is installed on the terminal 110 and the terminal 130, and a connection can be established with another terminal through the social network application.
  • Server 120 may include a plurality of servers that may respond to requests sent by social network applications.
  • the internal structure of the terminal 110 in FIG. 1 is as shown in FIG. 2.
  • the terminal 110 includes a processor, a graphics processing unit, a storage medium, a memory, a network interface, a display screen, and an input device connected through a system bus. And positioning system.
  • the storage medium of the terminal 110 stores an operating system, and further includes a distance display device based on the social network application, and the device is used to implement a distance display method based on the social network application.
  • the processor is used to provide computing and control capabilities to support the operation of the entire terminal 110.
  • the graphics processing unit in the terminal 110 is configured to provide at least a rendering capability of the display interface
  • the memory is an operation providing environment of the social network application-based distance display device in the storage medium
  • the network interface is used for network communication with the server 120, such as sending a connection.
  • the request is made to the server 120, and the data returned by the server 120 and the like are received.
  • the display screen is used to display an application interface or the like, such as displaying an icon on the application interface
  • the input device is configured to receive a command or data input by the user.
  • the display screen and the input device can be a touch screen.
  • the positioning system is configured to acquire location information of the terminal 110.
  • FIG. 3 the internal structure of server 120 in FIG. 1 is illustrated in FIG. 3, which includes a processor, storage medium, memory, and network interface connected by a system bus.
  • the storage medium of the server 120 stores an operating system, a database, and a social network application-based distance display device.
  • the database is used to store data, and the device is used to implement a social network application-based distance suitable for the server 120. Display method.
  • the processor of the server 120 is used to provide computing and control capabilities to support the operation of the entire server 120.
  • the memory of the server 120 is an operational providing environment for a social network application based distance device in a storage medium.
  • the network interface of the server 120 is used to communicate with the external terminal 110 and the terminal 130 via a network connection, such as receiving the request sent by the terminal 110 and the terminal 130, and returning data to the terminal 110 and the terminal 130.
  • a distance display method based on a social network application is provided to be applied to a terminal in the application environment, and the following steps are included:
  • Step S210 The first terminal establishes a connection with the second terminal by using the social network application.
  • the social network application is an application software that provides various contacts or interaction paths for the user, such as Facebook, Weibo, instant messaging software, etc., but is not limited thereto.
  • a social network application is installed on the first terminal and the second terminal, and the first terminal can establish a connection request with the second terminal by submitting a connection request through a virtual button on the social network application. It can be understood that before establishing the connection, the first terminal that sends the connection request and the second terminal that receives the connection request both install the social network application and establish a friend relationship. The first terminal first logs in to the social network application, finds the friend who needs to connect, and then sends a connection request. As shown in FIG.
  • the icon 330 displays the buddy avatar and the buddy name to be connected, and the icon 320 is an instant messaging button, and the connection request is sent through the icon 310 on the interface, and the icon 310 is received.
  • the interface is displayed as shown in FIG. 6, the icon 340 indicates that the request has been issued, and the icon 350 indicates that the other party is waiting to receive.
  • the interface of the social network application on the second terminal is as shown in FIG. 7.
  • the icon 360 indicates that there is a connection request waiting for acceptance, the icon 370 displays the buddy avatar and the buddy name of the connection request, and the icon 360 receives the input click and connects.
  • the request is accepted, and the first terminal and the second terminal establish a connection successfully. It can be understood that the reject connection request icon can be displayed on the interface of the social network application, and the connection request is rejected by this icon.
  • Step S220 the first terminal acquires a distance from the second terminal.
  • the mobile communication system can obtain the geographic location information of the mobile terminal by using a specific positioning technology, and the positioning manner is divided into a network-based (E-SMLC-based) positioning method and a UE-based (UE-based)-based Targeting.
  • the network-based positioning method means that the location calculation of the UE is in the E-SMLC.
  • Evolved Serving Mobile Location In the Center, the evolved service mobile location center, the UE-based positioning mode means that the location calculation of the UE is performed in the UE.
  • the first terminal and the second terminal pass positioning functions, such as GPS (Global Positioning System, Global Positioning System (GPS) positioning system or LTE positioning service system, respectively obtain their own location information, after the first terminal and the second terminal respectively obtain their own location information, they can send their own location information, by the first terminal or
  • the second terminal calculates the distance between the terminals according to the location information, and may also send its own location information to the third terminal or the server to calculate the distance between the terminals. If the second terminal or the third terminal or the server calculates the distance between the first terminal and the second terminal, the first terminal acquires the distance by sending a request.
  • Step S230 the first terminal generates an icon corresponding to the distance according to the distance, and displays on the interface of the social network application.
  • the correspondence between the distance and the icon is obtained, and the corresponding relationship can be customized according to requirements.
  • Different distances can correspond to icons with different expressions, and the representation includes static form and dynamic form.
  • the static form includes the size of the icon, the color of the icon, and the icon.
  • Patterns, etc., dynamic shapes include the animation speed of the icon, such as flashing speed for fast or slow, animated actions such as flying in or gradual.
  • An icon corresponding to the distance is generated according to the correspondence, and displayed on the interface of the social network application. Since the distance may change according to the position of the terminal, the generated icons are also constantly changing, forming a dynamic change icon to quickly and intuitively display the distance between the terminals.
  • the icon 410 is a font icon, and its size is changed in real time according to the distance between the terminals, and its flashing speed is also real-time according to the distance between the terminals.
  • Change, icon 420 displays the actual distance between the terminals
  • icon 430 displays the buddy avatar.
  • a font icon can be displayed on both the interface of the first terminal and the second terminal. It can be understood that the icon 410 can change from the font icon to the icon of other patterns when the distance reaches the preset condition, and can also be changed from dynamic flashing to stationary.
  • the first terminal establishes a connection with the second terminal through the social network application, the first terminal acquires a distance between the second terminal and the second terminal, and generates a corresponding icon according to the distance, where the icon directly corresponds to the distance, and the distance is according to the terminal.
  • the generated icons are constantly changing and displayed on the interface of the social networking application, so that the distance between the terminals can be quickly and intuitively displayed through the icons.
  • the step of the first terminal generating an icon corresponding to the distance according to the distance includes:
  • Step S510 obtaining a level corresponding to the distance, and determining a performance form corresponding to the icon according to the level.
  • the distance is divided into different levels, such as three levels: far, medium, and near, and the three levels respectively correspond to different distances. Different levels correspond to different icon representations.
  • the level at which the distance is located is found, and then the representation corresponding to the icon is determined according to the correspondence between the level and the representation pattern of the icon. Divide the distance into different levels and classify them into the same level within a certain distance range. Instead of obtaining the icon representation of the distance at each distance, the level can quickly get the representation of the icon.
  • Step S520 generating a corresponding icon according to the representation form corresponding to the icon.
  • icons corresponding to the respective parameters are generated according to various parameters of the icon described by the expression form, such as an icon size parameter, an animation parameter of the icon, a pattern parameter of the icon, and the like.
  • the icon is a heartbeat icon and the size of the heartbeat icon is inversely proportional to the magnitude of the distance.
  • the heartbeat icon when the distance between the terminals is long, the heartbeat icon becomes small, and when the distance between the terminals is close, the heartbeat icon becomes large. Through the heartbeat icon is getting bigger and bigger, I feel that the other party is getting closer and closer to myself.
  • the icon 440 is a heartbeat icon, and its size is changed in real time according to the distance between the terminals.
  • the heartbeat icon can be displayed on both the interface of the first terminal and the second terminal, so that both sides have a feeling of heartbeat.
  • a distance display method based on a social network application is provided to be applied to a server in the application environment, and the following steps are included:
  • Step S610 establishing a connection between the first terminal and the second terminal by using the social network application.
  • the server can provide services by interacting with a social network application installed on the terminal.
  • the first terminal sends a connection request to the server through the social network application, where the connection request includes information of the connection request recipient, such as a user name, etc.
  • the server determines, according to the connection request, the second terminal where the connection request recipient is located, and establishes the first terminal and The connection between the second terminals. It can be understood that before establishing the connection, the first terminal and the second terminal log in through the user name in the social network application, and establish a friend relationship. When logging in, the terminal information is submitted, and the server sends the customer information. If the username is bound to the corresponding terminal information, the terminal where the username is located can be determined according to the username.
  • Step S620 Acquire first location information of the first terminal and second location information of the second terminal, and calculate a distance between the first terminal and the second terminal according to the first location information and the second location information.
  • the first terminal and the second terminal respectively acquire the first location information of the first terminal and the second location information of the second terminal by using a positioning function, such as a GPS positioning system, and send the respective location information to the server, the server. Calculating a distance between the first terminal and the second terminal according to the first location information and the second location information.
  • a positioning function such as a GPS positioning system
  • Step S630 Display an icon on the interface of the social networking application of the first terminal and the second terminal according to the representation form corresponding to the icon according to the representation form corresponding to the icon.
  • the correspondence between the distance and the representation form of the icon can be customized, and the corresponding relationship can be customized according to requirements.
  • Different distances correspond to different representations
  • the representation includes static form and dynamic form.
  • the static form includes the size of the icon, the color of the icon, and The pattern of the icon, etc.
  • the dynamic form includes the animation speed of the icon, such as the speed of flashing for fast or slow, animated actions such as flying in or gradual.
  • each of the icons described according to the performance form Parameters such as the size parameter of the icon, the animation parameter of the icon, the pattern parameter of the icon, etc. generate icons corresponding to the respective parameters, and display icons on the interface of the respective social network application. Since the distance may change according to the position of the terminal, the generated icons are also constantly changing, forming a dynamic change icon to quickly and intuitively display the distance between the terminals.
  • the connection between the first terminal and the second terminal is established by the social network application, and the first location information of the first terminal and the second location information of the second terminal are obtained, according to the first location information and the second location.
  • the information is calculated to obtain the distance between the first terminal and the second terminal, and the representation form corresponding to the icon is determined according to the distance.
  • the expression form of the icon directly corresponds to the distance, and the distance changes according to the position of the terminal, and the expression form of the icon also changes continuously. Therefore, the icons displayed on the interface of the social networking application of the first terminal and the second terminal are also constantly changed according to the performance form, and the distance between the terminals can be displayed quickly and intuitively.
  • the step of determining the performance form corresponding to the icon according to the distance comprises: acquiring a level corresponding to the distance, and determining a performance form corresponding to the icon according to the level.
  • the distance is divided into different levels, such as three levels: far, medium, and near, and the three levels respectively correspond to different distances. Different levels correspond to different icon representations.
  • the level at which the distance is located is found, and then the representation corresponding to the icon is determined according to the correspondence between the level and the representation pattern of the icon. Divide the distance into different levels and classify them into the same level within a certain distance range. Instead of obtaining the icon representation of the distance at each distance, the level can quickly get the representation of the icon.
  • the icon is a heartbeat icon and the display size of the heartbeat icon is inversely proportional to the magnitude of the value of the distance.
  • the heartbeat icon display becomes small, and when the distance between the terminals is close, the heartbeat icon display becomes large.
  • the heartbeat icon is getting bigger and bigger, and I feel that the other person is getting closer and closer to myself.
  • the heartbeat icon can be displayed on both the interface of the first terminal and the second terminal, so that both sides have a feeling of heartbeat.
  • a terminal is provided.
  • the internal structure of the terminal may correspond to the structure shown in FIG. 2.
  • Each of the following modules may be implemented in whole or in part by software, hardware, or a combination thereof.
  • the terminal includes:
  • the module 710 is configured to establish, by the first terminal, a connection with the second terminal by using a social network application.
  • the distance obtaining module 720 is configured to acquire, by the first terminal, a distance from the second terminal.
  • the display implementation module 730 is configured to generate, by the first terminal, an icon corresponding to the distance according to the distance, and display the interface on the interface of the social network application.
  • the display implementation module 730 includes:
  • the icon representation determining unit 731 is configured to acquire a level corresponding to the distance, and determine a performance form corresponding to the icon according to the level.
  • the icon generating unit 732 is configured to generate a corresponding icon according to the representation form corresponding to the icon.
  • the icon is a heartbeat icon and the size of the heartbeat icon is inversely proportional to the magnitude of the distance.
  • a server is provided.
  • the internal structure of the server may correspond to the structure shown in FIG. 3.
  • Each of the following modules may be implemented in whole or in part by software, hardware, or a combination thereof.
  • the server includes:
  • a connection module 810 is established for establishing a connection between the first terminal and the second terminal by using a social network application.
  • the distance calculation module 820 is configured to acquire first location information of the first terminal and second location information of the second terminal, and calculate a distance between the first terminal and the second terminal according to the first location information and the second location information.
  • the display module 830 is configured to determine an expression corresponding to the icon according to the distance, and display an icon on an interface of the social networking application of the first terminal and the second terminal according to the representation manner corresponding to the icon.
  • the display module 830 is further configured to acquire a level corresponding to the distance, and determine a performance form corresponding to the icon according to the level.
  • the icon is a heartbeat icon and the display size of the heartbeat icon is inversely proportional to the magnitude of the value of the distance.
  • the storage medium may be a magnetic disk, an optical disk, or a read-only storage memory (Read-Only) Memory, ROM) or Random Access Memory (RAM).

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Computing Systems (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

一种基于社交网络应用的距离显示方法,包括:第一终端通过社交网络应用与第二终端建立连接,所述第一终端获取与所述第二终端之间的距离,所述第一终端根据所述距离生成与所述距离对应的图标,并在所述社交网络应用的界面上进行显示。

Description

基于社交网络应用的距离显示方法、终端和服务器
本申请要求于2015年4月7日提交中国专利局、申请号为201510161458.X、发明名称为“基于社交网络应用的距离显示方法和装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
【技术领域】
本发明涉及计算机技术领域,特别是涉及一种基于社交网络应用的距离显示方法、终端和服务器。
【背景技术】
随着互联网技术的发展,各种网络应用在人们的日常生活中越来越常见,用户通过各种网络应用进行交流互动,如通过社交网络应用与好友联系,同时对网络应用的功能要求也越来越高。
现有的方案在用户想要知道另一方与自己之间的距离时,往往是直接由另一方发送自己的位置信息,用户通过位置信息查找地图判断对方距离自己的远近,这种方法不能使用户快速直观的感受对方与自己的距离。
【发明内容】
一种基于社交网络应用的距离显示方法,包括:
第一终端通过社交网络应用与第二终端建立连接;
所述第一终端获取与所述第二终端之间的距离;及
所述第一终端根据所述距离生成与所述距离对应的图标,并在所述社交网络应用的界面上进行显示。
一种终端,包括内存和处理器,所述内存中储存有指令,所述指令被所述处理器执行时,可使得所述处理器执行以下步骤:
通过社交网络应用与第二终端建立连接;
获取与所述第二终端之间的距离;
根据所述距离生成与所述距离对应的图标,并在所述社交网络应用的界面上进行显示。
一种基于社交网络应用的距离显示方法,包括:
通过社交网络应用建立第一终端与第二终端之间的连接;
获取所述第一终端的第一位置信息和所述第二终端的第二位置信息,根据所述第一位置信息和第二位置信息计算得到所述第一终端和第二终端之间的距离;
根据所述距离确定所述图标对应的表现形态,根据所述图标对应的表现形态在所述第一终端和第二终端的社交网络应用的界面上显示所述图标。
一种服务器,包括内存和处理器,所述内存中储存有指令,所述指令被所述处理器执行时,可使得所述处理器执行以下步骤:
通过社交网络应用建立第一终端与第二终端之间的连接;
获取所述第一终端的第一位置信息和所述第二终端的第二位置信息,根据所述第一位置信息和第二位置信息计算得到所述第一终端和第二终端之间的距离;
根据所述距离确定所述图标对应的表现形态,根据所述图标对应的表现形态在所述第一终端和第二终端的社交网络应用的界面上显示所述图标。
【附图说明】
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为一个实施例中基于社交网络应用的距离显示方法运行的应用环境图;
图2为一个实施例中图1中的终端的内部结构图;
图3为一个实施例中图1中的服务器的内部结构图;
图4为一个实施例中基于社交网络应用的距离显示方法的流程图;
图5为一个实施例中建立连接前社交网络应用的界面示意图;
图6为一个实施例中等待连接时社交网络应用的界面示意图;
图7为一个实施例中连接请求接收方的社交网络应用的界面示意图;
图8为一个实施例中建立连接后社交网络应用的界面示意图;
图9为一个实施例中生成图标的流程图;
图10为另一个实施例中建立连接后社交网络应用的界面示意图;
图11为一个实施例中基于社交网络应用的距离显示方法的流程图;
图12为一个实施例中终端的结构框图;
图13为一个实施例中显示实现模块的结构框图;
图14为一个实施例中服务器的结构框图。
【具体实施方式】
图1为一个实施例中基于社交网络应用的距离显示方法运行的应用环境图。如图1所示,该应用环境包括终端110、服务器120、终端130。终端110、终端130都可以和服务器120通过网络进行通信。
终端110、终端130可为具备定位功能的智能手机、平板电脑、笔记本电脑、台式计算机等,但并不局限于此。终端110、终端130可以根据自带的定位功能得到自己的位置信息。终端110、终端130上安装有社交网络应用,可以通过社交网络应用请求与另一终端建立连接。服务器120可包括多个服务器,可以响应社交网络应用发送的请求。
在一个实施例中,图1中的终端110的内部结构如图2所示,该终端110包括通过系统总线连接的处理器、图形处理单元、存储介质、内存、网络接口、显示屏幕、输入设备和定位系统。其中,终端110的存储介质存储有操作系统,还包括一种基于社交网络应用的距离显示装置,该装置用于实现一种基于社交网络应用的距离显示方法。该处理器用于提供计算和控制能力,支撑整个终端110的运行。终端110中的图形处理单元用于至少提供显示界面的绘制能力,内存为存储介质中的基于社交网络应用的距离显示装置的运行提供环境,网络接口用于与服务器120进行网络通信,如发送连接请求至服务器120,接收服务器120返回的数据等。显示屏幕用于显示应用界面等,如显示应用界面上的图标等,输入设备用于接收用户输入的命令或数据等。对于带触摸屏的终端110,显示屏幕和输入设备可为触摸屏。定位系统用于获取终端110的位置信息。
在一个实施例中,图1中的服务器120的内部结构如图3所示,该服务器120包括通过系统总线连接的处理器、存储介质、内存和网络接口。其中,该服务器120的存储介质存储有操作系统、数据库和一种基于社交网络应用的距离显示装置,数据库用于存储数据,该装置用于实现一种适用于服务器120的基于社交网络应用的距离显示方法。该服务器120的处理器用于提供计算和控制能力,支撑整个服务器120的运行。该服务器120的内存为存储介质中的基于社交网络应用的距离装置的运行提供环境。该服务器120的网络接口用于与外部的终端110和终端130通过网络连接通信,比如接收终端110和终端130发送的请求以及向终端110和终端130返回的数据等。
如图4所示,在一个实施例中,提供了一种基于社交网络应用的距离显示方法,以应用于上述应用环境中的终端来举例说明,包括如下步骤:
步骤S210,第一终端通过社交网络应用与第二终端建立连接。
具体的,社交网络应用是为用户提供各种联系或交互通路的应用软件,例如Facebook、微博、即时通信软件等,但不限于此。第一终端和第二终端上安装有社交网络应用,第一终端可以通过社交网络应用上的虚拟按键提交连接请求与第二终端建立连接。可以理解的是,在建立连接前,发送连接请求的第一终端和接收连接请求的第二终端都安装了社交网络应用,并建立了好友关系。第一终端先登录社交网络应用,查找到需要连接的好友,然后发出连接请求。如图5所示,为第一终端上社交网络应用的界面示意图,图标330显示需要连接的好友头像和好友名称,图标320为即时通讯按键,通过界面上的图标310发送连接请求,图标310接收输入的点击后,界面显示如图6表示,图标340表示请求已发出,图标350表示正在等待对方接收。此时,第二终端上的社交网络应用的界面如图7所示,图标360表示有连接请求等待接受,图标370显示发送连接请求的好友头像和好友名称,图标360接收输入的点击后,连接请求被接受,第一终端和第二终端建立连接成功。可以理解的是,社交网络应用的界面上可以显示拒绝连接请求图标,通过此图标拒绝连接请求。
步骤S220,第一终端获取与第二终端之间的距离。
具体的,移动通信系统可通过特定的定位技术获取移动终端的地理位置信息,定位方式分为支持基于网络(Network-based、E-SMLC-based)的定位方式和基于UE(UE-based)的定位方式。基于网络的定位方式是指UE的位置计算是在E-SMLC (Evolved Serving Mobile Location Center,演进的服务移动位置中心)中进行,基于UE的定位方式是指UE的位置计算是在UE内进行。第一终端和第二终端通过定位功能,如GPS(Global Positioning System,全球定位系统)定位系统或LTE定位业务系统,分别获取自己的位置信息,在第一终端和第二终端分别得到自己的位置信息后,可以相互发送自己的位置信息,由第一终端或第二终端根据位置信息计算得到终端之间的距离,也可以将自己的位置信息发给第三终端或服务器来计算终端之间的距离。如果是第二终端或第三终端或服务器计算得到第一终端和第二终端之间的距离,则第一终端通过发送请求的方式获取所述距离。
步骤S230,所述第一终端根据距离生成与距离对应的图标,并在社交网络应用的界面上进行显示。
具体的,获取距离与图标的对应关系,可以根据需要自定义对应关系,不同距离可对应表现形态不同的图标,表现形态包括静态形态和动态形态,静态形态包括图标的大小、图标的颜色、图标的图案等,动态形态包括图标的动画速度,如闪动的速度为快速或慢速,动画动作,如飞入或渐变等。
根据对应关系生成与距离对应的图标,并在社交网络应用的界面上进行显示。由于距离可能根据终端的位置不断变化,则生成的图标也不断的变化,形成一种动态的变化图标,快速直观的显示终端之间的距离。如图8所示,为显示图标的社交网络应用的界面,图标410为字型图标,它的大小会根据终端之间的距离实时改变,它的闪动速度也会根据终端之间的距离实时改变,图标420显示终端之间的实际距离,图标430显示好友头像。可以在第一终端和第二终端的界面上都显示字型图标。可以理解的是,当距离达到预设条件时图标410可从字型图标变为其它图案的图标,也可由动态的闪动变为静止不动。
本实施例中,通过第一终端通过社交网络应用与第二终端建立连接,第一终端获取与第二终端之间的距离,根据距离生成对应的图标,图标与距离直接对应,距离根据终端的位置不断变化,则生成的图标也不断的变化,并在社交网络应用的界面上进行显示,从而能通过图标快速直观的显示终端之间的距离。
在一个实施例中,如图9所示,第一终端根据距离生成与距离对应的图标的步骤包括:
步骤S510,获取与距离对应的级别,根据级别确定图标对应的表现形态。
具体的,将距离分为不同的级别,如分为远、中、近三个级别,三个级别分别对应不同的距离。不同的级别对应不同的图标表现形态。得到距离后,找到距离所在的级别,然后根据级别与图标表现形态的对应关系确定图标对应的表现形态。将距离分为不同的级别,在一定的距离范围内归为同一个级别,不用每个距离都获取一次距离对应的图标表现形态,得到级别就能快速得到图标的表现形态。
步骤S520,根据图标对应的表现形态生成相应的图标。
具体的,得到图标的表现形态后,根据表现形态所描述的图标的各个参数,如图标的大小参数,图标的动画参数、图标的图案参数等生成与各个参数相应的图标。
在一个实施例中,图标为心跳图标,心跳图标的大小与距离的值的大小成反比关系。
具体的,当终端之间的距离远时,心跳图标变小,当终端之间的距离近时,心跳图标变大。通过心跳图标越来越大,感觉到对方离自己越来越近。如图10所示,为显示心跳图标的社交网络应用的界面,图标440为心跳图标,它的大小会根据终端之间的距离实时改变。可以在第一终端和第二终端的界面上都显示心跳图标,让双方有一种心跳的感觉。
在一个实施例中,如图11所示,提供了一种基于社交网络应用的距离显示方法,以应用于上述应用环境中的服务器来举例说明,包括如下步骤:
步骤S610,通过社交网络应用建立第一终端与第二终端之间的连接。
具体的,服务器可以通过与终端上安装的社交网络应用交互来提供服务。第一终端通过社交网络应用发送连接请求至服务器,连接请求中包括有连接请求接收方的信息,如用户名等,服务器根据连接请求确定连接请求接收方所在的第二终端,建立第一终端与第二终端之间的连接。可以理解的是,在建立连接前,第一终端和第二终端在社交网络应用中通过用户名进行了登录,并建立了好友关系,在登录时,提交了各自的终端信息,服务器将客户信息,如用户名与对应的终端信息绑定,从而能根据用户名确定用户名所在的终端。
步骤S620,获取第一终端的第一位置信息和第二终端的第二位置信息,根据第一位置信息和第二位置信息计算得到第一终端和第二终端之间的距离。
具体的,第一终端和第二终端通过定位功能,如GPS定位系统,分别获取第一终端的第一位置信息和第二终端的第二位置信息,并将各自的位置信息发送至服务器,服务器根据第一位置信息和第二位置信息计算得到第一终端和第二终端之间的距离。
步骤S630,根据距离确定图标对应的表现形态,根据图标对应的表现形态在第一终端和第二终端的社交网络应用的界面上显示图标。
具体的,获取距离与图标的表现形态的对应关系,可以根据需要自定义对应关系,不同距离对应不同的表现形态,表现形态包括静态形态和动态形态,静态形态包括图标的大小、图标的颜色、图标的图案等,动态形态包括图标的动画速度,如闪动的速度为快速或慢速,动画动作,如飞入或渐变等。根据对应关系确定与距离对应的图标的表现形态,并将此表现形态发送至第一终端和第二终端,第一终端和第二终端收到表现形态后,根据表现形态所描述的图标的各个参数,如图标的大小参数,图标的动画参数、图标的图案参数等生成与各个参数相应的图标,并在各自的社交网络应用的界面上显示图标。由于距离可能根据终端的位置不断变化,则生成的图标也不断的变化,形成一种动态的变化图标,快速直观的显示终端之间的距离。
本实施例中,通过社交网络应用建立第一终端与第二终端之间的连接,获取第一终端的第一位置信息和第二终端的第二位置信息,根据第一位置信息和第二位置信息计算得到第一终端和第二终端之间的距离,根据距离确定图标对应的表现形态,图标的表现形态与距离直接对应,距离根据终端的位置不断变化,则图标的表现形态也不断的变化,从而根据表现形态在第一终端和第二终端的社交网络应用的界面上显示的图标也不断变化,能快速直观的显示终端之间的距离。
在一个实施例中,根据距离确定图标对应的表现形态的步骤包括:获取与距离对应的级别,根据级别确定图标对应的表现形态。
具体的,将距离分为不同的级别,如分为远、中、近三个级别,三个级别分别对应不同的距离。不同的级别对应不同的图标表现形态。得到距离后,找到距离所在的级别,然后根据级别与图标表现形态的对应关系确定图标对应的表现形态。将距离分为不同的级别,在一定的距离范围内归为同一个级别,不用每个距离都获取一次距离对应的图标表现形态,得到级别就能快速得到图标的表现形态。
在一个实施例中,图标为心跳图标,且心跳图标的显示大小与距离的值的大小成反比关系。
具体的,当终端之间的距离远时,心跳图标显示变小,当终端之间的距离近时,心跳图标显示变大。通过心跳图标显示越来越大,感觉到对方离自己越来越近。可以在第一终端和第二终端的界面上都显示心跳图标,让双方有一种心跳的感觉。
在一个实施例中,提供了一种终端,终端的内部结构可对应于如图2所示的结构,下述每个模块可全部或部分通过软件、硬件或其组合来实现,终端包括:连接模块710,用于第一终端通过社交网络应用与第二终端建立连接。
距离获取模块720,用于第一终端获取与第二终端之间的距离。
显示实现模块730,用于第一终端根据距离生成与距离对应的图标,并在社交网络应用的界面上进行显示。
在一个实施例中,如图13所示,显示实现模块730包括:
图标表现形态确定单元731,用于获取与距离对应的级别,根据级别确定图标对应的表现形态。
图标生成单元732,用于根据图标对应的表现形态生成相应的图标。
在一个实施例中,图标为心跳图标,且心跳图标的大小与距离的值的大小成反比关系。
在一个实施例中,提供了一种服务器,服务器的内部结构可对应于如图3所示的结构,下述每个模块可全部或部分通过软件、硬件或其组合来实现,服务器包括:
建立连接模块810,用于通过社交网络应用建立第一终端与第二终端之间的连接。
距离计算模块820,用于获取第一终端的第一位置信息和第二终端的第二位置信息,根据第一位置信息和第二位置信息计算得到第一终端和第二终端之间的距离。
显示模块830,用于根据距离确定图标对应的表现形态,根据图标对应的表现形态在第一终端和第二终端的社交网络应用的界面上显示图标。
在一个实施例中,显示模块830还用于获取与距离对应的级别,根据级别确定图标对应的表现形态。
在一个实施例中,图标为心跳图标,且心跳图标的显示大小与距离的值的大小成反比关系。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述程序可存储于一计算机可读取存储介质中,如本发明实施例中,该程序可存储于计算机系统的存储介质中,并被该计算机系统中的至少一个处理器执行,以实现包括如上述各方法的实施例的流程。其中,所述存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。
以上所述实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。
以上所述实施例仅表达了本发明的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干变形和改进,这些都属于本发明的保护范围。因此,本发明专利的保护范围应以所附权利要求为准。

Claims (12)

  1. 一种基于社交网络应用的距离显示方法,包括:
    第一终端通过社交网络应用与第二终端建立连接;
    所述第一终端获取与所述第二终端之间的距离;及
    所述第一终端根据所述距离生成与所述距离对应的图标,并在所述社交网络应用的界面上进行显示。
  2. 根据权利要求1所述的方法,其特征在于,所述第一终端根据所述距离生成与所述距离对应的图标的步骤包括:
    获取与所述距离对应的级别,根据所述级别确定所述图标对应的表现形态;
    根据所述图标对应的表现形态生成相应的图标。
  3. 根据权利要求2所述的方法,其特征在于,所述图标为心跳图标,且所述心跳图标的大小与所述距离的值的大小成反比关系。
  4. 一种基于社交网络应用的距离显示方法,包括:
    通过社交网络应用建立第一终端与第二终端之间的连接;
    获取所述第一终端的第一位置信息和所述第二终端的第二位置信息,根据所述第一位置信息和第二位置信息计算得到所述第一终端和第二终端之间的距离;
    根据所述距离确定所述图标对应的表现形态,根据所述图标对应的表现形态在所述第一终端和第二终端的社交网络应用的界面上显示所述图标。
  5. 根据权利要求4所述的方法,其特征在于,所述根据所述距离确定所述图标对应的表现形态的步骤包括:
    获取与所述距离对应的级别,根据所述级别确定所述图标对应的表现形态。
  6. 根据权利要求4所述的方法,其特征在于,所述图标为心跳图标,且所述心跳图标的显示大小与所述距离的值的大小成反比关系。
  7. 一种终端,包括内存和处理器,所述内存中储存有指令,所述指令被所述处理器执行时,可使得所述处理器执行以下步骤:
    通过社交网络应用与第二终端建立连接;
    获取与所述第二终端之间的距离;
    根据所述距离生成与所述距离对应的图标,并在所述社交网络应用的界面上进行显示。
  8. 根据权利要求7所述的终端,其特征在于,所述处理器所执行的根据所述距离生成与所述距离对应的图标的步骤,具体包括:
    获取与所述距离对应的级别,根据所述级别确定所述图标对应的表现形态;
    根据所述图标对应的表现形态生成相应的图标。
  9. 根据权利要求8所述的终端,其特征在于,所述图标为心跳图标,且所述心跳图标的大小与所述距离的值的大小成反比关系。
  10. 一种服务器,包括内存和处理器,所述内存中储存有指令,所述指令被所述处理器执行时,可使得所述处理器执行以下步骤:
    通过社交网络应用建立第一终端与第二终端之间的连接;
    获取所述第一终端的第一位置信息和所述第二终端的第二位置信息,根据所述第一位置信息和第二位置信息计算得到所述第一终端和第二终端之间的距离;
    根据所述距离确定所述图标对应的表现形态,根据所述图标对应的表现形态在所述第一终端和第二终端的社交网络应用的界面上显示所述图标。
  11. 根据权利要求10所述的服务器,其特征在于,所述指令被所述处理器执行时,还可使得所述处理器执行以下步骤:
    获取与所述距离对应的级别,根据所述级别确定所述图标对应的表现形态。
  12. 根据权利要求10所述的服务器,所述图标为心跳图标,且所述心跳图标的显示大小与所述距离的值的大小成反比关系。
PCT/CN2016/074121 2015-04-07 2016-02-19 基于社交网络应用的距离显示方法、终端和服务器 WO2016161848A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US15/432,736 US9930489B2 (en) 2015-04-07 2017-02-14 Distance display method based on social networking application, terminal, and server

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510161458.X 2015-04-07
CN201510161458.XA CN106155868A (zh) 2015-04-07 2015-04-07 基于社交网络应用的距离显示方法和装置

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US15/432,736 Continuation US9930489B2 (en) 2015-04-07 2017-02-14 Distance display method based on social networking application, terminal, and server

Publications (1)

Publication Number Publication Date
WO2016161848A1 true WO2016161848A1 (zh) 2016-10-13

Family

ID=57072181

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/074121 WO2016161848A1 (zh) 2015-04-07 2016-02-19 基于社交网络应用的距离显示方法、终端和服务器

Country Status (3)

Country Link
US (1) US9930489B2 (zh)
CN (1) CN106155868A (zh)
WO (1) WO2016161848A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110851212B (zh) * 2018-08-20 2022-03-01 腾讯科技(深圳)有限公司 应用数据处理方法、装置、计算机设备和存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012088665A1 (zh) * 2010-12-28 2012-07-05 华为终端有限公司 对联系人进行处理的方法及移动终端
CN102694749A (zh) * 2012-06-12 2012-09-26 上海量明科技发展有限公司 即时通信中指示联系人对象方位的方法、客户端及系统
CN103927308A (zh) * 2013-01-14 2014-07-16 上海爱相随信息科技有限公司 融合solomo模式的移动互联网婚恋平台
CN104135713A (zh) * 2013-05-15 2014-11-05 腾讯科技(深圳)有限公司 用户信息推荐方法、装置、设备及系统
US20140328521A1 (en) * 2013-05-03 2014-11-06 Patrick Colangelo Social interaction using facial recognition

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110161856A1 (en) * 2009-12-28 2011-06-30 Nokia Corporation Directional animation for communications
US9183560B2 (en) * 2010-05-28 2015-11-10 Daniel H. Abelow Reality alternate
US10142687B2 (en) * 2010-11-07 2018-11-27 Symphony Advanced Media, Inc. Audience content exposure monitoring apparatuses, methods and systems
US9720555B2 (en) * 2011-12-23 2017-08-01 Gary SORDEN Location-based services
CN103929346B (zh) * 2013-01-11 2016-12-28 腾讯科技(深圳)有限公司 在即时通讯工具中分享距离信息的方法及系统
CN104144101B (zh) * 2013-05-10 2018-04-03 中国电信股份有限公司 一种即时通信方法和系统
US9866673B2 (en) * 2013-12-18 2018-01-09 Medlegal Network, Inc. Methods and systems of managing accident communications over a network
US20150188949A1 (en) * 2013-12-31 2015-07-02 Lookout, Inc. Cloud-based network security
KR20170008041A (ko) * 2015-07-13 2017-01-23 엘지전자 주식회사 이동 단말기 및 그것의 제어 방법

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012088665A1 (zh) * 2010-12-28 2012-07-05 华为终端有限公司 对联系人进行处理的方法及移动终端
CN102694749A (zh) * 2012-06-12 2012-09-26 上海量明科技发展有限公司 即时通信中指示联系人对象方位的方法、客户端及系统
CN103927308A (zh) * 2013-01-14 2014-07-16 上海爱相随信息科技有限公司 融合solomo模式的移动互联网婚恋平台
US20140328521A1 (en) * 2013-05-03 2014-11-06 Patrick Colangelo Social interaction using facial recognition
CN104135713A (zh) * 2013-05-15 2014-11-05 腾讯科技(深圳)有限公司 用户信息推荐方法、装置、设备及系统

Also Published As

Publication number Publication date
US20170164153A1 (en) 2017-06-08
CN106155868A (zh) 2016-11-23
US9930489B2 (en) 2018-03-27

Similar Documents

Publication Publication Date Title
CN110635911B (zh) 针对移动应用的本机单点登录(sso)的方法、设备和介质
CN112166591B (zh) 跨多个设备的数据同步
US9009603B2 (en) Web browser interface for spatial communication environments
CN108471376B (zh) 数据处理方法、装置及系统
US10673680B2 (en) Electronic device providing dialog contents, server and method thereof
US20120290643A1 (en) Client-server system
JP2016197444A (ja) モバイル・プッシュ通知
CN108702318A (zh) 一种rcs通信方法及设备
WO2021233262A1 (zh) 通信控制
WO2023039035A1 (en) User interface tile arrangement based on relative locations of conference participants
WO2016129811A1 (ko) 인스턴트 메시징 서비스에서 공식계정의 리치 메뉴를 제공하는 방법과 시스템 및 기록 매체
WO2017032076A1 (zh) 一种组建朋友圈以及基于朋友圈进行通信的方法及装置
CA3176392A1 (en) Systems and methods for media content communication
US20170126844A1 (en) Server architecture and protocol development
CN108880974B (zh) 会话群组创建方法及装置
CN114296675A (zh) 投屏状态确定方法、装置、设备及计算机可读存储介质
WO2021031386A1 (zh) 定位方法、装置、服务器、存储介质以及终端
US20210337040A1 (en) Method and device for pushing information
CN113162836B (zh) 虚拟局域网联通方法、装置、云服务器、介质和电子设备
US20200162447A1 (en) Single sign-on (sso) for internet of things (iot) applications
WO2016161848A1 (zh) 基于社交网络应用的距离显示方法、终端和服务器
JP7469948B2 (ja) マルチメディア通信のための端末連結方法およびシステム
US11676237B2 (en) Network based rendering and hosting systems and methods utilizing an aggregator
US11651467B2 (en) Network based provision of rendering and hosting systems
US11983788B2 (en) Network based rendering and hosting systems and methods utilizing an aggregator

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: 16776023

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16776023

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 11/04/2018)

122 Ep: pct application non-entry in european phase

Ref document number: 16776023

Country of ref document: EP

Kind code of ref document: A1