CN106993085A - Positioning result display methods and device, electronic equipment - Google Patents
Positioning result display methods and device, electronic equipment Download PDFInfo
- Publication number
- CN106993085A CN106993085A CN201710117934.7A CN201710117934A CN106993085A CN 106993085 A CN106993085 A CN 106993085A CN 201710117934 A CN201710117934 A CN 201710117934A CN 106993085 A CN106993085 A CN 106993085A
- Authority
- CN
- China
- Prior art keywords
- text
- search result
- positioning
- message
- display
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72457—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to geographic location
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
- G06F3/04883—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/543—User-generated data transfer, e.g. clipboards, dynamic data exchange [DDE], object linking and embedding [OLE]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/7243—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
- H04M1/72433—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for voice messaging, e.g. dictaphones
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/7243—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
- H04M1/72436—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for text messaging, e.g. short messaging services [SMS] or e-mails
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- General Engineering & Computer Science (AREA)
- General Business, Economics & Management (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Business, Economics & Management (AREA)
- Software Systems (AREA)
- Environmental & Geological Engineering (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
Description
技术领域technical field
本公开涉及信息处理技术领域,尤其涉及一种定位结果显示方法及装置、电子设备。The present disclosure relates to the technical field of information processing, and in particular to a positioning result display method and device, and electronic equipment.
背景技术Background technique
目前,当用户通过即时聊天工具与他人进行文本聊天时,常会接收到对方发送的消息中携带的地理位置信息,如:一则消息为:“我在清河五彩城呢,你来找过吧。”,其中,包含的地理位置信息是:“清河五彩城”。在某些情况下,接收到上述消息的用户若对包含的地理位置信息比较陌生,则一般需要通过相应的地图应用来针对地理位置信息进行定位搜索。At present, when users conduct text chats with others through instant messaging tools, they often receive geographical location information carried in messages sent by the other party, such as: a message reads: "I am in Qinghe Wucai City, you have come to look for it. ", wherein the geographic location information contained is: "Qinghe Colorful City". In some cases, if the user receiving the above message is relatively unfamiliar with the included geographic location information, he generally needs to use a corresponding map application to conduct a location search for the geographic location information.
在相关技术中,通过地图应用针对地理位置信息进行搜索的过程一般如下:用户关闭聊天界面并打开一地图应用,通过复制或手动输入的方式输入消息中包含的地理位置信息,以进行搜索。在上述过程中,用户需要手动打开一地图应用界面并输入所需搜索的地理位置信息,造成用户操作繁琐,影响到用户的使用体验。In related technologies, the process of searching for geographical location information through a map application is generally as follows: the user closes the chat interface and opens a map application, and inputs the geographical location information contained in the message by copying or manually inputting to search. In the above process, the user needs to manually open a map application interface and input the desired geographical location information to be searched, resulting in cumbersome operations for the user and affecting the user experience.
发明内容Contents of the invention
为克服相关技术中存在的问题,本公开实施例提供一种定位结果显示方法、装置及电子设备。In order to overcome the problems existing in the related technologies, the embodiments of the present disclosure provide a positioning result display method, device and electronic equipment.
根据本公开实施例的第一方面,提供一种定位结果显示方法,包括:According to a first aspect of an embodiment of the present disclosure, a positioning result display method is provided, including:
根据地理位置特征,识别来自通信对端的消息中包含的符合所述地理位置特征的文本片段;According to the geographic location feature, identifying a text segment that is included in the message from the communication peer and conforms to the geographic location feature;
将识别到的所述文本片段显示为可点击文本;displaying the identified text fragment as clickable text;
在监听到通过所述可点击文本触发的定位事件时,显示所述可点击文本在地图页面内的定位搜索结果。When the location event triggered by the clickable text is monitored, the location search result of the clickable text in the map page is displayed.
在一实施例中,所述消息包括:文本消息或语音消息;In an embodiment, the message includes: a text message or a voice message;
若所述消息为语音消息,所述根据地理位置特征,识别由通信对端所发消息中包含的符合所述地理位置特征的文本片段,包括:If the message is a voice message, according to the geographic location feature, identifying a text segment that is included in the message sent by the communication peer and conforms to the geographic location feature includes:
将来自通信对端的语音消息转换成文本信息;Convert voice messages from communication peers into text messages;
识别所述文本消息中包含的符合所述地理位置特征的文本片段。A text segment included in the text message matching the geographic location feature is identified.
在一实施例中,所述方法还包括:In one embodiment, the method also includes:
将包含识别到的所述文本片段的地理搜索请求发送至与地图页面对应的服务器;sending a geographic search request including the identified text segment to a server corresponding to the map page;
确定是否接收到所述服务器返回与所述文本片段对应的定位搜索结果;determining whether it is received that the server returns a location search result corresponding to the text segment;
所述将识别到的所述文本片段显示为可点击文本,包括:The displaying the identified text fragments as clickable texts includes:
若所述服务器返回与所述文本片段对应的定位搜索结果,将所述文本片段显示为可点击文本,所述可点击文本链接至所述服务器针对所述文本片段的定位搜索结果。If the server returns a location search result corresponding to the text segment, display the text segment as clickable text, and the clickable text is linked to the server's location search result for the text segment.
在一实施例中,所述方法还包括:In one embodiment, the method also includes:
在接收到所述服务器返回与所述文本片段对应的定位搜索结果时,确定返回的所述定位搜索结果是否满足预设条件;When receiving the location search result corresponding to the text fragment returned by the server, determine whether the returned location search result satisfies a preset condition;
所述将识别到的所述文本片段显示为可点击文本,包括:The displaying the identified text fragments as clickable texts includes:
若返回的所述定位搜索结果满足预设条件,将所述文本片段显示为可点击文本。If the returned positioning search result satisfies a preset condition, displaying the text segment as clickable text.
在一实施例中,所述预设条件包括:In one embodiment, the preset conditions include:
所述定位搜索结果与用户当前位置间的距离小于预设距离阈值;和/或,The distance between the location search result and the user's current location is less than a preset distance threshold; and/or,
所述定位搜索结果的搜索热度排名在预设名次以上;和/或,The search popularity ranking of the positioning search result is above a preset ranking; and/or,
所述定位搜索结果的优先级最高。The location search result has the highest priority.
在一实施例中,所述可点击文本显示于即时聊天工具的聊天界面内;In one embodiment, the clickable text is displayed in the chat interface of the instant chat tool;
所述显示所述可点击文本在地图页面内的定位搜索结果,包括:The displaying the location search results of the clickable text in the map page includes:
在所述聊天界面内显示所述可点击文本在地图页面内的定位搜索结果;或,Displaying a location search result of the clickable text on a map page in the chat interface; or,
从所述聊天界面切换至地图应用界面,并在所述地图应用界面内显示所述可点击文本在地图页面内的定位搜索结果。Switching from the chatting interface to a map application interface, and displaying the location search results of the clickable text in the map page in the map application interface.
根据本公开实施例的第二方面,提供一种定位结果显示装置,包括:According to a second aspect of an embodiment of the present disclosure, a positioning result display device is provided, including:
识别模块,用于根据地理位置特征,识别来自通信对端的消息中包含的符合所述地理位置特征的文本片段;An identification module, configured to identify, according to the geographic location feature, a text segment that is included in the message from the communication peer and conforms to the geographic location feature;
文本显示模块,用于将识别到的所述文本片段显示为可点击文本;A text display module, configured to display the recognized text fragment as clickable text;
定位显示模块,用于在监听到通过所述可点击文本触发的定位事件时,显示所述可点击文本在地图页面内的定位搜索结果。The location display module is configured to display the location search results of the clickable text in the map page when the location event triggered by the clickable text is detected.
在一实施例中,所述消息包括:文本消息或语音消息;In an embodiment, the message includes: a text message or a voice message;
所述识别模块包括:The identification module includes:
文本转换子模块,用于将来自通信对端的语音消息转换成文本信息;The text conversion sub-module is used to convert the voice message from the communication peer into text information;
识别子模块,用于识别所述文本消息中包含的符合所述地理位置特征的文本片段。The identifying submodule is used to identify the text segment contained in the text message that conforms to the feature of the geographic location.
在一实施例中,所述装置还包括:In one embodiment, the device also includes:
发送模块,用于将包含识别到的所述文本片段的地理搜索请求发送至与地图页面对应的服务器;A sending module, configured to send a geographic search request containing the identified text segment to a server corresponding to the map page;
第一确定模块,用于确定是否接收到所述服务器返回与所述文本片段对应的定位搜索结果;A first determining module, configured to determine whether the server returns a location search result corresponding to the text segment;
所述文本显示模块用于:The text display module is used for:
若所述服务器返回与所述文本片段对应的定位搜索结果,将所述文本片段显示为可点击文本,所述可点击文本链接至所述服务器针对所述文本片段的定位搜索结果。If the server returns a location search result corresponding to the text segment, display the text segment as clickable text, and the clickable text is linked to the server's location search result for the text segment.
在一实施例中,所述装置还包括:In one embodiment, the device also includes:
第二确定模块,用于在接收到所述服务器返回与所述文本片段对应的定位搜索结果时,确定返回的所述定位搜索结果是否满足预设条件;The second determining module is configured to determine whether the returned location search result satisfies a preset condition when receiving the location search result corresponding to the text segment returned by the server;
所述文本显示模块用于:The text display module is used for:
若返回的所述定位搜索结果满足预设条件,将所述文本片段显示为可点击文本。If the returned positioning search result satisfies a preset condition, displaying the text segment as clickable text.
在一实施例中,所述预设条件包括:In one embodiment, the preset conditions include:
所述定位搜索结果与用户当前位置间的距离小于预设距离阈值;和/或,The distance between the location search result and the user's current location is less than a preset distance threshold; and/or,
所述定位搜索结果的搜索热度排名在预设名次以上;和/或,The search popularity ranking of the positioning search result is above a preset ranking; and/or,
所述定位搜索结果的优先级最高。The location search result has the highest priority.
在一实施例中,所述可点击文本显示于即时聊天工具的聊天界面内;In one embodiment, the clickable text is displayed in the chat interface of the instant chat tool;
所述定位显示模块用于:The positioning display module is used for:
在所述聊天界面内显示所述可点击文本在地图页面内的定位搜索结果;或,Displaying a location search result of the clickable text on a map page in the chat interface; or,
从所述聊天界面切换至地图应用界面,并在所述地图应用界面内显示所述可点击文本在地图页面内的定位搜索结果。Switching from the chatting interface to a map application interface, and displaying the location search results of the clickable text in the map page in the map application interface.
根据本公开实施例的第三方面,提供一种电子设备,包括:According to a third aspect of the embodiments of the present disclosure, there is provided an electronic device, including:
处理器;processor;
用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;
所述处理器被配置为:The processor is configured to:
根据地理位置特征,识别来自通信对端的消息中包含的符合所述地理位置特征的文本片段;According to the geographic location feature, identifying a text segment that is included in the message from the communication peer and conforms to the geographic location feature;
将识别到的所述文本片段显示为可点击文本;displaying the identified text fragment as clickable text;
在监听到通过所述可点击文本触发的定位事件时,显示所述可点击文本在地图页面内的定位搜索结果。When the location event triggered by the clickable text is monitored, the location search result of the clickable text in the map page is displayed.
本公开的实施例提供的技术方案可以包括以下有益效果:The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects:
通过识别通信对端所发的信息中的符合地理位置信息特征的文本片段,再将识别到的文本片段显示成可点击文本,此后,用户可以通过所述可点击文本来触发定位事件,以使得电子设备在监测到所述定位事件之后,显示该点击文本在地图页面上的定位搜索结果。在上述过程中,用户无需通过手动打开地图应用并输入消息中包含的地理位置信息,简化了用户的操作,提升了用户的使用体验。By identifying the text segment in the information sent by the communication peer that conforms to the characteristics of the geographic location information, and then displaying the identified text segment as clickable text, after that, the user can trigger a positioning event through the clickable text, so that After the electronic device monitors the positioning event, it displays the positioning search result of the clicked text on the map page. In the above process, the user does not need to manually open the map application and input the geographic location information contained in the message, which simplifies the user's operation and improves the user's experience.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本发明的实施例,并与说明书一起用于解释本发明的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description serve to explain the principles of the invention.
图1是根据一示例性实施例示出的一种用于实现定位结果显示的系统的示意图。Fig. 1 is a schematic diagram of a system for displaying positioning results according to an exemplary embodiment.
图2A是根据一示例性实施例示出的定位结果显示方法的流程示意图。Fig. 2A is a schematic flowchart of a method for displaying a positioning result according to an exemplary embodiment.
图2B是根据一示例性实施例示出的用户界面示意图之一。Fig. 2B is one of schematic diagrams of a user interface according to an exemplary embodiment.
图2C是根据一示例性实施例示出的用户界面示意图之二。Fig. 2C is a second schematic diagram of a user interface according to an exemplary embodiment.
图2D是根据一示例性实施例示出的用户界面示意图之三。Fig. 2D is a third schematic diagram of a user interface according to an exemplary embodiment.
图2E是根据一示例性实施例示出的用户界面示意图之四。Fig. 2E is a fourth schematic diagram of a user interface according to an exemplary embodiment.
图3是根据一示例性实施例示出的另一定位结果显示方法的流程示意图。Fig. 3 is a schematic flowchart of another positioning result display method according to an exemplary embodiment.
图4是根据一示例性实施例示出的另一定位结果显示方法的流程示意图。Fig. 4 is a schematic flowchart of another positioning result display method according to an exemplary embodiment.
图5是根据一示例性实施例示出的另一定位结果显示方法的流程示意图。Fig. 5 is a schematic flowchart of another positioning result display method according to an exemplary embodiment.
图6是根据一示例性实施例示出的另一定位结果显示方法的流程示意图。Fig. 6 is a schematic flowchart of another positioning result display method according to an exemplary embodiment.
图7是根据一示例性实施例示出的定位结果显示装置的模块图。Fig. 7 is a block diagram of an apparatus for displaying positioning results according to an exemplary embodiment.
图8是根据一示例性实施例示出的定位结果显示装置的模块图。Fig. 8 is a block diagram of an apparatus for displaying positioning results according to an exemplary embodiment.
图9是根据一示例性实施例示出的定位结果显示装置的模块图。Fig. 9 is a block diagram of an apparatus for displaying positioning results according to an exemplary embodiment.
图10是根据一示例性实施例示出的定位结果显示装置的模块图。Fig. 10 is a block diagram of an apparatus for displaying positioning results according to an exemplary embodiment.
图11是根据一示例性实施例示出的适用于定位结果显示的电子设备的框图。Fig. 11 is a block diagram of an electronic device suitable for displaying positioning results according to an exemplary embodiment.
具体实施方式detailed description
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本发明相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本发明的一些方面相一致的装置和方法的例子。Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present invention. Rather, they are merely examples of apparatuses and methods consistent with aspects of the invention as recited in the appended claims.
图1是根据一示例性实施例示出的一种用于实现定位结果显示的系统的示意图。如图1所示,所述系统可以包括:用户A所使用的第一终端10、与用户聊天的通信对端(用户B)所使用的第二终端20,以及即时聊天(IM)应用服务器(简称服务器)30。服务器30可以与第一终端10和第二终端20通过网络进行通信。其中,所述网络可包括:WI-FI(WIreless-Fidelity,无线保真)、蓝牙、红外等。所述第一终端10、第二终端20可包括但不限于:电脑、手机、PDA等。Fig. 1 is a schematic diagram of a system for displaying positioning results according to an exemplary embodiment. As shown in Figure 1, the system may include: a first terminal 10 used by user A, a second terminal 20 used by a communication peer (user B) chatting with the user, and an instant chat (IM) application server ( referred to as the server) 30. The server 30 can communicate with the first terminal 10 and the second terminal 20 through a network. Wherein, the network may include: WI-FI (WIreless-Fidelity, wireless fidelity), bluetooth, infrared, and the like. The first terminal 10 and the second terminal 20 may include but not limited to: computers, mobile phones, PDAs, and the like.
以下将基于上述图1所示的系统,对定位结果显示方法的各实施例进行叙述。Various embodiments of the positioning result display method will be described below based on the above-mentioned system shown in FIG. 1 .
图2A是根据一示例性实施例示出的定位结果显示方法的流程示意图,图2B、图2C和图2D是根据一示例性实施例示出的定位结果显示方法的用户界面示意图;该定位结果显示方法可以应用在电子设备(例如:智能手机、平板电脑、个人计算机等设备)上,可以通过在电子设备上安装即时聊天工具的应用APP来实现,如图2A所示,该定位结果显示方法包括以下步骤102~106:Fig. 2A is a schematic flowchart of a positioning result display method according to an exemplary embodiment, and Fig. 2B, Fig. 2C and Fig. 2D are user interface schematic diagrams of a positioning result display method according to an exemplary embodiment; the positioning result display method It can be applied to electronic devices (such as smart phones, tablet computers, personal computers, etc.), and can be implemented by installing an instant chat tool application APP on the electronic device, as shown in Figure 2A, the positioning result display method includes the following Steps 102-106:
在步骤102中,根据地理位置特征,识别来自通信对端的消息中包含的符合所述地理位置特征的文本片段。In step 102, according to the geographic location feature, a text segment included in the message from the communication peer that conforms to the geographic location feature is identified.
在一实施例中,所述消息可以是文本消息,即时聊天工具在接收到通信对端发送的文本信息后,再将该文本信息显示在即时聊天工具的聊天界面之前或显示在即时聊天工具的聊天界面之时,根据预设的地理位置特征库识别文本信息中是否有符合地理位置特征的文本片段。该文本片段可以理解为包括地理位置特定的任何一个词汇。In one embodiment, the message may be a text message. After the instant chat tool receives the text message sent by the communication peer, the text message is displayed before the chat interface of the instant chat tool or displayed on the During the chat interface, according to the preset geographic location feature library, it is identified whether there is a text segment that meets the geographic location feature in the text information. The text fragment can be understood as including any vocabulary specific to a geographic location.
地理位置特征可以通过调用业内常规的地图数据来得到。地理位置特征主要用于描述业内常见的汉语、英语等各种语种内对地理位置的限定词,例如可以是汉语中的例如“市”、“区”、“县”等区域型位置限定词,例如“弄”、“街”、“道”等通用型位置限定词,还可以例如“第一百货”、“人民商场”、“第一中学”等名称型位置限定词。当然,针对例如英语的其他语种,地理位置特征可以是“road”、“avenue”、“central park”等位置限定词,此均为本领域普通技术人员所熟知的技术,在此不做赘述。Geographical features can be obtained by invoking conventional map data in the industry. Geographic location features are mainly used to describe geographical location qualifiers in various languages such as Chinese and English, which are common in the industry. For example, they can be regional location qualifiers such as "city", "district", and "county" in Chinese. For example, general location qualifiers such as "Nong", "Street", and "Tao" can also be name type location qualifiers such as "No. 1 Department Store", "People's Shopping Center", and "No. 1 Middle School". Of course, for other languages such as English, the geographic location feature may be location qualifiers such as "road", "avenue", and "central park", which are well known to those skilled in the art and will not be repeated here.
如图2B所示,在一示例性场景中,第一终端10上可以包括聊天应用界面12,在聊天应用界面12上包括消息体121,其中,可以在通信对端(小李)所发送的文本消息体121中识别出“城”这个符合地理位置特征的关键词,并结合上下文,得到符合地理位置特征的文本片段为:“清河五彩城”。甚至说,直接识别出“清河五彩城”是一个符合地理位置特征的地理名词。As shown in FIG. 2B, in an exemplary scenario, the first terminal 10 may include a chat application interface 12, and a message body 121 may be included on the chat application interface 12, where the message sent by the communication peer (Xiao Li) may be In the text message body 121 , the keyword "city" that conforms to the geographic location is identified, and combined with the context, a text segment that conforms to the geographic location is obtained: "Qinghe Colorful City". It is even said that "Qinghe Colorful City" is directly identified as a geographical term that conforms to the characteristics of the geographical location.
在步骤104中,将识别到的所述文本片段显示为可点击文本。In step 104, the identified text segment is displayed as clickable text.
在一实施例中,在文本信息已经显示在聊天界面上时,可以对旧有的文本信息做更新,以将识别到的所述文本片段显示为可点击文本;在文本信息还未显示在聊天界面上时,可以直接显示文本片段已被替换为可点击文本的文本信息。由于关键词被显示为可点击文本,可以根据实际需要,对可点击文本标下划线、或加亮、加粗处理,从而使得该可点击文本与文本信息内其他文字区分,引导用户点击该可点击文本,以触发本实施例所提供的定位搜索过程。In one embodiment, when the text information has been displayed on the chat interface, the old text information can be updated to display the recognized text segment as clickable text; When on the interface, it can directly display the text information that the text fragment has been replaced with clickable text. Since keywords are displayed as clickable text, the clickable text can be underlined, highlighted, or bolded according to actual needs, so that the clickable text can be distinguished from other text in the text information, and the user can be guided to click on the clickable text. Text to trigger the location search process provided by this embodiment.
在一实施例中,可点击文本与符合地理位置特征的文本片段所在地图页面的定位搜索结果相链接,该可点击文本被点击后,将会转至链接的定位搜索结果。In one embodiment, the clickable text is linked to the location search result of the map page where the text fragment conforming to the geographic location feature is located, and the clickable text will be redirected to the linked location search result after being clicked.
在步骤106中,在监听到通过所述可点击文本触发的定位事件时,显示所述可点击文本在地图页面内的定位搜索结果。In step 106, when the location event triggered by the clickable text is detected, the location search result of the clickable text in the map page is displayed.
在一实施例中,用户主动点击该可点击文本,通过该可点击文本的超链接来打开地图页面,并通过地图页面来显示该可点击文本所对应的定位搜索结果。用户只需一个步骤,就可以看到地址关键词在地图页面的定位搜索结果,简化了用户的操作,便于用户继续聊天。In an embodiment, the user actively clicks the clickable text, opens a map page through the hyperlink of the clickable text, and displays the location search result corresponding to the clickable text through the map page. The user only needs one step to see the location search results of the address keyword on the map page, which simplifies the user's operation and facilitates the user to continue chatting.
继续参照2B所示,在一示例性的场景中,用户可以直接点击可点击文本:“清河五彩城”来触发定位事件。如图2C所示,在另一示例性场景中,用户可以点击可点击文本:“清河五彩城”,随后,出现针对所点击的“清河五彩城”的“复制”、“定位”等功能按键,用户此后可以通过点击“定位”来展示与“清河五彩城”对应的定位搜索结果。Continuing to refer to 2B, in an exemplary scenario, the user can directly click on the clickable text: "Qinghe Colorful City" to trigger a positioning event. As shown in Figure 2C, in another exemplary scenario, the user can click on the clickable text: "Qinghe Colorful City", and then function buttons such as "copy" and "locate" appear for the clicked "Qinghe Colorful City" , the user can then click "Location" to display the location search results corresponding to "Qinghe Colorful City".
如图2D所示,在一示例性的场景中,电子设备在监听到通过所述可点击文本触发的定位事件后,可在所述聊天界面上弹出一弹窗页面14,并在所述弹窗界面14显示所述文本片段在地图页面内的定位搜索结果。上述弹窗界面14可以包括:地图页面、文本片段在地图页面中的位置、定位搜索结果的列表等。所述弹窗界面14内的定位搜索结果可以来源于一导航应用(或网页)、地图应用(或网页)。用户可以在查看完该弹窗页面14后,关闭该弹窗页面14,则仍然在聊天界面12内继续进行聊天,从而可以在不中断聊天过程的同时,完成对地理位置信息的定位搜索。As shown in FIG. 2D , in an exemplary scenario, after the electronic device detects the location event triggered by the clickable text, it can pop up a pop-up page 14 on the chat interface, and in the pop-up The window interface 14 displays the location search results of the text segment in the map page. The above-mentioned pop-up window interface 14 may include: a map page, the position of the text segment in the map page, a list of location search results, and the like. The location search results in the pop-up window interface 14 may come from a navigation application (or web page), a map application (or web page). After viewing the pop-up window page 14, the user can close the pop-up window page 14, and then continue chatting in the chat interface 12, so as to complete the positioning search of the geographic location information while not interrupting the chat process.
如图2E所示,在另一示例性场景中,电子设备在监听到通过所述可点击文本触发的定位事件后,可以自动从聊天界面切换至一地图页面16(或导航页面),并在所述地图页面16上显示与所述文本片段对应的定位搜索结果。其中,所述地图页面16可以是电子设备上安装的任意一个地图应用APP的页面,也可以是地图客户端APP或浏览器上的地图网页。As shown in FIG. 2E, in another exemplary scenario, after the electronic device detects the location event triggered by the clickable text, it can automatically switch from the chat interface to a map page 16 (or navigation page), and The location search result corresponding to the text segment is displayed on the map page 16 . Wherein, the map page 16 may be a page of any map application APP installed on the electronic device, or may be a map web page on a map client APP or a browser.
综上,本实施例通过识别通信对端所发的信息中的符合地理位置信息特征的文本片段,再将识别到的文本片段显示成可点击文本,此后,用户可以通过所述可点击文本来触发定位事件,以使得电子设备在监测到所述定位事件之后,显示该点击文本在地图页面上的定位搜索结果。在上述过程中,用户无需通过手动打开地图应用并输入消息中包含的地理位置信息,简化了用户的操作,提升了用户的使用体验。To sum up, in this embodiment, by identifying the text segment in the information sent by the communication peer that conforms to the characteristics of the geographic location information, and then displaying the identified text segment as clickable text, after that, the user can use the clickable text to click Triggering a positioning event, so that after the electronic device monitors the positioning event, it displays the positioning search result of the clicked text on the map page. In the above process, the user does not need to manually open the map application and input the geographic location information contained in the message, which simplifies the user's operation and improves the user's experience.
另外,本实施例的定位结果显示方法,可以在即时聊天应用上集成地图搜索功能,而无需借助专门的地图应用来实现定位搜索功能。In addition, the positioning result display method of this embodiment can integrate the map search function on the instant chat application, without using a special map application to realize the positioning search function.
在一实施例中,所述方法还包括:In one embodiment, the method also includes:
将包含识别到的所述文本片段的地理搜索请求发送至与地图页面对应的服务器;sending a geographic search request including the identified text segment to a server corresponding to the map page;
确定是否接收到所述服务器返回与所述文本片段对应的定位搜索结果;determining whether it is received that the server returns a location search result corresponding to the text segment;
所述将识别到的所述文本片段显示为可点击文本,包括:The displaying the identified text fragments as clickable texts includes:
若所述服务器返回与所述文本片段对应的定位搜索结果,将所述文本片段显示为可点击文本,所述可点击文本链接至所述服务器针对所述文本片段的定位搜索结果。If the server returns a location search result corresponding to the text segment, display the text segment as clickable text, and the clickable text is linked to the server's location search result for the text segment.
在一实施例中,所述方法还包括:In one embodiment, the method also includes:
在接收到所述服务器返回与所述文本片段对应的定位搜索结果时,确定返回的所述定位搜索结果是否满足预设条件;When receiving the location search result corresponding to the text fragment returned by the server, determine whether the returned location search result satisfies a preset condition;
所述将识别到的所述文本片段显示为可点击文本,包括:The displaying the identified text fragments as clickable texts includes:
若返回的所述定位搜索结果满足预设条件,将所述文本片段显示为可点击文本。If the returned positioning search result satisfies a preset condition, displaying the text segment as clickable text.
在一实施例中,所述预设条件包括:In one embodiment, the preset conditions include:
所述定位搜索结果与用户当前位置间的距离小于预设距离阈值;和/或,The distance between the location search result and the user's current location is less than a preset distance threshold; and/or,
所述定位搜索结果的搜索热度排名在预设名次以上;和/或,The search popularity ranking of the positioning search result is above a preset ranking; and/or,
所述定位搜索结果的优先级最高。The location search result has the highest priority.
在一实施例中,所述可点击文本显示于即时聊天工具的聊天界面内;In one embodiment, the clickable text is displayed in the chat interface of the instant chat tool;
所述显示所述可点击文本在地图页面内的定位搜索结果,包括:The displaying the location search results of the clickable text in the map page includes:
在所述聊天界面内显示所述可点击文本在地图页面内的定位搜索结果;或,Displaying a location search result of the clickable text on a map page in the chat interface; or,
从所述聊天界面切换至地图应用界面,并在所述地图应用界面内显示所述可点击文本在地图页面内的定位搜索结果。Switching from the chatting interface to a map application interface, and displaying the location search results of the clickable text in the map page in the map application interface.
具体如何实现定位结果显示的,请参考后续实施例。For how to realize the display of the positioning result, please refer to the subsequent embodiments.
图3是根据一示例性实施例示出的定位结果显示方法的流程示意图,该定位结果显示方法可以应用于第一终端10上。如图3所示,在本实施例中,若所述消息为语音消息,则所述定位结果显示方法可包括如下步骤201~206:Fig. 3 is a schematic flowchart of a method for displaying a positioning result according to an exemplary embodiment, and the method for displaying a positioning result can be applied to the first terminal 10. As shown in FIG. 3, in this embodiment, if the message is a voice message, the positioning result display method may include the following steps 201-206:
在步骤201中,接收来自通信对端所发的语音消息。In step 201, a voice message sent from a communication peer is received.
在步骤202中,可包括如下的步骤222~224。其中:In step 202, the following steps 222-224 may be included. in:
在步骤222中,将所述语音消息转换成文本信息。In step 222, the voice message is converted into text information.
在步骤224中,识别所转换得到的文本信息中符合地理位置特征的文本片段。In step 224, identify text segments in the converted text information that conform to geographical location features.
语音消息为即时聊天工具内常见的信息类型,在接收到语音消息后,自动将其转换为文本信息,并在转换得到的文本信息中识别地理位置特征。Voice messages are a common type of information in instant messaging tools. After receiving voice messages, they are automatically converted into text messages, and geographical location features are identified in the converted text messages.
用户接收到由通信对端发送语音消息经过自动转换后,转换所得到文本信息与上述图2B中一致,同样包括“清河五彩城”,识别这个“清河五彩城”的过程与以上内容类似,不再予以赘述。After the user receives the voice message sent by the communication peer and undergoes automatic conversion, the converted text information is consistent with the above-mentioned Figure 2B, and also includes "Qinghe Colorful City". The process of identifying this "Qinghe Colorful City" is similar to the above content. Let me repeat it.
在步骤204中,将识别到的所述文本片段显示为可点击文本。In step 204, the identified text segment is displayed as clickable text.
在步骤206中,在监听到通过所述可点击文本触发的定位事件时,显示所述可点击文本在地图页面内的定位搜索结果。In step 206, when the location event triggered by the clickable text is detected, the location search result of the clickable text in the map page is displayed.
上述步骤204和步骤206可以参照上一实施例的内容,在此不做赘述。For the above step 204 and step 206, reference may be made to the content of the previous embodiment, and details are not repeated here.
图4是根据一示例性实施例示出的定位结果显示方法的流程示意图,该定位结果显示方法可以应用于用户所持终端10上。如图4所示,在本实施例中,所述定位结果显示方法可包括如下步骤302~306。Fig. 4 is a schematic flowchart of a method for displaying a positioning result according to an exemplary embodiment, and the method for displaying a positioning result can be applied to a terminal 10 held by a user. As shown in FIG. 4 , in this embodiment, the positioning result display method may include the following steps 302 - 306 .
步骤302具体包括步骤322~324。Step 302 specifically includes steps 322-324.
在步骤322中,根据文本校正规则,将通信对端所发文本消息进行排版和分词,以得到若干文本片段;In step 322, according to the text correction rules, typesetting and word segmentation are performed on the text message sent by the communication peer to obtain several text fragments;
在步骤324中,在所述若干文本片段中识别符合地理位置特征的文本片段。In step 324, a text segment matching the geographic location feature is identified among the plurality of text segments.
文本校正规则可以从通过调用业内常规的文字处理数据和语音处理数据来得到。通过对文本信息进行排版和分词,可以防止由于用户疏忽导致的文本信息排版错误,为后续识别地理位置特征提供基础。The text correction rules can be obtained by invoking conventional word processing data and speech processing data in the industry. Typesetting and word segmentation of text information can prevent typesetting errors of text information caused by user negligence, and provide a basis for subsequent identification of geographic location features.
如图2B所示,在一示例性场景中,通信对端所发的文本信息经过文本校正后,无需进行排版,仅需做分词处理,从而可以将文本信息分成“我”、“在”、“清河五彩城”这三个文本片段。后续将3个文本片段与地理位置特征做比对,可以快速识别出“清河五彩城”。As shown in Figure 2B, in an exemplary scenario, after the text information sent by the communication peer is corrected, typesetting is not required, only word segmentation processing is required, so that the text information can be divided into "I", "in", The three text fragments of "Qinghe Colorful City". After comparing the three text fragments with the geographic location features, the "Qinghe Colorful City" can be quickly identified.
在步骤304中,将识别到的所述文本片段显示为可点击文本。In step 304, the identified text segment is displayed as clickable text.
在步骤306中,在监听到通过所述可点击文本触发的定位事件时,显示所述可点击文本在地图页面内的定位搜索结果。In step 306, when the location event triggered by the clickable text is detected, the location search result of the clickable text in the map page is displayed.
上述步骤304和步骤306可以参照上一实施例中内容,在此不做赘述。For the above step 304 and step 306, reference may be made to the content in the previous embodiment, and details are not repeated here.
图5是根据一示例性实施例示出的另一种定位结果显示方法的流程示意图。该定位结果显示方法可以应用于第一终端10上。如图5所示,在本实施例中,所述定位结果显示方法可包括如下步骤402~406。Fig. 5 is a schematic flowchart of another positioning result display method according to an exemplary embodiment. The positioning result display method can be applied to the first terminal 10 . As shown in FIG. 5 , in this embodiment, the positioning result display method may include the following steps 402 - 406 .
在步骤402中,根据地理位置特征,识别由通信对端所发文本消息中符合地理位置特征的文本片段。In step 402, according to the geographic location feature, a text segment in the text message sent by the communication peer that meets the geographic location feature is identified.
在步骤403中,可包括步骤432~436,其中:In step 403, steps 432-436 may be included, wherein:
在步骤432中,将包含识别到的所述文本片段的地理搜索请求发送至与地图页面对应的服务器。如:文本片段是:“清河五彩城”。In step 432, a geographic search request including the identified text segment is sent to the server corresponding to the map page. Such as: the text fragment is: "Qinghe Colorful City".
在步骤434中,确定是否接收到服务器返回与文本片段对应的定位搜索结果,若接收到服务器返回与文本片段对应的定位搜索结果,进入步骤404。In step 434 , it is determined whether the location search result corresponding to the text fragment returned by the server is received, and if the location search result corresponding to the text fragment returned by the server is received, go to step 404 .
本实施例中,即时聊天平台服务器可以与一地图搜索服务器通信,符合地理位置特征的文本片段被发送至地图搜索服务器后,地图搜索服务器通过地图页面所在地图数据库内查找之后,若返回定位搜索结果,则表明该地理位置特征已经被收录在地图数据库内,反之则表明该地理位置特征未被收录在地图数据库内。In this embodiment, the instant chat platform server can communicate with a map search server. After the text fragment conforming to the geographic location feature is sent to the map search server, after the map search server searches through the map database where the map page is located, if the location search result is returned , it indicates that the geographic location feature has been included in the map database, otherwise it indicates that the geographic location feature has not been included in the map database.
在步骤404中,将识别到的所述文本片段显示为可点击文本。In step 404, the identified text segment is displayed as clickable text.
在地图数据库内对文本片段进行匹配和筛选,从而得到真实有效的地址,并将可点击文本链接至服务器针对该文本片段的定位搜索结果。Match and filter the text fragments in the map database to obtain real and valid addresses, and link the clickable text to the server's location search results for the text fragments.
在步骤406中,在监听到通过所述可点击文本触发的定位事件时,显示所述可点击文本在地图页面内的定位搜索结果。In step 406, when the location event triggered by the clickable text is detected, the location search result of the clickable text in the map page is displayed.
上述步骤402、步骤404和步骤406可以参照上一实施例中内容,在此不做赘述。For the foregoing step 402, step 404, and step 406, reference may be made to the content in the previous embodiment, and details are not repeated here.
本实施例中,可以通过预先确定是否可以搜索到与识别到的文本片段对应的定位搜索结果,并在搜索到定位搜索结果时才将文本片段显示为可点击文本,以避免出现用户在点击某个可点击文本之后,无法查看到与之对应的定位搜索结果,而给用户造成地图应用出错的感觉,进而避免不良的使用体验。In this embodiment, it is possible to predetermine whether the location search result corresponding to the identified text segment can be searched, and only display the text segment as clickable text when the location search result is found, so as to avoid the occurrence of the user clicking on a certain text segment. After a clickable text, the corresponding location search results cannot be viewed, which makes the user feel that the map application is wrong, thereby avoiding a bad user experience.
图6是根据一示例性实施例示出的定位结果显示方法的流程示意图。该定位结果显示方法可以应用于用户A所持第一终端10上。如图6所示,在上述图5所示的实施例中的基础上,在本实施例中的方法还可包括步骤436:Fig. 6 is a schematic flowchart of a method for displaying a positioning result according to an exemplary embodiment. The positioning result display method can be applied to the first terminal 10 held by the user A. As shown in FIG. 6, on the basis of the above-mentioned embodiment shown in FIG. 5, the method in this embodiment may further include step 436:
在步骤436中,确定返回的定位搜索结果是否满足预设条件。其中,在确定接收到服务器返回的与文本片段对应的定位搜索结果时,进入该步骤436。并在返回的定位搜索结果满足预设条件时,进入步骤404。In step 436, it is determined whether the returned location search result satisfies a preset condition. Wherein, when it is determined that the positioning search result corresponding to the text segment returned by the server is received, enter into step 436 . And when the returned location search result satisfies the preset condition, go to step 404 .
本实施例中,查找定位搜索结果的过程可以存在如下三种情况:In this embodiment, the process of finding and locating search results may have the following three situations:
1、查找不到定位搜索结果;如:该地理位置较为偏僻,或是新的地理位置。1. The positioning search results cannot be found; for example: the location is relatively remote, or it is a new location.
2、查找到的定位搜索结果唯一;2. The location search result found is unique;
3、查找到的定位搜索结果不唯一;如:同一地理位置名称,在同一城市或不同城市存在多个与之对应的地理位置。3. The location search results found are not unique; for example, the same geographic location name has multiple corresponding geographic locations in the same city or different cities.
其中,对于情况3,为了确保用户点击可点击文本之后,不会出现较多不准确的定位搜索结果,需要预先对定位搜索结果进行过滤。考虑到一般情况下,用户在聊天过程中涉及到的地理位置信息,一般是用户所在的城市内的地理位置,或者是距离比较近的地理位置,则可以设定上述预设条件是:所述定位搜索结果与用户当前位置间的距离小于预设距离阈值。例如,设定预设距离阈值是:30公里。则若某可点击文本是:“圆融广场”,通过搜索,假设有两个与之对应的定位搜索结果:其一是,北京市XX圆融广场;其二是:苏州市YY圆融广场;则通过定位,发现使用上述第一终端10的用户A所在位置是:苏州市某地点。则最终判定“苏州市YY圆融广场”与用户A所在位置的距离小于30公里;而显然,“北京市XX圆融广场”与用户A所在位置的距离大于30公里,鉴于此,最终确定与可点击文本是:“圆融广场”对应的定位搜索结果是:“苏州市YY圆融广场”。此后,当用户A点击该可点击文本触发定位事件时,会自动在地图页面上显示“苏州市YY圆融广场”的位置。当然,上述预设条件还可以是:所述定位搜索结果与用户当前位置是同一城市、或同一城市的同一区、或同一城市的同一个街道等。Wherein, for case 3, in order to ensure that more inaccurate location search results will not appear after the user clicks on the clickable text, it is necessary to filter the location search results in advance. Considering that in general, the geographical location information involved in the chatting process of the user is generally the geographical location in the city where the user is located, or a relatively close geographical location, the above preset conditions can be set as follows: The distance between the location search result and the user's current location is smaller than a preset distance threshold. For example, the preset distance threshold is set to be 30 kilometers. Then if a certain clickable text is: "Yuanrong Square", by searching, it is assumed that there are two corresponding positioning search results: one is XX Yuanrong Square in Beijing; the other is: YY Yuanrong Square in Suzhou ; then through positioning, it is found that the location of user A using the first terminal 10 is: a certain place in Suzhou City. It is finally determined that the distance between "Suzhou YY Yuanrong Plaza" and the location of user A is less than 30 kilometers; and obviously, the distance between "Beijing XX Yuanrong Plaza" and the location of user A is greater than 30 kilometers. The clickable text is: "Yuanrong Plaza" and the corresponding location search result is: "Suzhou YY Yuanrong Plaza". Afterwards, when user A clicks on the clickable text to trigger a location event, the location of "Suzhou YY Harmony Square" will be automatically displayed on the map page. Of course, the above preset condition may also be: the location search result and the user's current location are in the same city, or in the same district of the same city, or in the same street of the same city.
在另一实施例中,上述预设条件还可以是:所述定位搜索结果的搜索热度排名在预设名次(如:前三名)以上。例如,对于每一地理位置名称,互联网上均可以统计出用户对该地理位置名称的搜索热度(即搜索次数的高低),对于搜索热度较高的地理位置,则一般符合大多数的定位搜索需求,在一定程度上更加准确。如:对于文本片段“清河五彩城”,发现用户对该“清河五彩城”的搜索热度排名第一的是“北京市XX清河五彩城”,则可以确定与“清河五彩城”对应的定位搜索结果是:与“北京市XX清河五彩城”对应的位置。In another embodiment, the aforementioned preset condition may also be: the search popularity ranking of the location search result is above a preset ranking (eg, top three). For example, for each geographical location name, the user's search popularity (that is, the number of searches) for the geographical location name can be counted on the Internet. For geographical locations with high search popularity, it generally meets most positioning search needs. , which is more accurate to a certain extent. For example: for the text segment "Qinghe Colorful City", it is found that the user's search for "Qinghe Colorful City" is "Beijing XX Qinghe Colorful City", and the location search corresponding to "Qinghe Colorful City" can be determined The result is: the location corresponding to "Beijing XX Qinghe Colorful City".
在另一实施例中,上述预设条件还可以是:所述定位搜索结果的优先级最高。在定位搜索结果为多个时,选定优先级最高的定位搜索结果进行展示。优先级的高低可以根据前述预设条件的内容进行设定,例如定位搜索结果与用户当前位置的距离越近,则使得其优先级越高;或者,定位搜索结果的搜索热度越高,则使其优先级越高。例如“清河五彩城”的定位搜索结果出现了“东城清河五彩城”、“西城清河五彩城”、“朝阳清河五彩城”等多个结果时,则可以根据针对这些定位搜索结果的优先级,选出优先级最高的定位搜索结果并展示。In another embodiment, the above preset condition may also be: the location search result has the highest priority. When there are multiple positioning search results, the positioning search result with the highest priority is selected for display. The priority level can be set according to the content of the aforementioned preset conditions, for example, the closer the location search result is to the user's current location, the higher its priority; or, the higher the search popularity of the location search result, the higher the priority Its priority is higher. For example, when multiple results such as "Qinghe Colorful City in Dongcheng", "Qinghe Colorful City in West City" and "Qinghe Colorful City in Chaoyang" appear in the location search results of "Qinghe Colorful City", you can select according to the priority of these location search results, The search results with the highest priority are selected and displayed.
图7是根据一示例性实施例示出的一种定位结果显示装置的框图,本实施例中,所述装置可包括:Fig. 7 is a block diagram of a positioning result display device according to an exemplary embodiment. In this embodiment, the device may include:
识别模块702,用于根据地理位置特征,识别来自通信对端的消息中包含的符合所述地理位置特征的文本片段;An identification module 702, configured to identify, according to the geographic location feature, a text segment that is included in the message from the communication peer and conforms to the geographic location feature;
文本显示模块704,用于将识别到的所述文本片段显示为可点击文本;A text display module 704, configured to display the identified text segment as clickable text;
定位显示模块706,用于在监听到通过所述可点击文本触发的定位事件时,显示所述可点击文本在地图页面内的定位搜索结果。The location display module 706 is configured to display a location search result of the clickable text in the map page when a location event triggered by the clickable text is detected.
图8是根据一示例性实施例示出的另一种定位结果显示装置的框图,本实施例中,所述消息包括:文本消息或语音消息;其中,在所述消息是语音消息时,在上述图7所示的实施例的基础上,所述识别模块702包括:Fig. 8 is a block diagram of another device for displaying positioning results according to an exemplary embodiment. In this embodiment, the message includes: a text message or a voice message; wherein, when the message is a voice message, in the above On the basis of the embodiment shown in Figure 7, the identification module 702 includes:
文本转换子模块721,用于将来自通信对端的语音消息转换成文本信息;A text conversion submodule 721, configured to convert the voice message from the communication peer into text information;
识别子模块722,用于识别所述文本消息中包含的符合所述地理位置特征的文本片段。The identifying submodule 722 is configured to identify text segments included in the text message that meet the feature of the geographic location.
图9是根据一示例性实施例示出的另一种定位结果显示装置的框图,本实施例中,在上述图7所示的实施例的基础上,所述装置还包括:Fig. 9 is a block diagram of another positioning result display device according to an exemplary embodiment. In this embodiment, on the basis of the embodiment shown in Fig. 7 above, the device further includes:
发送模块703,用于将包含识别到的所述文本片段的地理搜索请求发送至与地图页面对应的服务器;A sending module 703, configured to send a geographic search request including the identified text segment to a server corresponding to the map page;
第一确定模块705,用于确定是否接收到所述服务器返回与所述文本片段对应的定位搜索结果;The first determination module 705 is configured to determine whether the server returns a location search result corresponding to the text segment;
相应地,所述文本显示模块704用于:Correspondingly, the text display module 704 is used for:
若所述服务器返回与所述文本片段对应的定位搜索结果,将所述文本片段显示为可点击文本,所述可点击文本链接至所述服务器针对所述文本片段的定位搜索结果。If the server returns a location search result corresponding to the text segment, display the text segment as clickable text, and the clickable text is linked to the server's location search result for the text segment.
图10是根据一示例性实施例示出的另一种定位结果显示装置的框图,本实施例中,在上述图9所示的实施例的基础上,所述装置还可包括:Fig. 10 is a block diagram of another positioning result display device according to an exemplary embodiment. In this embodiment, on the basis of the embodiment shown in Fig. 9 above, the device may further include:
第二确定模块707,用于在接收到所述服务器返回与所述文本片段对应的定位搜索结果时,确定返回的所述定位搜索结果是否满足预设条件;The second determining module 707 is configured to determine whether the returned location search result satisfies a preset condition when receiving the location search result corresponding to the text segment returned by the server;
所述文本显示模块704用于:The text display module 704 is used for:
若返回的所述定位搜索结果满足预设条件,将所述文本片段显示为可点击文本。If the returned positioning search result satisfies a preset condition, displaying the text segment as clickable text.
在一实施例中,所述预设条件可以包括:In an embodiment, the preset conditions may include:
所述定位搜索结果与用户当前位置间的距离小于预设距离阈值;和/或,The distance between the location search result and the user's current location is less than a preset distance threshold; and/or,
所述定位搜索结果的搜索热度排名在预设名次以上;和/或,The search popularity ranking of the positioning search result is above a preset ranking; and/or,
所述定位搜索结果的优先级最高。The location search result has the highest priority.
在一实施例中,所述可点击文本显示于即时聊天工具的聊天界面内;In one embodiment, the clickable text is displayed in the chat interface of the instant chat tool;
所述定位显示模块706可以用于:The location display module 706 can be used for:
在所述聊天界面内显示所述可点击文本在地图页面内的定位搜索结果;或,Displaying a location search result of the clickable text on a map page in the chat interface; or,
从所述聊天界面切换至地图应用界面,并在所述地图应用界面内显示所述可点击文本在地图页面内的定位搜索结果。Switching from the chatting interface to a map application interface, and displaying the location search results of the clickable text in the map page in the map application interface.
关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the apparatus in the foregoing embodiments, the specific manner in which each module executes operations has been described in detail in the embodiments related to the method, and will not be described in detail here.
对于装置实施例而言,由于其基本对应于方法实施例,所以相关之处参见方法实施例的部分说明即可。以上所描述的装置实施例仅仅是示意性的,其中作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本公开方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。As for the device embodiment, since it basically corresponds to the method embodiment, for related parts, please refer to the part description of the method embodiment. The device embodiments described above are only illustrative, and the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place , or can also be distributed to multiple network elements. Part or all of the modules can be selected according to actual needs to achieve the purpose of the disclosed solution. It can be understood and implemented by those skilled in the art without creative effort.
图11是根据一示例性实施例示出的一种适用于定位结果显示的电子设备的框图。例如,电子设备800可以是手机、电脑、PDA、PAD等。Fig. 11 is a block diagram of an electronic device suitable for displaying positioning results according to an exemplary embodiment. For example, the electronic device 800 may be a mobile phone, a computer, a PDA, a PAD, and the like.
参照图11所示,电子设备800可以包括以下一个或多个组件:处理组件802,存储器804,电源组件806,多媒体组件808,音频组件810,输入/输出(I/O)的接口812,传感器组件814,以及通信组件816。11, the electronic device 800 may include one or more of the following components: a processing component 802, a memory 804, a power supply component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, and communication component 816.
处理组件802通常控制电子设备800的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理元件802可以包括一个或多个处理器820来执行指令,该处理单元802可被配置为:The processing component 802 generally controls the overall operations of the electronic device 800, such as those associated with display, telephone calls, data communications, camera operations, and recording operations. The processing element 802 may include one or more processors 820 to execute instructions, the processing unit 802 may be configured to:
根据地理位置特征,识别来自通信对端的消息中包含的符合所述地理位置特征的文本片段;According to the geographic location feature, identifying a text segment that is included in the message from the communication peer and conforms to the geographic location feature;
将识别到的所述文本片段显示为可点击文本;displaying the identified text fragment as clickable text;
在监听到通过所述可点击文本触发的定位事件时,显示所述可点击文本在地图页面内的定位搜索结果。When the location event triggered by the clickable text is monitored, the location search result of the clickable text in the map page is displayed.
此外,处理组件802可以包括一个或多个模块,便于处理组件802和其他组件之间的交互。例如,处理部件802可以包括多媒体模块,以方便多媒体组件808和处理组件802之间的交互。Additionally, processing component 802 may include one or more modules that facilitate interaction between processing component 802 and other components. For example, processing component 802 may include a multimedia module to facilitate interaction between multimedia component 808 and processing component 802 .
存储器804被配置为存储各种类型的数据以支持在设备800的操作。这些数据的示例包括用于在电子设备800上操作的任何应用程序或方法的指令,消息,图片等。存储器804可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。The memory 804 is configured to store various types of data to support operations at the device 800 . Examples of such data include instructions, messages, pictures, etc. for any application or method operating on the electronic device 800 . The memory 804 can be implemented by any type of volatile or non-volatile storage device or their combination, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic or Optical Disk.
电源组件806为电子设备800的各种组件提供电力。电力组件806可以包括电源管理系统,一个或多个电源,及其他与为电子设备800生成、管理和分配电力相关联的组件。The power supply component 806 provides power to various components of the electronic device 800 . Power components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for electronic device 800 .
多媒体组件808包括在电子设备800和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件808包括一个前置摄像头和/或后置摄像头。当设备800处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。The multimedia component 808 includes a screen providing an output interface between the electronic device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may not only sense a boundary of a touch or a swipe action, but also detect duration and pressure associated with the touch or swipe operation. In some embodiments, the multimedia component 808 includes a front camera and/or a rear camera. When the device 800 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capability.
音频组件810被配置为输出和/或输入音频信号。例如,音频组件810包括一个麦克风(MIC),当电子设备800处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器804或经由通信组件816发送。在一些实施例中,音频组件810还包括一个扬声器,用于输出音频信号。The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a microphone (MIC), which is configured to receive external audio signals when the electronic device 800 is in operation modes, such as call mode, recording mode and voice recognition mode. Received audio signals may be further stored in memory 804 or sent via communication component 816 . In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.
I/O接口812为处理组件802和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 812 provides an interface between the processing component 802 and a peripheral interface module, which may be a keyboard, a click wheel, a button, and the like. These buttons may include, but are not limited to: a home button, volume buttons, start button, and lock button.
传感器组件814包括一个或多个传感器,用于为电子设备800提供各个方面的状态评估。例如,传感器组件814可以检测到设备800的打开/关闭状态,组件的相对定位,例如组件为电子设备800的显示器和小键盘,传感器组件814还可以检测电子设备800或电子设备800一个组件的位置改变,用户与电子设备800接触的存在或不存在,电子设备800方位或加速/减速和电子设备800的温度变化。传感器组件814可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件814还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件814还可以包括加速度传感器,陀螺仪传感器,磁传感器,距离感应器,压力传感器或温度传感器。Sensor assembly 814 includes one or more sensors for providing status assessments of various aspects of electronic device 800 . For example, the sensor component 814 can detect the open/closed state of the device 800, the relative positioning of components, such as the display and the keypad of the electronic device 800, and the sensor component 814 can also detect the position of the electronic device 800 or a component of the electronic device 800 changes, the presence or absence of user contact with the electronic device 800 , the orientation or acceleration/deceleration of the electronic device 800 and the temperature change of the electronic device 800 . Sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. Sensor assembly 814 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a distance sensor, a pressure sensor or a temperature sensor.
通信组件816被配置为便于电子设备800和其他设备之间有线或无线方式的通信。电子设备800可以接入基于通信标准的无线网络,如WIFI,2G或3G,或它们的组合。在一个示例性实施例中,通信部件816经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,通信部件816还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 can access a wireless network based on communication standards, such as WIFI, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wide Band (UWB) technology, Bluetooth (BT) technology and other technologies.
在示例性实施例中,电子设备800可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。In an exemplary embodiment, electronic device 800 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable A programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic component implementation for performing the methods described above.
在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器804,上述指令可由电子设备800的处理器820执行以完成上述方法。例如,非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium including instructions, such as the memory 804 including instructions, which can be executed by the processor 820 of the electronic device 800 to complete the above method. For example, the non-transitory computer readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.
本领域技术人员在考虑说明书及实践这里公开的公开后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。Other embodiments of the present disclosure will be readily apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any modification, use or adaptation of the present disclosure, and these modifications, uses or adaptations follow the general principles of the present disclosure and include common knowledge or conventional technical means in the technical field not disclosed in the present disclosure . The specification and examples are to be considered exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。It should be understood that the present disclosure is not limited to the precise constructions which have been described above and shown in the drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims (13)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710117934.7A CN106993085A (en) | 2017-03-01 | 2017-03-01 | Positioning result display methods and device, electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710117934.7A CN106993085A (en) | 2017-03-01 | 2017-03-01 | Positioning result display methods and device, electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106993085A true CN106993085A (en) | 2017-07-28 |
Family
ID=59413152
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710117934.7A Pending CN106993085A (en) | 2017-03-01 | 2017-03-01 | Positioning result display methods and device, electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106993085A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107729098A (en) * | 2017-09-25 | 2018-02-23 | 北京小米移动软件有限公司 | Method for displaying user interface and device |
CN108762658A (en) * | 2018-05-22 | 2018-11-06 | 珠海格力电器股份有限公司 | Positioning method and device, terminal equipment and readable storage medium |
CN109407916A (en) * | 2018-08-27 | 2019-03-01 | 华为技术有限公司 | Method, terminal, user images display interface and the storage medium of data search |
CN109510935A (en) * | 2019-01-09 | 2019-03-22 | 深圳英飞拓智能技术有限公司 | A kind of management system and management method of camera position information |
WO2025051087A1 (en) * | 2023-09-08 | 2025-03-13 | 维沃移动通信有限公司 | Chat content processing method and apparatus |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103379013A (en) * | 2012-04-12 | 2013-10-30 | 腾讯科技(深圳)有限公司 | Geographic information providing method and system based on instant messaging |
KR20140090114A (en) * | 2013-01-07 | 2014-07-16 | 삼성전자주식회사 | Keyword search method and apparatus |
CN104142964A (en) * | 2013-06-13 | 2014-11-12 | 腾讯科技(北京)有限公司 | Method and device for information matching |
CN104703125A (en) * | 2013-12-05 | 2015-06-10 | 腾讯科技(深圳)有限公司 | Method, device and terminal for information recommendation based on instant messaging |
-
2017
- 2017-03-01 CN CN201710117934.7A patent/CN106993085A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103379013A (en) * | 2012-04-12 | 2013-10-30 | 腾讯科技(深圳)有限公司 | Geographic information providing method and system based on instant messaging |
KR20140090114A (en) * | 2013-01-07 | 2014-07-16 | 삼성전자주식회사 | Keyword search method and apparatus |
CN104142964A (en) * | 2013-06-13 | 2014-11-12 | 腾讯科技(北京)有限公司 | Method and device for information matching |
CN104703125A (en) * | 2013-12-05 | 2015-06-10 | 腾讯科技(深圳)有限公司 | Method, device and terminal for information recommendation based on instant messaging |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107729098A (en) * | 2017-09-25 | 2018-02-23 | 北京小米移动软件有限公司 | Method for displaying user interface and device |
CN108762658A (en) * | 2018-05-22 | 2018-11-06 | 珠海格力电器股份有限公司 | Positioning method and device, terminal equipment and readable storage medium |
CN109407916A (en) * | 2018-08-27 | 2019-03-01 | 华为技术有限公司 | Method, terminal, user images display interface and the storage medium of data search |
CN109510935A (en) * | 2019-01-09 | 2019-03-22 | 深圳英飞拓智能技术有限公司 | A kind of management system and management method of camera position information |
WO2025051087A1 (en) * | 2023-09-08 | 2025-03-13 | 维沃移动通信有限公司 | Chat content processing method and apparatus |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10990623B2 (en) | Information retrieval method, eletronic device and storage medium | |
RU2625948C2 (en) | Method for application superscript adding and device | |
CN106204186B (en) | Order information determines method and device | |
CN106993085A (en) | Positioning result display methods and device, electronic equipment | |
CN108874827B (en) | Searching method and related device | |
WO2017181663A1 (en) | Method and device for matching image to search information | |
CN106453528B (en) | The method and device of PUSH message | |
CN108874939A (en) | A kind of information search method and device | |
CN106227848A (en) | The display packing of notification message, device and terminal | |
CN105376412A (en) | Information processing method and device | |
CN106027336A (en) | Equipment sharing method and device | |
CN109388699A (en) | Input method, device, equipment and storage medium | |
CN106503131A (en) | Obtain the method and device of interest information | |
CN108733397B (en) | Update state determination method, device and storage medium | |
CN110309431B (en) | Data processing method, device and electronic equipment | |
US10764418B2 (en) | Method, device and medium for application switching | |
CN110928425A (en) | Information monitoring method and device | |
CN112015281B (en) | Cloud association method and related device | |
CN110020082B (en) | Searching method and device | |
CN106294596A (en) | The method and device of information search | |
CN105487746A (en) | Search result displaying method and device | |
CN107436900B (en) | Information processing method and device based on search engine | |
CN105550201B (en) | Data display method and device | |
CN110399566B (en) | Position searching method and device and electronic equipment | |
CN104933107A (en) | Searching method of push message and searching device of push message |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170728 |
|
RJ01 | Rejection of invention patent application after publication |