Method for acquiring position information and device thereof

By receiving and displaying location identifiers in communication applications, the cumbersome operation of multi-location queries is solved, enabling convenient and efficient acquisition of location information.

CN116108119BActive Publication Date: 2026-05-01VIVO MOBILE COMM CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
VIVO MOBILE COMM CO LTD
Filing Date
2022-10-28
Publication Date
2026-05-01

AI Technical Summary

Technical Problem

When multiple location names appear in the chat interface of a communication application, users need to enter the location names one by one to query location information, which makes the operation cumbersome, time-consuming, and inefficient and inflexible.

Method used

The system receives the first input from the user for M messages in the target session interface, displays at least one location identifier, and receives the second input from the user for N location identifiers, displays their corresponding location information, and obtains the location information through a first window and a second window.

Benefits of technology

It improves the convenience and efficiency of location information retrieval, allowing users to more intuitively obtain location information contained in multiple messages.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116108119B_ABST
    Figure CN116108119B_ABST
Patent Text Reader

Abstract

The application discloses a position information acquisition method and device, and belongs to the technical field of place query. The method comprises the following steps: receiving a first input of a user on M messages in a target conversation interface, wherein M is a positive integer; in response to the first input, displaying a first window, and displaying at least one place identifier in the first window, wherein the at least one place identifier is a place identifier contained in the M messages; receiving a second input of the user on N place identifiers in the at least one place identifier, wherein N is a positive integer; and in response to the second input, displaying a second window, and displaying position information of places corresponding to the N place identifiers in the second window.
Need to check novelty before this filing date? Find Prior Art

Description

Location information acquisition method and device Technical Field

[0001] This application belongs to the field of location query technology, specifically relating to a method and apparatus for obtaining location information. Background Technology

[0002] When using a communication application, if the chat interface of the application displays the name of a location that the user needs to know, the user can select the name of the location in the chat interface and enter the name of the location in a navigation application on the electronic device to query the location information. The electronic device will then display the location information to the user (such as the address information of the location, the distance between the location and the user's current location, etc.).

[0003] However, in the above method, if the chat interface includes the names of multiple locations, the user needs to enter the names of the locations in the navigation application one by one in order to query the location information of the multiple locations. Therefore, the user's operation is cumbersome and time-consuming, resulting in low efficiency and poor flexibility of electronic devices querying location information. Summary of the Invention

[0004] The purpose of this application is to provide a method, apparatus, electronic device, and storage medium for obtaining location information, which can solve the problem that electronic devices have low efficiency and poor flexibility in querying location information when using communication applications.

[0005] In a first aspect, embodiments of this application provide a location information acquisition method, which includes: receiving a first input from a user on M messages in a target session interface, where M is a positive integer; responding to the first input, displaying a first window and displaying at least one location identifier in the first window, wherein the at least one location identifier is a location identifier contained in the M messages; receiving a second input from the user on N location identifiers among the at least one location identifier, where N is a positive integer; responding to the second input, displaying a second window and displaying location information of the locations corresponding to the N location identifiers in the second window.

[0006] Secondly, embodiments of this application provide a location information acquisition device, comprising: a receiving module and a display module. The receiving module is configured to receive a first input from a user regarding M messages in a target session interface, where M is a positive integer. The display module is configured to, in response to the first input received by the receiving module, display a first window, and display at least one location identifier in the first window, wherein the at least one location identifier is a location identifier contained in the M messages. The receiving module is further configured to receive a second input from the user regarding N location identifiers among the at least one location identifier, where N is a positive integer. The display module is further configured to, in response to the second input received by the receiving module, display a second window, and display location information of the locations corresponding to the N location identifiers in the second window.

[0007] Thirdly, embodiments of this application provide an electronic device including a processor and a memory, wherein the memory stores programs or instructions executable on the processor, and the programs or instructions, when executed by the processor, implement the steps of the method described in the first aspect.

[0008] Fourthly, embodiments of this application provide a readable storage medium on which a program or instructions are stored, which, when executed by a processor, implement the steps of the method described in the first aspect.

[0009] Fifthly, embodiments of this application provide a chip, the chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being used to run programs or instructions to implement the method as described in the first aspect.

[0010] In a sixth aspect, embodiments of this application provide a computer program product stored in a storage medium, which is executed by at least one processor to implement the method described in the first aspect.

[0011] In this embodiment, after receiving a user's first input of M messages in the target conversation interface, the electronic device can display at least one location identifier from the chat history. Then, the electronic device can receive a second input from the user of N location identifiers from the at least one location identifier, to display the location information of the locations corresponding to the N location identifiers in the target conversation interface. In this embodiment, the user can provide a first input of M messages, allowing the electronic device to determine at least one location identifier from the M messages and display these location identifiers to the user through a first window. The user can then provide a second input of N location identifiers to trigger the electronic device to display the location information of the locations corresponding to the N location identifiers. This allows the user to more conveniently and intuitively obtain the location information of locations contained in multiple messages within the conversation interface, thus improving the flexibility and efficiency of the electronic device in querying location information. Attached Figure Description

[0012] Figure 1 is a flowchart of one of the location information acquisition methods provided in an embodiment of this application;

[0013] Figure 2 is a schematic diagram of an example of a target session interface of a mobile phone provided in an embodiment of this application;

[0014] Figure 3 is a second flowchart of a location information acquisition method provided in an embodiment of this application;

[0015] Figure 4 is a schematic diagram of an example of locating a location identifier from a message using a control, provided in an embodiment of this application;

[0016] Figure 5 is a schematic diagram of an example of a user selecting a location identifier from a message, provided in an embodiment of this application;

[0017] Figure 6 is a schematic diagram of an interface that displays at least one location identifier through a first window, according to an embodiment of this application.

[0018] Figure 7 is a schematic diagram of an example of displaying the corresponding location of the location identifier through a second window according to an embodiment of this application;

[0019] Figure 8 is a schematic diagram of a mobile phone interface displaying a target application identifier according to an embodiment of this application;

[0020] Figure 9 is a schematic diagram of an example of a mobile phone sending route information through a conversation interface according to an embodiment of this application;

[0021] Figure 10 is a schematic diagram of an example of a mobile phone sending a target link through a conversation interface according to an embodiment of this application;

[0022] Figure 11 is a schematic diagram of a location information acquisition device provided in an embodiment of this application;

[0023] Figure 12 is one of the hardware structure diagrams of an electronic device provided in an embodiment of this application;

[0024] Figure 13 is a second schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0025] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.

[0026] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such terms can be used interchangeably where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.

[0027] The location information acquisition method provided in this application will be described in detail below with reference to the accompanying drawings, through specific embodiments and application scenarios.

[0028] When a user is chatting using a communication application, if the chat log contains the name of a location for which the user needs detailed location information, the user can enter the location name into a navigation application (such as a map application) to allow the electronic device to query and display the location information. However, if multiple location names appear in the chat log, the user needs to perform the above operation multiple times to obtain the location information for each of the multiple locations. Therefore, the user's operation is cumbersome and time-consuming, resulting in low efficiency and poor flexibility for electronic devices to query location information.

[0029] The location information acquisition method provided in this application embodiment allows an electronic device to display at least one location identifier from the chat history after receiving a first input from a user on M messages in a target conversation interface. The electronic device can then receive a second input from the user on N location identifiers among the at least one location identifier, thereby displaying the location information of the locations corresponding to the N location identifiers in the target conversation interface. In this embodiment, the user can provide a first input on M messages, enabling the electronic device to determine at least one location identifier from the M messages and display these location identifiers to the user through a first window. The user can then provide a second input on N location identifiers, triggering the electronic device to display the location information of the locations corresponding to the N location identifiers. This allows the user to more conveniently and intuitively obtain the location information of locations contained in multiple messages within the conversation interface, thus improving the flexibility and efficiency of the electronic device in querying location information.

[0030] This application provides a method for obtaining location information. Figure 1 shows a flowchart of a location information acquisition method provided by this application. As shown in Figure 1, the location information acquisition method provided by this application may include the following steps 201 to 204.

[0031] Step 201: The electronic device receives the user's first input on the M messages in the target session interface.

[0032] In this embodiment, M is a positive integer. Each of the M messages is a message containing a location identifier in the target session interface. The user can open an application with session functionality on the electronic device, such as a communication application, and trigger the electronic device to display a target session interface, which includes at least one message. The user can make a first input to the M messages in the at least one message to trigger the electronic device to determine the location identifier from the M messages.

[0033] Optionally, in this embodiment of the application, the target chat interface can be a private chat interface or a group chat interface.

[0034] Optionally, in this embodiment of the application, the first input can be the user's selection input of M messages (e.g., click input or long press input) to trigger the electronic device to determine the location identifier from the M messages.

[0035] For example, a mobile phone is used as an electronic device. As shown in Figure 2, the mobile phone displays a target conversation interface (chat group A), which includes five messages (sent by users A to E respectively). The user can make the first input on M of the five messages (e.g., messages sent by user B, user C, and user D) to trigger the mobile phone to obtain the location identifiers in these messages.

[0036] Optionally, in this embodiment of the application, the first input can be the input whereby the user moves the control used to locate the location identifier sequentially onto the M messages, thereby triggering the electronic device to determine the location identifier from the M messages. For example, referring to Figure 1 and as shown in Figure 3, before step 201, the location information acquisition method provided in this embodiment of the application further includes steps 301 and 302.

[0037] Step 301: The electronic device receives third input from the user to the target session interface.

[0038] Optionally, in this embodiment, the third input can be a user's swipe input on a specific area displayed on the screen (e.g., the sidebar area) to trigger the electronic device to display controls for location identification. Alternatively, the third input can be a long press input (e.g., a long press input on any message) or a swipe input (e.g., swiping with two fingers simultaneously) in the target session interface to trigger the electronic device to display controls for location identification. The specific input can be determined according to actual usage requirements, and this embodiment does not impose limitations.

[0039] Step 302: The electronic device responds to the third input and displays the first control in the target session interface.

[0040] In this embodiment of the application, the first control described above can be used to locate the location identifier in the message.

[0041] It is understood that when the first control is displayed, the first input mentioned above is the input for the user to move the first control to the M messages. That is, the user can move the first control to the M messages in sequence to trigger the electronic device to determine the location identifier from the M messages.

[0042] Optionally, in this embodiment of the application, the shape of the first control can be a rhombus, an inverted triangle, a positioning mark shape, or the shape of any other geometric shape.

[0043] For example, referring to Figure 2, as shown in Figure 4, a user can slide input (e.g., swipe left) on the sidebar area so that the phone can display a first control (e.g., a control 10 in the shape of a location marker) in the area swiped by the user. The user can then move the first control sequentially to M messages so that the phone can determine the location marker from the M messages.

[0044] Step 202: In response to the first input, the electronic device displays a first window and displays at least one location identifier in the first window.

[0045] In this embodiment of the application, the above-mentioned at least one location identifier is a location identifier contained in M ​​messages.

[0046] Optionally, in this embodiment of the application, the at least one location identifier includes a location identifier selected by the user from M messages.

[0047] Optionally, in this embodiment of the application, for each of the M messages, the user can select a location identifier in a message to select at least one of the aforementioned location identifiers from the M messages.

[0048] Optionally, in this embodiment of the application, the user can first input a message (e.g., double-click to input), so that the electronic device can mark the message in the target session interface in the form of a magnified mark or a grayscale mark, and then the user can select and input the location identifier in the message.

[0049] Optionally, in this embodiment of the application, the user's selection input for a location identifier in a message may include two sub-inputs. One sub-input is the user's sliding input of a location identifier in a message to trigger the electronic device to display a first control. The other sub-input is the user's input of moving one or more location identifiers in a message to the first control to trigger the electronic device to determine the one or more location identifiers as the location identifiers selected from the message.

[0050] For example, referring to Figure 2 and as shown in Figure 5, a user can input one of the M messages (e.g., the message sent by user B, "Last time I found it at No. 130 xx Road and xx Building"), so that the mobile phone can mark the message with a magnified marker. The user can then select location identifier a ("No. 130 xx Road") in the message, causing the mobile phone to display the first control 10. The user can move location identifier a to the first control 10, so that the mobile phone identifies location identifier a as the location identifier selected from the message. Then, the user can continue to select location identifier b ("No. 130 xx Road") in the message, moving location identifier b to the first control 10, so that the mobile phone identifies location identifier b as the location identifier selected from the message. Thus, the location identifiers selected by the user from the message include location identifier a and location identifier b.

[0051] It should be noted that for each of the M messages, a location identifier can be selected through the process described in Figure 5, so as to select at least one location identifier from the M messages.

[0052] Optionally, in this embodiment of the application, the at least one location identifier includes all location identifiers identified by the electronic device from the M messages.

[0053] In this embodiment of the application, the electronic device can perform semantic analysis on each message to divide each message into multiple strings, and compare the multiple strings with preset keywords (such as words indicating location such as "road", "street", "building", "mansion") to determine the location identifier contained in each message.

[0054] Optionally, in this embodiment of the application, the at least one location identifier includes a location identifier selected by the user from a portion of the M messages, and all location identifiers identified by the electronic device from another portion of the M messages.

[0055] Optionally, in this embodiment of the application, the electronic device may display at least one location identifier in a first window in the form of divided areas, each area corresponding to a message, and each area is used to display the location identifier in a message.

[0056] For example, referring to Figure 2, as shown in Figure 6, after a user selects M messages (i.e., messages sent by user B, messages sent by user C, and messages sent by user D), the mobile phone can obtain the location identifiers in these messages and display a first window 11 to display the location identifiers in these messages in a segmented manner in the first window 11.

[0057] Step 203: The electronic device receives a second input from the user for N location identifiers from at least one location identifier.

[0058] In the embodiments of this application, N is a positive integer.

[0059] Optionally, in this embodiment of the application, the second input can be the user's selection input or long-press input of N location identifiers to trigger the electronic device to obtain the location information of the locations corresponding to the N location identifiers.

[0060] Step 204: The electronic device responds to the second input, displays a second window, and displays the location information of the locations corresponding to the N location identifiers in the second window.

[0061] Optionally, in this embodiment of the application, the location information of the location corresponding to each of the above N location identifiers includes, but is not limited to, at least one of the following: the geographical location information of the location corresponding to each location identifier, the distance between the location corresponding to each location identifier and the user's current location, and the navigation route information from the user's current location to the location corresponding to each location identifier.

[0062] Optionally, in this embodiment of the application, the electronic device may display the location information of the locations corresponding to N location identifiers in a second window in the form of a list, a map, or a chart.

[0063] Optionally, in this embodiment of the application, the step 204 above, "displaying the location information of the locations corresponding to the N location identifiers in the second window", can be specifically implemented through the following steps 204a to 204c.

[0064] Step 204a: The electronic device displays N location markers on the target map in the second window based on the location information of the locations corresponding to the N location markers.

[0065] Optionally, in this embodiment of the application, the electronic device may mark the locations of N location identifiers in the second window, display the names or icons of the N location identifiers, and mark the user's current location.

[0066] Step 204b: The electronic device receives the user's sixth input for K location identifiers out of N location identifiers.

[0067] In this embodiment of the application, K is a positive integer less than or equal to N.

[0068] Optionally, in this embodiment of the application, the sixth input can be a user's click or swipe input on the K location identifiers to trigger the electronic device to display the location information of the corresponding locations of the K location identifiers.

[0069] Step 204c: In response to the sixth input, the electronic device displays the location information of the K location identifiers in the second window, or displays the navigation information of the K location identifiers in the target application interface.

[0070] In this embodiment of the application, the target application interface is the interface of an application with positioning function.

[0071] Optionally, in this embodiment of the application, the location information of the locations corresponding to the K location identifiers may include at least one of the following: the distance between the locations corresponding to the K location identifiers, the relative direction between the locations corresponding to the K location identifiers, and the geographical location information of the locations corresponding to the K location identifiers.

[0072] For example, referring to Figure 4, as shown in Figure 7, the mobile phone marks the user's current location and the locations corresponding to the three location markers (No. 130 xx Road, xx Shopping Center, and xx Building) on ​​the target map in the second window 12, and displays the straight-line distances between the user's current location and the locations corresponding to the three location markers. For example, the straight-line distance between the user's current location and No. 130 xx Road is 6km, the straight-line distance between the user's current location and xx Shopping Center is 7km, and the straight-line distance between the user's current location and xx Building is 5km. Thus, the user knows from the information displayed in the second window 12 that xx Building is the closest to the user's current location and xx Shopping Center is the farthest from the current location.

[0073] Optionally, in this embodiment of the application, the navigation information of the locations corresponding to the K location identifiers may include at least one of the following: route information from the user's current location to the locations corresponding to the K location identifiers, and time information from the user's current location to the locations corresponding to the K location identifiers.

[0074] In this embodiment of the application, after receiving the user's second input, the electronic device can display N location markers on the target map in the second window and display the location information of K location markers, so that the user can intuitively obtain the location information between the locations corresponding to the location markers through the image.

[0075] This application provides a method for obtaining location information. After receiving a user's first input of M messages in a target conversation interface, the electronic device can display at least one location identifier from the chat history. Then, the electronic device can receive a second input from the user of N location identifiers from the at least one location identifier, so as to display the location information of the locations corresponding to the N location identifiers in the target conversation interface. In this application embodiment, the user can make a first input of M messages, so that the electronic device can determine at least one location identifier from the M messages and display these location identifiers to the user through a first window. Then, the user can make a second input of N location identifiers from these location identifiers to trigger the electronic device to display the location information of the locations corresponding to the N location identifiers. This allows the user to obtain the location information of locations contained in multiple messages more conveniently and intuitively in the conversation interface, thus improving the flexibility and efficiency of the electronic device in querying location information.

[0076] Optionally, in this embodiment of the application, before “displaying the second window” in step 204 above, the location information acquisition method provided in this embodiment of the application further includes steps 401 to 403.

[0077] Step 401: The electronic device responds to the second input, marks N location identifiers, and displays the target application identifier.

[0078] In this embodiment of the application, the target application identifier is used to indicate an application with location functionality.

[0079] Optionally, in this embodiment, the electronic device marks N location identifiers in any of the following ways: adding a rectangular box, selecting a checkbox, highlighting, or bolding the message. The specific method can be determined according to actual usage requirements, and this embodiment does not impose any limitations.

[0080] Optionally, in this embodiment of the application, the electronic device may display the target application identifier in a blank area or the area corresponding to the message input box in the target session interface; or, the electronic device may display the target application identifier in the target session interface as a floating window.

[0081] For example, referring to Figure 6, as shown in Figure 8, the user can make a second input on N location identifiers (e.g., No. 130 xx Road, No. xx Building, and No. xx Shopping Center in the message sent by user B, No. xx Building in the message sent by user C, and No. xx Shopping Center in the message sent by user D) displayed in the first window 11, so that the mobile phone can display the target application identifier (e.g., Map A, Map B, and Map C) in the area corresponding to the message input box in the target session interface.

[0082] Step 402: The electronic device receives the user's fourth input.

[0083] In this embodiment of the application, the fourth input is an input to move N location identifiers to the location of the target application identifier, so as to trigger the electronic device to query the location information of the location corresponding to the N location identifiers through the application corresponding to the target application identifier.

[0084] Step 403: In response to the fourth input, the electronic device obtains the location information of the locations corresponding to the N location identifiers through the application program indicated by the target application identifier.

[0085] In this embodiment of the application, after receiving the fourth input, the electronic device can run the application indicated by the target application identifier in the background, and search for N location identifiers through the application indicated by the target application identifier to obtain the location information of the locations corresponding to the N location identifiers.

[0086] In this embodiment of the application, after the user inputs N location identifiers in the second way, the electronic device can display the target application identifier in the target session interface. The user can then directly move the N location identifiers to the target application identifier, so that the electronic device can quickly obtain the location information of the locations corresponding to the N location identifiers, thereby improving the convenience and efficiency of querying the location information of the locations in the message.

[0087] Optionally, in this embodiment of the application, the electronic device includes a first display area and a second display area. The first display area includes a target session interface, and the second display area includes a target application identifier, which is used to indicate an application with location functionality.

[0088] It should be noted that the first display area and the second display area mentioned above can be two display areas of an electronic device with a foldable screen, or two display areas after the screen of the electronic device is split.

[0089] Optionally, in this embodiment of the application, after the electronic device marks N location identifiers, the user can fold the electronic device with the foldable screen to input, thereby folding the screen of the electronic device into two display areas, namely a first display area and a second display area. Alternatively, after the electronic device marks N location identifiers, the user can perform split-screen input on the screen of the electronic device to divide the screen of the electronic device into two display areas, namely a first display area and a second display area.

[0090] Optionally, in this embodiment, the second display area includes a desktop, which includes at least one application identifier, and the at least one application identifier includes a target application identifier. Alternatively, the second display area includes a third window, which includes the target application identifier.

[0091] For example, before “displaying the second window” in step 204 above, the location information acquisition method provided in this application embodiment further includes steps 404 to 406.

[0092] Step 404: The electronic device responds to the second input and marks N location identifiers.

[0093] It should be noted that the explanation of marking N location identifiers on electronic devices can be found in the description in the above embodiments, and will not be repeated here.

[0094] Step 405: The electronic device receives the user's fifth input.

[0095] In this embodiment of the application, the fifth input is the input to move the N location identifiers to the location of the target application identifier in the second display area, so as to trigger the electronic device to query the location information of the location corresponding to the N location identifiers through the application corresponding to the target application identifier.

[0096] Step 406: The electronic device responds to the fifth input and obtains the location information of the locations corresponding to the N location identifiers through the application program indicated by the target application identifier.

[0097] In this embodiment of the application, after the user inputs N location identifiers in the second way, the electronic device can display the target application identifier in the second display area. This allows the user to directly move the N location identifiers to the target application identifier, enabling the electronic device to quickly obtain the location information of the locations corresponding to the N location identifiers, thereby improving the convenience and efficiency of querying the location information of the locations in the message.

[0098] Optionally, in this embodiment of the application, after step 204 above, the location information acquisition method provided in this embodiment of the application further includes steps 501 and 502.

[0099] Step 501: The electronic device receives the user's seventh input to the second window.

[0100] Optionally, in this embodiment of the application, the seventh input can be a user's movement input or swiping input on the second window to trigger the electronic device to send / share the location information displayed in the second window.

[0101] Optionally, in this embodiment of the application, the seventh input is the user's input to move the second window to the message input box, or the input to move the second window to a blank area or user avatar in the target session interface; to trigger the electronic device to send / share the location information displayed in the second window.

[0102] Step 502: The electronic device responds to the seventh input by displaying route information corresponding to N location identifiers in the message input box, or by sending and displaying the target link in the target chat interface.

[0103] In this embodiment of the application, the route information corresponding to each of the above N location markers is used to indicate: the route from the location of the electronic device to the location corresponding to one of the N location markers; the above target link is a navigation link for the location information of the location corresponding to the N location markers.

[0104] It should be noted that the description of the route information can be found in the above embodiments, and will not be repeated here. The above navigation link can be understood as a quick entry point to the location information of the locations corresponding to the N location markers, that is, the user can directly click on the navigation link to make the electronic device display the location information of the locations corresponding to the N location markers.

[0105] For example, referring to Figure 7 and as shown in Figure 9, when the user moves the second window 12 to the message input box, the mobile phone displays the route information between the user's current location and the xx building in the message input box ("The closest place to the xx building from your location is by taking bus 77, or you can go to No. 130 xx Road and take Metro Line 1 to xx station"). Thus, the user can send the information in the message input box to the target session interface, or copy and paste it to send to other users.

[0106] For example, referring to Figure 7, as shown in Figure 10, when the user moves the second window 12 to a blank area of ​​the target session interface, the mobile phone can send and display the target link in the target session interface, so that other users can conveniently view the location information through the displayed link.

[0107] Optionally, in this embodiment of the application, if the target conversation interface is a group chat interface, and the seventh input is that the user moves the second window to a user avatar in the target conversation interface, the electronic device can send and display the target link in the private chat conversation interface corresponding to that user avatar.

[0108] In this embodiment of the application, the user can make a seventh input to the second window so that the electronic device can share the route information corresponding to N location identifiers or share the target link in the target session interface, thereby making it easier for other users to view the location information corresponding to N location identifiers, thus improving the diversity and flexibility of users viewing location information.

[0109] It should be noted that the location information acquisition method provided in this application can be executed by a location information acquisition device, an electronic device, or a functional module or entity within an electronic device. This application uses an electronic device executing the location information acquisition method as an example to illustrate the location information acquisition device provided in this application.

[0110] Figure 11 shows a possible structural schematic diagram of the location information acquisition device involved in an embodiment of this application. As shown in Figure 11, the location information acquisition device 70 may include: a receiving module 71 and a display module 72.

[0111] Among them, the receiving module 71 is used to receive the user's first input of M messages in the target session interface, where M is a positive integer;

[0112] Display module 72 is configured to display a first window in response to a first input received by receiving module 71, and to display at least one location identifier in the first window, wherein the at least one location identifier is a location identifier contained in M ​​messages;

[0113] The receiving module 71 is also configured to receive a second input from the user for N location identifiers in at least one location identifier, where N is a positive integer;

[0114] The display module 72 is also used to respond to the second input received by the receiving module 71, display a second window, and display the location information of the locations corresponding to the N location identifiers in the second window.

[0115] This application provides a location information acquisition device. A user can input M messages as a first input, enabling the location information acquisition device to determine at least one location identifier from the M messages and display these location identifiers to the user through a first window. Then, the user can input N location identifiers from these location identifiers as a second input, triggering the location information acquisition device to display the location information of the locations corresponding to the N location identifiers. This allows the user to obtain the location information of locations contained in multiple messages more conveniently and intuitively in the conversation interface, thereby improving the flexibility and efficiency of the location information acquisition device in querying location information.

[0116] In one possible implementation, the receiving module 71 is further configured to receive a third input from the user to the target session interface before receiving the first input from the user to the M messages in the target session interface. The display module 72 is further configured to display a first control in the target session interface in response to the third input received by the receiving module 71. The first input is the user's input when moving the first control to the M messages.

[0117] In one possible implementation, the location information acquisition device provided in this application embodiment further includes a marking module and an acquisition module. The marking module is used to mark N location identifiers before displaying the second window. The display module 72 is also used to display a target application identifier, which indicates an application with location functionality. The receiving module 71 is also used to receive a fourth input from the user, which is an input to move the N location identifiers to the location of the target application identifier. The acquisition module is used, in response to the fourth input received by the receiving module 71, to acquire the location information of the locations corresponding to the N location identifiers through the application indicated by the target application identifier.

[0118] In one possible implementation, the electronic device includes a first display area and a second display area. The first display area includes a target session interface, and the second display area includes a target application identifier, which indicates an application with location functionality. The location information acquisition device provided in this application embodiment further includes a marking module and an acquisition module. The marking module is used to mark N location identifiers before the display module 72 displays the second window. The receiving module 71 is further used to receive a fifth input from the user, which is an input to move the N location identifiers to the position of the target application identifier in the second display area. The acquisition module is used, in response to the fifth input received by the receiving module 71, to acquire the location information of the locations corresponding to the N location identifiers through the application indicated by the target application identifier.

[0119] In one possible implementation, the display module 72 is specifically used to display N location identifiers on the target map in the second window based on the location information of the locations corresponding to the N location identifiers; and to receive a sixth input from the user for K location identifiers among the N location identifiers, where K is a positive integer less than or equal to N; and in response to the sixth input, to display the orientation information of the locations corresponding to the K location identifiers in the second window, or to display the navigation information of the locations corresponding to the K location identifiers in the target application interface, where the target application interface is the interface of an application with positioning function.

[0120] The location information acquisition device in this application embodiment can be an electronic device or a component within an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices besides a terminal. For example, the electronic device can be a mobile phone, tablet computer, laptop computer, PDA, in-vehicle electronic device, mobile internet device (MID), augmented reality (AR) / virtual reality (VR) device, robot, wearable device, ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc. It can also be a server, network attached storage (NAS), personal computer (PC), television (TV), ATM, or self-service machine, etc. This application embodiment does not specifically limit the device.

[0121] The location information acquisition device in this application embodiment can be a device with an operating system. This operating system can be Android, iOS, or other possible operating systems; this application embodiment does not specifically limit it.

[0122] The location information acquisition device provided in this application embodiment can implement all the processes implemented in the above method embodiments, and will not be described again here to avoid repetition.

[0123] Optionally, as shown in FIG12, this application embodiment also provides an electronic device 90, including a processor 91 and a memory 92. The memory 92 stores a program or instructions that can run on the processor 91. When the program or instructions are executed by the processor 91, they implement the various steps of the above-described location information acquisition method embodiment and can achieve the same technical effect. To avoid repetition, they will not be described again here.

[0124] It should be noted that the electronic devices in the embodiments of this application include the mobile electronic devices and non-mobile electronic devices described above.

[0125] Figure 13 is a schematic diagram of the hardware structure of an electronic device that implements an embodiment of this application.

[0126] The electronic device 100 includes, but is not limited to, components such as: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, and processor 110.

[0127] Those skilled in the art will understand that the electronic device 100 may also include a power supply (such as a battery) for powering various components. The power supply may be logically connected to the processor 110 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system. The electronic device structure shown in Figure 13 does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.

[0128] The user input unit 107 is configured to receive a first input from the user regarding M messages in the target session interface, where M is a positive integer. The display unit 106 is configured to, in response to the first input, display a first window and show at least one location identifier within the first window, where the at least one location identifier is one of the location identifiers contained in the M messages. The user input unit 107 is further configured to receive a second input from the user regarding N location identifiers from the at least one location identifier, where N is a positive integer. The display unit 106 is further configured to, in response to the second input, display a second window and show the location information of the locations corresponding to the N location identifiers within the second window.

[0129] This application provides an electronic device in which a user can input M messages as a first input, enabling the electronic device to determine at least one location identifier from the M messages and display these location identifiers to the user through a first window. Then, the user can input N location identifiers from these location identifiers as a second input, triggering the electronic device to display the location information of the locations corresponding to the N location identifiers. This allows the user to obtain the location information of the locations contained in multiple messages more conveniently and intuitively in the conversation interface, thereby improving the flexibility and efficiency of the electronic device in querying location information.

[0130] Optionally, the user input unit 107 is further configured to receive a third input from the user to the target session interface before receiving the first input from the user to the M messages in the target session interface. The display unit 106 is further configured to display a first control in the target session interface in response to the third input. The first input is the user moving the first control to the M messages.

[0131] Optionally, the processor 110 is further configured to mark N location identifiers and display a target application identifier before displaying the second window, the target application identifier indicating an application with location functionality. The user input unit 107 is further configured to receive a fourth input from the user, the fourth input being an input to move the N location identifiers to the location of the target application identifier. The processor 110 is further configured to, in response to the fourth input, obtain location information of the locations corresponding to the N location identifiers through the application indicated by the target application identifier.

[0132] Optionally, the electronic device includes a first display area and a second display area. The first display area includes a target session interface, and the second display area includes a target application identifier, which indicates an application with location functionality. The processor 110 is further configured to mark N location identifiers before displaying the second window. The user input unit 107 is further configured to receive a fifth input from the user, which is an input to move the N location identifiers to the position of the target application identifier in the second display area. The processor 110 is further configured to, in response to the fifth input, obtain location information of the locations corresponding to the N location identifiers through the application indicated by the target application identifier.

[0133] Optionally, the display unit 106 is specifically used to display N location identifiers on the target map in the second window based on the location information of the locations corresponding to the N location identifiers. The user input unit 107 is specifically used to receive a sixth input from the user for K location identifiers out of the N location identifiers, where K is a positive integer less than or equal to N. The display unit 106 is specifically used to respond to the sixth input by displaying the orientation information of the locations corresponding to the K location identifiers in the second window, or displaying the navigation information of the locations corresponding to the K location identifiers in the target application interface, where the target application interface is the interface of an application with positioning function.

[0134] The electronic device provided in this application embodiment can implement the various processes implemented in the above method embodiments and achieve the same technical effect. To avoid repetition, it will not be described again here.

[0135] The beneficial effects of the various implementation methods in this embodiment can be found in the beneficial effects of the corresponding implementation methods in the above method embodiments. To avoid repetition, they will not be repeated here.

[0136] It should be understood that, in this embodiment, the input unit 104 may include a graphics processing unit (GPU) 1041 and a microphone 1042. The GPU 1041 processes image data of still images or videos obtained by an image capture device (such as a camera) in video capture mode or image capture mode. The display unit 106 may include a display panel 1061, which may be configured in the form of a liquid crystal display, an organic light-emitting diode, or the like. The user input unit 107 includes at least one of a touch panel 1071 and other input devices 1072. The touch panel 1071 is also called a touch screen. The touch panel 1071 may include a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, power buttons, etc.), a trackball, a mouse, and a joystick, which will not be described in detail here.

[0137] The memory 109 can be used to store software programs and various data. The memory 109 may primarily include a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area may store the operating system, application programs or instructions required for at least one function (such as sound playback, image playback, etc.). Furthermore, the memory 109 may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus RAM (DRRAM). The memory 109 in the embodiments of this application includes, but is not limited to, these and any other suitable types of memory.

[0138] Processor 110 may include one or more processing units; optionally, processor 110 integrates an application processor and a modem processor, wherein the application processor mainly handles operations involving the operating system, user interface, and applications, and the modem processor mainly handles wireless communication signals, such as a baseband processor. It is understood that the aforementioned modem processor may also not be integrated into processor 110.

[0139] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the above method embodiments and achieve the same technical effect. To avoid repetition, they will not be described again here.

[0140] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.

[0141] This application embodiment also provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the various processes of the above method embodiments and achieve the same technical effect. To avoid repetition, it will not be described again here.

[0142] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.

[0143] This application provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the various processes of the above method embodiments and achieve the same technical effects. To avoid repetition, it will not be described again here.

[0144] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

[0145] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0146] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.

Claims

1. A method for acquiring location information, characterized in that, The method includes: receiving a third input from a user to a target session interface; in response to the third input, displaying a first control in the target session interface; receiving a first input from the user to move the first control to M messages in the target session interface, where M is a positive integer; in response to the first input, displaying a corresponding location identifier in each of the M messages, and displaying a first window, wherein at least one location identifier is displayed in the first window, and the at least one location identifier is a location identifier contained in the M messages; receiving a second input from the user to N location identifiers among the at least one location identifier, where N is a positive integer; in response to the second input, displaying a second window, and displaying location information of the locations corresponding to the N location identifiers in the second window.

2. The method according to claim 1, characterized in that, Before displaying the second window, the method further includes: marking the N location identifiers and displaying a target application identifier, the target application identifier being used to indicate an application with location functionality; receiving a fourth input from the user, the fourth input being an input to move the N location identifiers to the location of the target application identifier; and in response to the fourth input, obtaining location information of the locations corresponding to the N location identifiers through the application indicated by the target application identifier.

3. The method according to claim 1, characterized in that, The electronic device includes a first display area and a second display area. The first display area includes the target session interface, and the second display area includes a target application identifier, which is used to indicate an application with location functionality. Before displaying the second window, the method further includes: marking the N location identifiers; The system receives a fifth input from the user, which is an input to move the N location identifiers to the location of the target application identifier in the second display area; in response to the fifth input, the system obtains the location information of the locations corresponding to the N location identifiers through the application indicated by the target application identifier.

4. The method according to claim 1, 2 or 3, characterized in that, The step of displaying the location information of the locations corresponding to the N location identifiers in the second window includes: displaying the N location identifiers on the target map in the second window according to the location information of the locations corresponding to the N location identifiers; receiving a sixth input from the user for K location identifiers among the N location identifiers, where K is a positive integer less than or equal to N; and responding to the sixth input, displaying the orientation information of the locations corresponding to the K location identifiers in the second window, or displaying the navigation information of the locations corresponding to the K location identifiers in the target application interface, wherein the target application interface is the interface of an application with positioning function.

5. A location information acquisition device, characterized in that, The location information acquisition device includes: a receiving module and a display module; the receiving module is configured to receive a third input from the user to the target session interface before receiving a first input from the user to M messages in the target session interface; the display module is configured to display a first control in the target session interface in response to the third input received by the receiving module; the receiving module is further configured to receive a first input from the user moving the first control to the M messages in the target session interface, where M is a positive integer; the display module is further configured to display a corresponding location identifier in each of the M messages in response to the first input received by the receiving module, and display a first window, in which at least one location identifier is displayed, the at least one location identifier being a location identifier included in the M messages; the receiving module is further configured to receive a second input from the user to N location identifiers among the at least one location identifier, where N is a positive integer; the display module is further configured to display a second window in response to the second input received by the receiving module, and display the location information of the locations corresponding to the N location identifiers in the second window.

6. The apparatus according to claim 5, characterized in that, The device further includes: a marking module and an acquisition module; the marking module is used to mark the N location identifiers before displaying the second window; the display module is also used to display a target application identifier, which indicates an application with location functionality; the receiving module is also used to receive a fourth input from the user, which is an input to move the N location identifiers to the location of the target application identifier; the acquisition module is used to, in response to the fourth input received by the receiving module, acquire the location information of the locations corresponding to the N location identifiers through the application indicated by the target application identifier.

7. The apparatus according to claim 5, characterized in that, The electronic device includes a first display area and a second display area. The first display area includes the target session interface, and the second display area includes a target application identifier, which is used to indicate an application with location functionality. The device further includes a marking module and an acquisition module. The marking module is used to mark the N location identifiers before the display module displays a second window. The receiving module is also used to receive a fifth input from the user, which is an input to move the N location identifiers to the position of the target application identifier in the second display area. The acquisition module is used to, in response to the fifth input received by the receiving module, acquire the location information of the locations corresponding to the N location identifiers through the application indicated by the target application identifier.

8. The apparatus according to claim 5, 6 or 7, characterized in that, The display module is specifically used to display the N location identifiers on the target map in the second window according to the location information of the locations corresponding to the N location identifiers; and to receive a sixth input from the user for K location identifiers among the N location identifiers, where K is a positive integer less than or equal to N; In response to the sixth input, the location information of the locations corresponding to the K location identifiers is displayed in the second window, or the navigation information of the locations corresponding to the K location identifiers is displayed in the target application interface, wherein the target application interface is the interface of an application with positioning function.

Citation Information

Patent Citations

  • Method, client and system for acquiring instant messaging position correlation information

    CN102821105A

  • Instant messaging method, client and electronic device

    CN106708353A

  • Data transmission method and equipment

    CN114077411A