Location message processing method, device, equipment and storage medium
By realizing the drag interaction of location messages in the instant messaging tool, the route information between the two is automatically obtained, which solves the problem in the existing technology that users need to manually input the location address, and improves communication efficiency and ease of operation.
Patent Information
- Application Number
- CN201911151197.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-11-21
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2040-02-26
AI Technical Summary
During instant messaging, users need to manually enter the addresses of two locations to determine the route between them, resulting in inefficient communication.
By implementing gesture interaction in instant messaging tools, users can drag one location message to the display area of another location message, and automatically obtain and output the route information between the two.
It simplifies user operations, improves communication efficiency, and can quickly obtain route information whether connected to the network or not.
Smart Images

Figure CN112825073B
Abstract
Description
Technical Field
[0001] The present application relates to the field of Internet technology, and in particular to a location message processing method, device, equipment and storage medium. Background Art
[0002] With the development of Internet technology and smart terminals, people can communicate anytime and anywhere, and the way of communication has also evolved from traditional phone calls and text messages to communication through instant messaging tools. Instant messaging tools based on instant messaging technology enable users to identify online users and exchange messages with them in real time. They are popular because of their good communication flexibility and timeliness.
[0003] With the development of instant messaging technology, users can send location information to other users through instant messaging tools. Currently, when a user is faced with two different location messages and wants to determine the route between the two locations, he needs to manually enter the two locations, which is time-consuming and labor-intensive, and greatly affects communication efficiency. Summary of the invention
[0004] The embodiments of the present application provide a location message processing method, device, and storage medium, which can conveniently and quickly obtain route information between two locations.
[0005] The technical solution of the embodiment of the present application is implemented as follows:
[0006] The present invention provides a method for processing a location message, including:
[0007] In response to the received first operation, obtaining a first location message corresponding to a first action point of the first operation, wherein the first action point is located in a first display area of the first location message;
[0008] Acquire a second location message corresponding to a second action point of the first operation, wherein the second action point of the first operation is located in a second display area of the second location message;
[0009] Acquire route information between a first location and a second location, wherein the first location is carried in a first location message and the second location is carried in a second location message;
[0010] The route information is output.
[0011] The present application provides a location message processing device, including:
[0012] A first acquisition module, configured to acquire, in response to a received first operation, a first location message corresponding to a first action point of the first operation, wherein the first action point is located in a first display area of the first location message;
[0013] A second acquisition module, configured to acquire a second location message corresponding to a second action point of the first operation, wherein the second action point of the first operation is located in a second display area of the second location message;
[0014] A third acquisition module, configured to acquire route information between a first location and a second location, wherein the first location is carried in a first location message, and the second location is carried in a second location message;
[0015] The first output module is used to output the route information.
[0016] The present application provides a location message processing device, including:
[0017] A memory for storing executable instructions;
[0018] The processor is used to implement the method provided in the embodiment of the present application when executing the executable instructions stored in the memory.
[0019] An embodiment of the present application provides a storage medium storing executable instructions for causing a processor to execute and implement the method provided in the embodiment of the present application.
[0020] The embodiments of the present application have the following beneficial effects:
[0021] In the location message processing method provided in the embodiment of the present application, when two location messages are received and the route relationship between the two locations carried in the two location messages is to be determined, a location message is selected through a first operation, thereby obtaining the first location carried in the location message, and further obtaining the second location carried in another location message corresponding to the point of action of the first operation. In this way, the route information between the first location and the second location is obtained and output, so that the route information between the two locations can be quickly located through simple gesture interaction, thereby effectively improving communication efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1A It is a schematic diagram of the interface for location message processing in the related art;
[0023] Figure 1B A schematic diagram of a network architecture of a location message processing method according to an embodiment of the present application;
[0024] Figure 1C A schematic diagram of another network architecture of the location message processing method according to an embodiment of the present application;
[0025] Figure 1D This is an optional structural diagram of the network architecture provided in the embodiment of the present application applied to a blockchain system;
[0026] Figure 1EIt is an optional schematic diagram of a block structure provided in an embodiment of the present application;
[0027] Figure 2 is a schematic diagram of the structure of the user terminal 100 provided in an embodiment of the present application;
[0028] Figure 3 A schematic diagram of an implementation flow of a location message processing method provided in an embodiment of the present application;
[0029] Figure 4 A schematic diagram of another implementation flow of the location message processing method provided in an embodiment of the present application;
[0030] Figure 5 A schematic diagram of another implementation flow of the location message processing method provided in an embodiment of the present application;
[0031] Figure 6 A schematic diagram of an implementation interface of a location message processing method provided in an embodiment of the present application;
[0032] Figure 7 A schematic diagram of the change of the location card with the gesture touch point provided in the embodiment of the present application;
[0033] Figure 8 A schematic diagram of the implementation principle of the location message processing method provided in an embodiment of the present application. DETAILED DESCRIPTION
[0034] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. The described embodiments should not be regarded as limiting the present application. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of this application.
[0035] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0036] In the following description, the terms "first\second\third" involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present application described here can be implemented in an order other than that illustrated or described here.
[0037] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0038] Before further describing the embodiments of the present invention in detail, the nouns and terms involved in the embodiments of the present invention are described. The nouns and terms involved in the embodiments of the present invention are subject to the following interpretations.
[0039] 1) Blockchain: An encrypted, chained transaction storage structure formed by blocks.
[0040] 2) Blockchain Network: A collection of nodes that incorporate new blocks into the blockchain through consensus.
[0041] In order to better understand the embodiments of the present application, the processing method and existing shortcomings of the location message processing method in the related art are first described.
[0042] Figure 1A It is a schematic diagram of the interface for location message processing in the related art, such as Figure 1A As shown in 101 in the instant messaging process, when a location message is received, it is displayed in the instant messaging interface in the form of a location message card 1011. Figure 1A In 101, two location messages are received. In the related art, when a location message is received during instant messaging, a single location message can be clicked to view the location shared by a friend, or Figure 1A As shown in 102 and 103, after clicking on the location message, the distance relationship between the location and "my" current location can be viewed.
[0043] like Figure 1A As shown in 101 in FIG. 1 , the user receives two location messages, namely, Shenzhen Talent Park and Happy Valley. Then, when the user clicks the location message card of Shenzhen Talent Park, the following is displayed: Figure 1A In the interface shown in 102, when the user clicks on the Happy Valley location message card, the following information will be displayed: Figure 1A The interface shown in 103.
[0044] In the related art, if one wants to determine the distance relationship between two locations that are different from the user himself, the two locations need to be re-entered into the map. In this process, the user needs to at least remember the accurate address information of the two locations and enter them accurately into the map. Sometimes, when the address text is very long and the text is unfamiliar, it needs to be memorized repeatedly. The whole process is cumbersome and inefficient.
[0045] Based on this, an embodiment of the present application provides a location message processing method, which automatically enters the map page and displays the distance relationship between the two locations by dragging one location message to another location message with one click. The operation is simple, and can effectively improve communication efficiency.
[0046] The following describes an exemplary application of the apparatus for implementing the embodiment of the present application. The apparatus provided in the embodiment of the present application can be implemented as a terminal device. The following describes an exemplary application of the terminal device when the apparatus is implemented as a terminal device.
[0047] See also Figure 1B , Figure 1B This is a schematic diagram of the network architecture of the location message processing method according to an embodiment of the present application. Figure 1B As shown, the network architecture includes at least a user terminal 100 (in Figure 1B The user terminal 100-1, the user terminal 100-2, the user terminal 100-3), the server 200 and the network 300 are shown as examples. To support an exemplary application, the user terminal 100 is connected to the server 200 through the network 300, and the user terminal 100-1, the user terminal 100-2 and the user terminal 100-3 are also connected to each other through the network 300. The network 300 can be a wide area network or a local area network, or a combination of the two, and a wireless link is used to realize data transmission.
[0048] Instant messaging applications (Application, App) are installed in user terminals 100-1, 100-2 and 100-3, and users A, B and C corresponding to user terminals 100-1, 100-2 and 100-3 are in the same chat group. User A sends a first location message to user terminal 100-3 through user terminal 100-1, and user B sends a second location message to user terminal 100-3 through user terminal 100-2. At this time, two location message cards are displayed in user terminal 100-3. When user C wants to obtain route information between the first location and the second location, he long presses the first location message and drags the first location message to the display area of the second location message. When the long press is canceled, user terminal 100-3 sends the first location and the second location to server 200. Server 200 determines the route information between the first location and the second location, and sends the route information to user terminal 100-3 to display the route information in the map page opened by user terminal 100-3.
[0049] See also Figure 1C , Figure 1C This is a schematic diagram of the network architecture of the location message processing method according to an embodiment of the present application. Figure 1BAs shown, the network architecture includes at least a user terminal 100 (in Figure 1B The user terminal 100-1, the user terminal 100-2, the user terminal 100-3) and the network 300 are exemplarily shown. To support an exemplary application, a communication connection is established between the user terminal 100-1, the user terminal 100-2 and the user terminal 100-3 through the network 300. The network 300 can be a wide area network or a local area network, or a combination of the two, and a wireless link is used to realize data transmission.
[0050] Instant messaging applications (Application, App) are installed in user terminals 100-1, 100-2 and 100-3, and users A, B and C corresponding to user terminals 100-1, 100-2 and 100-3 are in the same chat group. User A sends a first location message to user terminal 100-3 through user terminal 100-1, and user B sends a second location message to user terminal 100-3 through user terminal 100-2. At this time, two location message cards are displayed in user terminal 100-3. When user C wants to obtain route information between the first location and the second location, he long presses the first location message and drags the first location message to the display area of the second location message. When the long press is canceled, user terminal 100-3 determines the route information between the first location and the second location through the offline map data stored in itself, and displays the route information in the map page opened by user terminal 100-3.
[0051] The embodiments of the present application involve a client (for example, an instant messaging client) and multiple nodes (any form of computing device connected to the network, such as a server and a user terminal) connected through a distributed system formed by network communication.
[0052] Here we take the distributed system as a blockchain system as an example, see Figure 1D , Figure 1D This is an optional structural diagram of the network architecture 101 provided in the embodiment of the present application applied to the blockchain system, which is formed by multiple nodes 102 (any form of computing devices in the access network, such as servers, user terminals) and clients 103. The nodes form a peer-to-peer (P2P) network. The P2P protocol is an application layer protocol running on the Transmission Control Protocol (TCP). In a distributed system, any machine such as a server or terminal can join and become a node. The node includes a hardware layer, an intermediate layer, an operating system layer, and an application layer.
[0053] See also Figure 1DThe functions of each node in the blockchain system shown include:
[0054] 1) Routing: a basic function of a node, used to support communication between nodes.
[0055] In addition to the routing function, the node can also have the following functions:
[0056] 2) Applications are deployed in the blockchain to implement specific businesses based on actual business needs, record data related to the implementation of functions to form record data, carry digital signatures in the record data to indicate the source of the task data, and send the record data to other nodes in the blockchain system for other nodes to add the record data to a temporary block when they successfully verify the source and integrity of the record data.
[0057] For example, the services implemented by the application include:
[0058] 2.1) Wallet, used to provide the function of conducting electronic currency transactions, including initiating transactions (i.e., sending the transaction record of the current transaction to other nodes in the blockchain system. After successful verification by other nodes, as a response to acknowledging the validity of the transaction, the transaction record data is stored in a temporary block of the blockchain; of course, the wallet also supports querying the remaining electronic currency in the electronic currency address.
[0059] 2.2) Shared ledger, which is used to provide functions such as storage, query and modification of account data. The record data of the operation on the account data is sent to other nodes in the blockchain system. After other nodes verify the validity, as a response to acknowledging the validity of the account data, the record data is stored in a temporary block, and a confirmation can also be sent to the node that initiated the operation.
[0060] 2.3) Smart contracts are computerized protocols that can execute the terms of a contract. They are implemented by deploying code on a shared ledger that is executed when certain conditions are met. The code is used to complete automated transactions based on actual business needs, such as querying the logistics status of the goods purchased by the buyer and transferring the buyer's electronic currency to the merchant's address after the buyer signs for the goods. Of course, smart contracts are not limited to executing contracts for transactions, but can also execute contracts for processing received information.
[0061] 3) Blockchain, including a series of blocks that are connected to each other in the order of their generation. Once a new block is added to the blockchain, it will not be removed. The block records the record data submitted by the nodes in the blockchain system.
[0062] 4) Consensus is a process in the blockchain network used to reach agreement on transactions in a block among multiple nodes involved. The agreed blocks will be appended to the end of the blockchain. The mechanisms for achieving consensus include Proof of Work (PoW), Proof of Stake (PoS), Delegated Proof-of-Stake (DPoS), Proof of Elapsed Time (PoET), etc.
[0063] See also Figure 1E , Figure 1E It is an optional schematic diagram of the block structure (Block Structure) provided in the embodiment of the present application. Each block includes the hash value of the transaction record stored in this block (the hash value of this block) and the hash value of the previous block. Each block is connected by the hash value to form a blockchain. In addition, the block can also include information such as the timestamp when the block was generated. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains relevant information for verifying the validity of its information (anti-counterfeiting) and generating the next block.
[0064] The device provided in the embodiments of the present application may be implemented in the form of hardware or a combination of hardware and software. Various exemplary implementations of the device provided in the embodiments of the present application are described below.
[0065] according to Figure 2 The exemplary structure of the user terminal 100 shown can foresee other exemplary structures of the user terminal 100, so the structure described here should not be regarded as limiting. For example, some components described below can be omitted, or components not described below can be added to meet the special needs of certain applications.
[0066] Figure 2 The user terminal 100 shown includes: at least one processor 110, a memory 140, at least one network interface 120 and a user interface 130. Each component in the user terminal 100 is coupled together via a bus system 150. It is understood that the bus system 150 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 150 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, the bus system 150 is not described in detail. Figure 2 Various buses are labeled as bus system 150 .
[0067] The user interface 130 may include a display, a keyboard, a mouse, a touch pad, a touch screen, and the like.
[0068] The memory 140 may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM). The volatile memory may be a random access memory (RAM). The memory 140 described in the embodiments of the present application is intended to include any suitable type of memory.
[0069] The memory 140 in the embodiment of the present application can store data to support the operation of the user terminal 100. Examples of such data include: any computer program for operating on the user terminal 100, such as an operating system and an application program. Among them, the operating system includes various system programs, such as a framework layer, a core library layer, a driver layer, etc., which are used to implement various basic services and process hardware-based tasks. The application program can include various application programs.
[0070] As an example of the method provided in the embodiment of the present application being implemented by software, the method provided in the embodiment of the present application can be directly embodied as a combination of software modules executed by the processor 110. The software module can be located in a storage medium, and the storage medium is located in the memory 140. The processor 110 reads the executable instructions included in the software module in the memory 140, and completes the method provided in the embodiment of the present application in combination with the necessary hardware (for example, including the processor 110 and other components connected to the bus 150).
[0071] As an example, the processor 110 can be an integrated circuit chip with signal processing capabilities, such as a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc., where the general-purpose processor can be a microprocessor or any conventional processor, etc.
[0072] The location message processing method provided in the embodiment of the present application will be explained in combination with the exemplary application and implementation of the terminal provided in the embodiment of the present application.
[0073] See also Figure 3 , Figure 3 A schematic diagram of an implementation flow of a location message processing method provided in an embodiment of the present application, which is applied to Figure 1B or Figure 1C The user terminal shown in Figure 3 The steps shown are explained.
[0074] Step S101: In response to a received first operation, a user terminal obtains a first location message corresponding to a first action point of the first operation.
[0075] Here, the user terminal may be a mobile terminal with wireless communication capability, such as a mobile phone (cell phone), a tablet computer, a laptop computer, etc., and may also be implemented as a desktop computer with computing function that is not convenient to move, such as a desktop computer, etc. Various application clients may be installed in the user terminal, such as a game application client, an instant messaging application client, a shopping application client, a browser application client, etc. The user may communicate with other users through the instant messaging client installed in the user terminal. In some embodiments, the user may also communicate with other users through the instant messaging function in other application clients. For example, the user may communicate with the seller or other buyer users through the instant messaging function in the shopping application client, that is, the user may send chat messages to other users, may also receive chat messages sent by other users, and display the chat messages sent and received by the user in the chat page.
[0076] At present, the chat message types supported by instant messaging applications or instant messaging functions include at least: text messages, voice messages, picture messages, video messages, location messages, and web page link messages. Different types of chat messages have different message identifiers.
[0077] The user terminal can determine the type of the received message by identifying the message identifier. When a location message is received, the location message can be collected using a preset positioning device (such as a global positioning system (GPS, Global Positioning System), Galileo, GLONASS, Beidou and other positioning systems, etc.), or can be collected through a mobile communication network. The location message can be used to indicate the current geographical location information of the user sending the location message, or it can be a geographical location information specified by the sending user.
[0078] In the embodiment of the present application, the location message may be output and displayed in the form of a location message card, wherein the location message card may be rectangular, square, or circular, etc. The location message card may display the display point of the location carried in the location message in the map.
[0079] The first location message may be a location message received by the user terminal, or may be a location message sent by the user terminal itself to other users. The first operation may be a combination of a series of operations, for example, the first operation may be a long press plus a slide operation, or a double-click plus a slide operation, etc. The first action point of the first operation is located in the first display area of the first location message, that is, the first action point is located in the display area of the first location message card corresponding to the first location message, and the first action point of the first operation may be the starting action point of the first operation, or may be the middle action point of the first operation.
[0080] Step S102: The user terminal obtains a second location message corresponding to a second action point of the first operation.
[0081] Here, in an embodiment of the present application, the second action point of the first operation can be the terminal action point of the first operation, or the intermediate action point of the first operation, and the second action point of the first operation is located in the second display area of the second location message.
[0082] In some embodiments, step S102 may be executed when the completion condition of the first operation is met, and the completion condition of the first operation may be that the first operation is completed. For example, when the first operation is a long press plus a slide, when it is detected that the acting body of the first operation (such as a finger, a stylus, etc.) is no longer acting on the user terminal, it is considered that the completion condition of the first operation is met, and at this time the user terminal obtains a second location message corresponding to the second action point of the first operation.
[0083] Step S103: the user terminal obtains route information between the first location and the second location.
[0084] Here, the first location is carried in a first location message, and the second location is carried in a second location message.
[0085] Step S103 can be implemented in different ways according to the network connection status of the user terminal. When the network connection status of the user terminal is connected, the route information between the first location and the second location is obtained from the server. The server here can be Figure 1A The server in Figure 1D a node of the blockchain network in the network; when the network status of the user terminal is disconnected, the route information between the first location and the second location is obtained by the user terminal itself based on the offline map data.
[0086] The route information starts from the first location and ends at the second location, or the route information starts from the second location and ends at the first location.
[0087] Step S104: the user terminal outputs the route information.
[0088] Here, when step S104 is implemented, route information may be displayed on a display device of the user terminal, including the driving path between the first location and the second location, distance information corresponding to the driving path, driving time, etc.
[0089] In some embodiments, since the route information obtained may be multiple, when outputting the route information in step S104, multiple route information may be output, and when outputting, the recommended route information and the alternative route information may be displayed in different display modes, for example, the recommended route information is displayed in an unshaded manner, and the alternative route information is displayed in a shaded manner.
[0090] In the location message processing method provided in the embodiment of the present application, when two location messages are received and the route relationship between the two locations carried in the two location messages is to be determined, a location message is selected through a first operation to obtain the first location carried in the location message, and when the completion condition of the first operation is met (that is, the first operation is completed), the second location carried in another location message corresponding to the action point of the first operation is obtained. In this way, the route information between the first location and the second location is obtained and output, so that the route information between the two locations can be quickly located through simple gesture interaction, thereby effectively improving communication efficiency.
[0091] In some embodiments, if the display content displayed on the display interface of the user terminal does not include the second location message, the action point of the first operation can be moved to a preset scrolling control area, wherein the preset scrolling control area can be an area whose distance from the upper edge line of the user terminal display screen is less than a certain threshold, or can be an area whose distance from the lower edge line of the user terminal display screen is less than a certain threshold. Furthermore, when it is detected that the action point of the first operation moves to the preset scrolling control area, the display content is controlled to scroll and display on its own display interface; when it is detected that the action point of the first operation moves out of the scrolling control area, the display content is controlled to stop scrolling and displaying, so that the scrolling display can be achieved while the first operation is maintained.
[0092] Based on the above embodiments, the present application further provides a method for processing a location message, which is applied to Figure 1C The network architecture shown, Figure 4 A schematic diagram of another implementation flow of the location message processing method provided in the embodiment of the present application is as follows: Figure 4 As shown, the method includes:
[0093] Step S201: A first user terminal sends a first location message to a third user terminal.
[0094] Here, the first location message carries at least the first location, which may be the geographical location where the first user terminal is currently located, or a geographical location specified by the first user. In some embodiments, the first location message may also carry time information. The first location may generally correspond to the time information, specifically, for example, the location message may include the geographical location information of the current location of the first user terminal and the time when the first location message is sent.
[0095] Step S202: The second user terminal sends a second location message to the third user terminal.
[0096] Here, similar to the first location message, the second location message carries at least the second location, which can be the current geographical location of the second user terminal or a geographical location specified by the second user. In some embodiments, the second location message can also carry time information.
[0097] Step S203: The third user terminal displays the received first location message and the second location message in the chat interface.
[0098] Here, after receiving the first location message and the second location message, the third user terminal can output and display the first location message and the second location message in a predetermined format. For example, the first location message and the second location message can be displayed in the form of location message cards, wherein the location message card corresponding to the first location message includes a map interface of a preset size centered on the first location, and the location message card corresponding to the second location message includes a map interface of a preset size centered on the second location.
[0099] Step S204: the third user terminal receives the first operation.
[0100] Here, the first operation varies according to the type of the third user terminal. For example, when the third user terminal is an ordinary personal computer or a laptop computer, and the input device is a mouse, the first operation may be a click or drag by the third user using the mouse. When the display device of the third user terminal is a touch screen (such as a smart phone, a tablet computer, a desktop computer), the first operation may be a touch operation (such as clicking, pressing, sliding, dragging, etc.) of a certain position on the screen by the user using an operating body, wherein the operating body includes a finger, a stylus, etc.
[0101] Step S205: The third user terminal obtains a first location message corresponding to a first action point of the first operation in response to the first operation.
[0102] Here, the first action point is located in the first display area of the first location message. The first action point may be the starting action point of the first operation. For example, when the first operation is double-clicking followed by dragging, the first action point may be the position corresponding to the double-click. In some embodiments, the first action point may also be the middle action point of the first operation. For example, if the first operation is sliding, long pressing during the sliding process, and then sliding again, the first action point may be the position corresponding to the long press gesture.
[0103] It should be noted that in an embodiment of the present application, when the duration of the operating body pressing the screen exceeds a preset duration threshold, it is considered that a long press gesture has been received. For example, the duration threshold may be 2 seconds. Then, when the operating body presses the screen for more than 2 seconds, it is considered that a long press gesture has been received.
[0104] Step S206: The third user terminal controls the first location message to be displayed in a floating layer manner, and the first location message moves along with the action point of the first operation.
[0105] Here, when the first action point of the first operation acts on the first display area, it is considered that the first location message is selected. At this time, a shadow can be added to the first location message so that the first location message is displayed in a floating layer. In some embodiments, the transparency of the background of the second location information can be changed so that the first location message is displayed in a floating layer. When the first location message is displayed in a floating layer, the first location message can be moved with the action point of the first operation, thereby realizing the dragging or sliding of the first location message.
[0106] Step S207: When the third user terminal detects that the action point of the first operation moves, the first display area is updated to a third display area, and the third display area moves following the action point of the first operation.
[0107] In an embodiment of the present application, in order to enable the user to determine whether to move the first location message to the target location, the first display area is updated to the third display area. During implementation, the display area of the first location message may be reduced, that is, the first display area is reduced to the third display area. In other words, the first location message is displayed in a third display area that is smaller than the first display area. In this way, when the first location message is moved, the first location message can be prevented from completely blocking the second location message, so that the user cannot intuitively see whether the second location message is the location message for which he wants to determine the route.
[0108] In some embodiments, the first display area is updated to the third display area, or the first display area is enlarged to the third display area. Since the first location message can be displayed in a floating layer manner by changing the background transparency of the first display area, even if the first display area is enlarged to the third display area, the user can see the second location message in the coverage area of the first location message (the third display area), thereby determining whether the second location message is the location message required to determine the route.
[0109] In other embodiments, when the third user terminal detects that the action point of the first operation moves, no display may be made, and the first display area may also not make any display.
[0110] Step S208: When the completion condition of the first operation is met and the second action point of the first operation is located in the second display area, the third user terminal obtains a second location message corresponding to the second action point of the first operation.
[0111] Here, the completion condition of the first operation is achieved when the first operation is completed. For example, when the first operation is a long press plus a slide, when it is detected that the action body of the first operation (for example, a finger, a stylus, etc.) is no longer acting on the user terminal, it is considered that the completion condition of the first operation is achieved, and the user terminal obtains the second location message corresponding to the second action point of the first operation. In the embodiment of the present application, the second action point of the first operation is the termination action point of the first operation, and the second action point of the first operation is located in the second display area of the second location message.
[0112] In some embodiments, when the completion condition of the first operation is met, if the second action point of the first operation is not located in the display area of the location message, the third user terminal displays the first location message in the first display area.
[0113] Step S209: The third user terminal obtains the target travel mode of the determined route information and its own network connection status.
[0114] Here, the target travel mode for determining the route information may be set by the user himself or by the system default, and the target travel mode may be driving, public transportation, cycling, walking, etc. The network connection state of the user terminal may be connected or disconnected. When the network connection state is connected, the third user terminal may be connected to a mobile communication network, a wireless communication network, a wired communication network, etc.
[0115] Step S210, when the network connection state is disconnected, the route information between the first location and the second location is obtained based on the target travel mode through the offline map data stored in the self.
[0116] Here, when the network connection status is not connected, the third user terminal cannot communicate with the server and other terminals. At this time, the third user terminal can obtain the route information between the first location and the second location based on the target travel mode through the offline map data stored in itself.
[0117] In an embodiment of the present application, the route information between the first location and the second location may be with the first location as the starting point and the second location as the end point. In some embodiments, the route information between the first location and the second location may also be with the second location as the starting point and the first location as the end point.
[0118] The route information includes at least a driving path between a first location and a second location, distance information of the driving path, and driving time.
[0119] Step S211: The third user terminal calls a map software development kit in the instant messaging application to jump from the current page to the map display page.
[0120] Here, in order to enable the user to understand the route information more intuitively, in an embodiment of the present application, before outputting the route information, the current page is jumped to the map page.
[0121] Step S212: The third user terminal outputs the driving path between the first location and the second location, the distance information of the driving path, and the driving time in the map page.
[0122] Here, the driving path between the first position and the second position may be one or more. When there are multiple driving paths, distance information, driving time, etc. corresponding to the multiple driving paths will be output on the map page.
[0123] In the location message processing method provided in the embodiment of the present application, when the third user terminal receives two location messages and wants to determine the route relationship between the two locations carried in the two location messages, it selects a location message through a first operation to obtain the first location carried in the location message, and when the completion condition of the first operation is met (that is, the first operation is completed), it obtains the second location carried in another location message corresponding to the point of action of the first operation. In this way, through simple gesture interaction, the route information between the two locations can be quickly located, thereby effectively improving the efficiency of location message processing, simplifying user operations, and improving user experience. And when the network is not connected, the route information between the first location and the second location is obtained and output through the offline map data stored by itself to ensure that the route information can be output even when there is no network connection, thereby improving the functional reliability of the terminal device.
[0124] In some embodiments, the user terminal can set the travel mode through the following steps S31 to S33, which are explained below in conjunction with each step.
[0125] Step S31, receiving a setting operation for a travel mode.
[0126] Here, a button control for setting the travel mode may be provided in the map page displayed when the map software tool development kit is opened. When a touch operation or a click operation is received in the display area of the button control, the task receives the operation for setting the travel mode.
[0127] Step S32: In response to the setting operation, output and display selectable travel modes.
[0128] Here, the available travel modes include but are not limited to driving, public transportation, walking and cycling.
[0129] Step S33: determining a target travel mode based on the received travel mode selection operation.
[0130] Here, when the user terminal receives an operation to select a travel mode, the selected target travel mode is determined based on the position of the selection operation. In this way, the travel mode setting process is completed through steps S31 to S33, so that the user can choose a travel mode according to his or her usual travel needs, thereby improving the output route information to be more in line with the user's travel habits.
[0131] In some embodiments, after step S206, the following steps may also be performed:
[0132] Step S261, obtaining user identification information corresponding to the first location message.
[0133] Here, the user identification information corresponding to the first location message may be identification information of the user who sends the first location message, and may include a user nickname, a user avatar, and the like.
[0134] Step S262: output the user identification information in a third display area of the first location message.
[0135] Here, when step S262 is implemented, the user identification information may be output in a preset area in the third display area, for example, the user identification information may be output in the upper left corner, upper right corner, lower right corner, etc. of the third display area, so that the user can understand the sender information of the first location message when moving the first location message.
[0136] In some embodiments, when the first operation is being performed, it is also necessary to determine whether the second location message is selected according to the movement track of the first operation, and this is achieved by the following steps:
[0137] Step S41: during the execution of the first operation, obtaining coordinate information of the action point of the first operation.
[0138] Here, the coordinate information of the action point may be the coordinate information of the action point on the display screen of the user terminal.
[0139] Step S42: When it is determined that the first operation acts on the second display area based on the coordinate information of the action point, the second location message is controlled to be displayed in the second display area in a second display mode.
[0140] Here, since the coordinate information of the second display area is consistent, when the coordinate information of the action point of the first operation is determined, it is possible to determine whether the first operation acts on the second display area through the two coordinate information. For example, when the second display area is a rectangle, it is possible to determine whether the first operation acts on the second display area based on the size relationship between the coordinates of the four vertices of the second display area and the coordinates of the action point. Further, assuming that the coordinates of the four vertices of the second display area are (x1, y1), (x2, y1), (x2, y2) and (x1, y2), and the coordinates of the action point are (x0, y0), only when x1≤x0≤x2 and y1≤y0≤y2 are satisfied, can it be considered that the first operation acts on the second display area.
[0141] When the first operation is applied to the second display area, it is considered that the second location message is selected at this time, and the second location message will be displayed in the second display area in the second display mode, wherein when the first operation is not applied to the second display area, the second location message will be displayed in the second display area in the first display mode, and the first display mode is different from the second display mode. For example, the second display mode may be to highlight the edge of the second display area, and the second display mode may also be to set the background of the second display area to yellow, green, etc., so as to prompt the user that the second location message is selected.
[0142] Based on the above embodiments, the present application further provides a method for processing a location message, which is applied to Figure 1B The network architecture shown, Figure 5 A schematic diagram of another implementation flow of the location message processing method provided in the embodiment of the present application is as follows: Figure 5 As shown, the method includes:
[0143] Step S501: A first user terminal sends a first location message to a third user terminal.
[0144] Here, the first location message carries at least the first location, which may be the current geographical location of the first user terminal, or a geographical location specified by the first user. In some embodiments, the first location message may also carry time information.
[0145] Step S502: The second user terminal sends a second location message to the third user terminal.
[0146] Here, similar to the first location message, the second location message carries at least the second location, which can be the current geographical location of the second user terminal or a geographical location specified by the second user. In some embodiments, the second location message can also carry time information.
[0147] Step S503: The third user terminal displays the received first location message and the second location message in the chat interface.
[0148] Here, after receiving the first location message and the second location message, the third user terminal may output and display the first location message and the second location message in a predetermined format, for example, the first location message and the second location message may be displayed in the form of location message cards.
[0149] Step S504: The third user terminal responds to the received first operation and obtains a first location message corresponding to the first action point of the first operation.
[0150] Here, the first operation varies according to the type of the third user terminal. For example, when the third user terminal is an ordinary personal computer or a laptop computer, and the input device is a mouse, the first operation may be a click or drag by the third user using the mouse. When the display device of the third user terminal is a touch screen (such as a smart phone, a tablet computer, a desktop computer), the first operation may be a touch operation (such as clicking, pressing, sliding, dragging, etc.) of a certain position on the screen by the user using an operating body, wherein the operating body includes a finger, a stylus, etc.
[0151] The first action point is located in the first display area of the first location message. The first action point may be the starting action point of the first operation. For example, when the first operation is double-clicking followed by dragging, the first action point may be the position corresponding to the double-click. In some embodiments, the first action point may also be the middle action point of the first operation. For example, if the first operation is sliding, long pressing during the sliding process, and then sliding again, the first action point may be the position corresponding to the long press gesture.
[0152] Step S505: The third user terminal adds a shadow to the first location message so that the first location message is displayed in a floating layer, and the first location message moves with the action point of the first operation.
[0153] Here, when the first action point of the first operation acts on the first display area, it is considered that the first position message is selected, and a shadow can be added to the first position message so that the first position message can be displayed in a floating layer. In this way, the first position message can move with the action point of the first operation, thereby realizing the dragging or sliding of the first position message.
[0154] Step S506: When the third user terminal detects that the action point of the first operation moves, the first location message is displayed in a third display area, and the third display area is smaller than the first display area.
[0155] Here, in order to allow the user to determine whether to move the first location message to the target location, the display area of the first location message can be reduced, that is, the first location message can be displayed in a third display area that is smaller than the first display area. In this way, when the first location message is moved, the first location message can be prevented from completely blocking the second location message, making it impossible for the user to intuitively see whether the second location message is the location message for which he wants to determine the route.
[0156] Step S507: The third user terminal obtains user identification information corresponding to the first location message.
[0157] Here, the user identification information corresponding to the first location message may be identification information of the user who sends the first location message, and may include a user nickname, a user avatar, and the like.
[0158] Step S508: The third user terminal outputs the user identification information in a third display area of the first location message.
[0159] Here, when step S508 is implemented, the user identification information may be output in a preset area in the third display area, for example, the user identification information may be output in the upper left corner, upper right corner, lower right corner, etc. of the third display area, so that the user can understand the sender information of the first location message when moving the first location message.
[0160] Step S509: During the execution of the first operation, the third user terminal obtains coordinate information of the action point of the first operation.
[0161] Step S510: When it is determined based on the coordinate information that the first operation acts on the second display area, the second location message is controlled to be displayed in the second display area in a second display mode.
[0162] Wherein, when the first operation is not used in the second display area, the second location message is displayed in the second display area in a first display mode, and the first display mode is different from the second display mode;
[0163] Step S511: When the completion condition of the first operation is met, the third user terminal obtains a second location message corresponding to the second action point of the first operation.
[0164] Here, the completion condition of the first operation is met, which may be that the first operation is completed. For example, when the first operation is a long press plus a slide, when it is detected that the action body of the first operation no longer acts on the user terminal, it is considered that the completion condition of the first operation is met, and the user terminal obtains the second location message corresponding to the second action point of the first operation. In the embodiment of the present application, the second action point of the first operation is the termination action point of the first operation, and the second action point of the first operation is located in the second display area of the second location message.
[0165] In some embodiments, when the completion condition of the first operation is met, if the second action point of the first operation is not located in the display area of the location message, the third user terminal displays the first location message in the first display area.
[0166] Step S512: The third user terminal obtains the target travel mode of the determined route information and its own network connection status.
[0167] Here, the target travel mode for determining the route information may be set by the user himself or by the system default, and the target travel mode may be driving, public transportation, cycling, walking, etc. The network connection state of the user terminal may be connected or disconnected. When the network connection state is connected, the third user terminal may be connected to a mobile communication network, a wireless communication network, a wired communication network, etc.
[0168] Step S513: When the network connection status of the third user terminal is connected, the third user terminal sends the first location, the second location and the target travel mode to the server.
[0169] Here, when the third user terminal uses an instant messaging application client to receive, send and process messages, the server can be an instant messaging server. The server determines route information based on the received first location, second location and the target travel mode, and sends the determined route information to the third user terminal.
[0170] Step S514: the third user terminal receives route information between the first location and the second location sent by the server.
[0171] Here, the route information takes the first position as a starting point and the second position as an end point. In some embodiments, the route information may also take the second position as a starting point and the first position as an end point.
[0172] The route information includes at least a driving path between a first location and a second location, distance information of the driving path, and driving time.
[0173] Step S515: the third user terminal determines whether the calling of the map software development kit in the instant messaging application is successful.
[0174] Here, when it is determined that the calling of the map software development kit in the instant messaging application is successful, the process proceeds to step S516; when it is determined that the calling of the map software development kit in the instant messaging application fails, the process proceeds to step S518.
[0175] Step S516: the third user terminal outputs a map display page.
[0176] Here, step S516 may be implemented by updating the current page of the instant messaging application to the output map display page.
[0177] Step S517: outputting the driving path between the first location and the second location, the distance information of the driving path, and the driving time on the map page of the third user terminal.
[0178] Here, the driving path between the first position and the second position may be one or more. When there are multiple driving paths, distance information, driving time, etc. corresponding to the multiple driving paths will be output on the map page.
[0179] In some embodiments, instead of executing step S516 and step S517, the following steps S516' and S517' may be executed:
[0180] Step S516', determining a target area for outputting route information in the current page;
[0181] Step S517 ′: outputting the driving path between the first position and the second position, the distance information of the driving path, and the driving time in the target area.
[0182] That is, the route information may be output and displayed in the current chat interface of the instant messaging application. When implemented, the route information may be output and displayed in the form of a floating layer in the current chat page.
[0183] In some embodiments, outputting route information may also include carrying the route information in a communication message, and outputting route information such as the driving path between the first location and the second location, the distance information of the driving path, and the driving time through the communication message. The communication message may be an instant messaging message or a short message.
[0184] Step S518: When calling the map software development kit fails, the third user terminal outputs a prompt message indicating that the route information display fails, so as to prompt the user to open the map application to output the route information.
[0185] Step S519: The third user terminal receives a second operation of opening a map application client.
[0186] Here, the second operation can be an operation performed by the user in the area where the display icon of the map application client is located. In some embodiments, a graphic control for opening the map application can also be provided in the graphic control displaying the prompt information. When the user clicks the graphic control of the map application, it can be considered that the second operation has been received, thereby directly opening the map application.
[0187] Step S520: The third user terminal sends the route information to the map application client to output the route information.
[0188] In the location message processing method provided in the embodiment of the present application, when the third user terminal receives two location messages and wants to determine the route relationship between the two locations carried in the two location messages, it selects a location message through a first operation to obtain the first location carried in the location message, and when the completion condition of the first operation is met (that is, the first operation is completed), the second location carried in another location message corresponding to the action point of the first operation is obtained. In this way, through simple gesture interaction, the route information between the two locations can be quickly located, thereby effectively improving the efficiency of location message processing, simplifying user operations, and improving user experience. In addition, when the network is connected, the first location and the second location are sent to the server to obtain and output the route information between the first location and the second location. When the output fails, the route information can also be sent to the map application client to output the route information in the map application client, which can not only improve the reliability of the output route function, but also ensure the accuracy of the output route information.
[0189] The following is an explanation of an exemplary application of the embodiments of the present application in a practical application scenario.
[0190] Figure 6 A schematic diagram of an implementation interface of a location message processing method provided in an embodiment of the present application, such as Figure 6As shown, in 601, the user terminal receives two location messages, which carry the locations of Shenzhen Tsinghua University Research Institute and Haofang Garden, corresponding to A location message card 6011 and B location message card 6012. When the user wants to determine the route from Haofang Garden to Shenzhen Tsinghua University Research Institute, as shown in 602, long press the upper right corner of B location message card 6012 on the chat interface, and drag it to the display area of A location message card 6011 as shown in 603, and when B location message card 6012 is dragged onto A location message card 6011, the edge of A location message card 6011 becomes highlighted; when the edge of A location message card 6011 becomes highlighted, if the finger is released, then as shown in 604, the system automatically opens the map page and displays the positional relationship between points AB on the map page, and as shown in 604, different paths between points A and B can be displayed on the map page, as well as the mileage and corresponding time of each path.
[0191] In the location message processing method provided in the embodiment of the present application, it is necessary to perform real-time detection of the long press gesture and its position changes. As the gesture contact coordinates (x, y) change, the location message card follows and presents the corresponding user interface (UI, User Interface) changes. Figure 7 A schematic diagram of the change of the location card with the gesture touch point provided in an embodiment of the present application, wherein:
[0192] When it is detected that the A position message card 7011 is long pressed, it is displayed Figure 7 In the interface shown in 701, the card display mode of the A location message card 7011 will change, for example, a projection can be added, so that the location message card appears to be suspended;
[0193] When the A location message card 7011 is long pressed and dragged, the gesture contact point changes on the x-axis and y-axis. At this time, the UI displays an interface as shown in 702. At this time, the location message card 7021 becomes smaller and can move with the gesture;
[0194] When the A position message card 7011 is long pressed and dragged, when the gesture contact coordinates (x, y) are detected to be located in the display area of another position message card (B position message card 7012), an interface as shown in 703 is presented on the UI. It can be seen from 703 that the edge of the other position message card is highlighted, indicating that the capture is successful;
[0195] When the user releases their hand, and long - press cancellation is detected at this time, the client transmits the location information of both positions A and B to the server background. The server background calculates the distance between the two points and conducts route planning. On the page display of the client, after the user releases their hand, the map page will be automatically opened. At this time, the interface shown in 704 will be presented on the UI, and the address information and route of the two positions will be displayed on the map page.
[0196] Figure 8 It is a schematic diagram of the implementation principle of the location message processing method provided by the embodiment of this application. Assume that the four vertex coordinates of the display area of the location message card at position A are respectively (x1, y1), (x2, y1), (x2, y2) and (x1, y2), as Figure 8 shown. When it is detected that the gesture touch point coordinate (x, y) of dragging the location message card at position B is within the area of the location message card at position A, and x1 < x < x2 and y1 < y < y2 are satisfied. If long - press cancellation is performed at this time, then step S801 is executed, and the front - end simultaneously reports the location information of both positions A and B to the server.
[0197] The server determines the distance and route between the two based on the received location information of positions A and B, and executes step S802 to automatically open the map page. And the server sends the location information of positions A and B to the front - end. At this time, the distance relationship and route between the two positions are displayed on the map page of the front - end.
[0198] It should be noted that in the embodiment of this application, the long - press area of the location message card is exemplarily described as being in the upper - right corner. In the actual implementation process, the long - press area can be the entire area of the location message card; in addition, in some embodiments, during the process of long - pressing and dragging the location message card, user information such as nickname and avatar can also be displayed on the location message card; and during the process of long - pressing and dragging the location message card, if the two location messages are not on the same screen and the gesture touch point coordinate is within the preset indication scrolling area, the background screen message can automatically scroll up or down.
[0199] In the location message processing method provided by the embodiment of this application, the user only needs to drag one location message to another location message in the chat page, and the map page can be automatically opened to display the distance relationship between the two positions. Through simple gesture interaction, the distance relationship between two positions can be quickly located in the chat scenario, which is not only simple to operate but also can effectively improve communication efficiency.
[0200] Next, continue to describe the exemplary structure of the implementation of the location message processing device 80 provided by the embodiment of this application as software modules. In some embodiments, as Figure 2 shown, the software modules stored in the location message processing device 80 in the memory 140 may include:
[0201] A first acquisition module 81 is configured to acquire, in response to a received first operation, a first location message corresponding to a first action point of the first operation, wherein the first action point is located in a first display area of the first location message;
[0202] A second acquisition module 82, configured to acquire a second location message corresponding to a second action point of the first operation, wherein the second action point of the first operation is located in a second display area of the second location message;
[0203] A third acquisition module 83, configured to acquire route information between a first location and a second location, wherein the first location is carried in a first location message, and the second location is carried in a second location message;
[0204] The first output module 84 is used to output the route information.
[0205] In some embodiments, the second acquisition module 82 is further used for:
[0206] Obtain the target travel mode and its own network connection status to determine the route information;
[0207] When the network connection status is connected, the first location, the second location and the target travel mode are sent to the server;
[0208] Receive route information between the first location and the second location sent by the server.
[0209] In some embodiments, the second acquisition module 82 is further used for:
[0210] Obtain the target travel mode and its own network connection status to determine the route information;
[0211] When the network connection state is disconnected, the route information between the first location and the second location is obtained based on the target travel mode through the offline map data stored in the system.
[0212] In some embodiments, the route information starts from the first location and ends at the second location, or the route information starts from the second location and ends at the first location.
[0213] In some embodiments, the apparatus further comprises:
[0214] a floating display module, configured to control the first location message to be displayed in a floating layer manner when it is detected that the first operation acts on the first display area of the first location message, and the first location message moves along with the action point of the first operation;
[0215] The display updating module is used to update the first display area to a third display area when the movement of the action point of the first operation is detected, and the third display area moves with the action point of the first operation.
[0216] The update display module is also used for:
[0217] When the movement of the action point of the first operation is detected, the first display area is reduced to a third display area; or,
[0218] When movement of the action point of the first operation is detected, the first display area is enlarged to a third display area.
[0219] In some embodiments, the apparatus further comprises:
[0220] A fourth acquisition module, used to acquire user identification information corresponding to the first location message;
[0221] The second output module is configured to output the user identification information in a third display area of the first location message.
[0222] In some embodiments, the apparatus further comprises:
[0223] A fifth acquisition module, used to acquire a movement track of the first operation;
[0224] A first determining module, configured to control the second location message to be displayed in the second display area in a second display mode when it is determined based on the movement trajectory that the first operation is applied to the second display area;
[0225] Wherein, when the first operation is not used in the second display area, the second location message is displayed in the second display area in a first display mode, and the first display mode is different from the second display mode;
[0226] In some embodiments, the apparatus further comprises:
[0227] A first control module, configured to control the display content to scroll and display on its own display interface when detecting that the action point of the first operation moves to a preset scrolling control area;
[0228] The second control module is used to control the display content to stop scrolling when it is detected that the action point of the first operation moves out of the scroll control area.
[0229] In some embodiments, the apparatus further comprises:
[0230] A first receiving module is used to receive a setting operation for a travel mode;
[0231] A third output module, configured to output and display selectable travel modes in response to the setting operation;
[0232] The second determination module is used to determine the target travel mode based on the received selection operation of the travel mode.
[0233] In some embodiments, the route information includes at least a driving path between the first location and the second location, distance information of the driving path, and driving time. Correspondingly, the first output module is further used to:
[0234] Call the map software development kit in the instant messaging application to output a map display page;
[0235] The driving path between the first location and the second location, the distance information of the driving path, and the driving time are output on the map page.
[0236] In some embodiments, the apparatus further comprises:
[0237] A fourth output module, configured to output a prompt message indicating that the route information display fails when calling the map software development kit fails, so as to prompt the user to open a map application to output the route information;
[0238] The first sending module is used to send the route information to the map application client when a second operation of opening the map application client is detected, so as to output the route information.
[0239] In some embodiments, the route information includes at least a driving path between the first location and the second location, distance information of the driving path, and driving time. Correspondingly, the first output module is further used to:
[0240] Determine the target area for outputting route information in the current page;
[0241] outputting a driving path between a first position and a second position, distance information of the driving path, and driving time in the target area; or,
[0242] The route information is carried in a communication message, and the route information is output through the communication message.
[0243] The present application embodiment provides a storage medium storing executable instructions, wherein the executable instructions are stored. When the executable instructions are executed by a processor, the processor will execute the method provided by the present application embodiment, for example, Figure 3 , Figure 4 and Figure 5 The method shown.
[0244] In some embodiments, the storage medium may be a memory such as FRAM, ROM, PROM, EPROM, EE PROM, flash memory, magnetic surface memory, optical disk, or CD-ROM; or may be various devices including one or any combination of the above memories.
[0245] In some embodiments, executable instructions may be in the form of a program, software, software module, script or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine or other unit suitable for use in a computing environment.
[0246] As an example, executable instructions may, but need not, correspond to a file in a file system, may be stored as part of a file storing other programs or data, for example, in one or more scripts in a HyperText Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple coordinated files (for example, files storing one or more modules, subroutines, or code portions).
[0247] By way of example, executable instructions may be deployed to be executed on one computing device, or on multiple computing devices located at one site, or on multiple computing devices distributed across multiple sites and interconnected by a communication network.
[0248] The above is only an embodiment of the present application and is not intended to limit the protection scope of the present application. Any modifications, equivalent substitutions and improvements made within the spirit and scope of the present application are included in the protection scope of the present application.
Claims
1. A location message processing method, characterized in that: include: In response to a first operation received on the instant messaging interface, obtaining a first location message corresponding to a first action point of the first operation, wherein the first action point is located in a first display area of the first location message; When the first operation is completed, obtaining a second location message corresponding to a second action point of the first operation, wherein the second action point of the first operation is located in a second display area of the second location message; Acquire route information between a first location and a second location, wherein the first location is carried in a first location message and the second location is carried in a second location message; The route information is output.
2. The method according to claim 1, characterized in that The obtaining of route information between the first location and the second location includes: Obtain the target travel mode and its own network connection status to determine the route information; When the network connection status is connected, the first location, the second location and the target travel mode are sent to the server; Receive route information between the first location and the second location sent by the server.
3. The method according to claim 1, characterized in that The obtaining of route information between the first location and the second location includes: Obtain the target travel mode and its own network connection status to determine the route information; When the network connection state is disconnected, the route information between the first location and the second location is obtained based on the target travel mode through the offline map data stored in the system.
4. The method according to any one of claims 1 to 3, characterized in that The route information starts from the first location and ends at the second location, or the route information starts from the second location and ends at the first location.
5. The method according to claim 1, characterized in that The method further comprises: When it is detected that the first operation acts on the first display area of the first location message, the first location message is controlled to be displayed in a floating layer manner, and the first location message moves along with the action point of the first operation; When the movement of the action point of the first operation is detected, the first display area is updated to a third display area, and the third display area moves along with the action point of the first operation.
6. The method according to claim 5, characterized in that When the action point of the first operation is detected to move, updating the first display area to a third display area includes: When the movement of the action point of the first operation is detected, the first display area is reduced to a third display area; or, When movement of the action point of the first operation is detected, the first display area is enlarged to a third display area.
7. The method according to claim 5, characterized in that The method further comprises: Obtaining user identification information corresponding to the first location message; The user identification information is output in a third display area of the first location message.
8. The method according to claim 1, characterized in that The method further comprises: During the execution of the first operation, obtaining coordinate information of an action point of the first operation; When it is determined based on the coordinate information that the first operation acts on the second display area, controlling the second location message to be displayed in the second display area in a second display mode; When the first operation is not used in the second display area, the second location message is displayed in the second display area in a first display manner, and the first display manner is different from the second display manner.
9. The method according to any one of claims 1 to 3, characterized in that The method further comprises: Receive the setting operation of the travel mode; In response to the setting operation, outputting selectable travel modes; Based on the received selection operation of the travel mode, a target travel mode is determined.
10. The method according to claim 1, characterized in that The route information at least includes a driving path between a first location and a second location, distance information of the driving path, and driving time. Correspondingly, the output route information includes: Call the map software development kit in the instant messaging application to output a map display page; The driving path between the first location and the second location, the distance information of the driving path, and the driving time are output on the map page.
11. The method according to claim 10, characterized in that The method further comprises: When calling the map software development kit fails, outputting a prompt message indicating that the route information display fails, so as to prompt the user to open the map application to display the route information; When a second operation of opening the map application client is detected, the route information is sent to the map application client to output the route information.
12. The method according to claim 1, characterized in that The route information at least includes a driving path between a first location and a second location, distance information of the driving path, and driving time. The output route information includes: Determine the target area for outputting route information in the current page; outputting a driving path between a first position and a second position, distance information of the driving path, and driving time in the target area; or, The route information is carried in a communication message, and the route information is output through the communication message.
13. A position information processing device, characterized in that: include: A first acquisition module, configured to acquire, in response to a first operation received on the instant messaging interface, a first location message corresponding to a first action point of the first operation, wherein the first action point is located in a first display area of the first location message; A second acquisition module is used to acquire, when the first operation is completed, a second location message corresponding to a second action point of the first operation, wherein the second action point of the first operation is located in a second display area of the second location message; A third acquisition module, configured to acquire route information between a first location and a second location, wherein the first location is carried in a first location message, and the second location is carried in a second location message; The first output module is used to output the route information.
14. A location information processing device, characterized in that: include: A memory for storing executable instructions; A processor, configured to implement the method according to any one of claims 1 to 12 when executing the executable instructions stored in the memory.
15. A storage medium, characterized in that: Executable instructions are stored, which are used to cause a processor to execute and implement the method described in any one of claims 1 to 12.
