Interaction method and apparatus based on location sharing, and computer device
By providing a travel booking interface and location saving function in social applications, the problem of users spending time viewing shared locations is solved, enabling quick saving and searching of target locations, and saving system resources.
Patent Information
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- TENCENT TECHNOLOGY (SHENZHEN) CO LTD
- Filing Date
- 2025-09-24
- Publication Date
- 2026-05-21
AI Technical Summary
In traditional social applications, users need to spend a lot of time browsing through records when viewing and going to shared locations, resulting in a waste of resources.
After displaying the location sharing information of the target location on the social application interface, a first-party ride booking interface is provided, which displays navigation trip information and allows users to save the target location to their location favorites. A saved status mark is displayed when an action is triggered.
It enables quick saving and searching when users view and navigate to target locations, saving resources and reducing system resource consumption.
Smart Images

Figure CN2025123687_21052026_PF_FP_ABST
Abstract
Description
Location-sharing-based interaction methods, devices, and computer equipment
[0001] Related applications
[0002] This application claims priority to Chinese patent application filed on November 18, 2024, with application number 202411648203.1, entitled "Interactive Method, Apparatus and Computer Device Based on Location Sharing", the entire contents of which are incorporated herein by reference. Technical Field
[0003] This application relates to the field of computer technology, and in particular to a location-sharing-based interactive method, apparatus, computer device, computer-readable storage medium, and computer program product. Background Technology
[0004] With the development of computer technology, social applications have begun to offer location sharing functions. Location sharing is a service that transmits geographical location information through technical means, allowing individuals or devices to share their location with others.
[0005] In traditional technologies, when a social application displays location sharing information for a shared location, the user can view this location sharing information and then be redirected to a travel service to travel to that location.
[0006] However, in traditional methods, users often have the need to view and visit the shared locations again. This usually requires spending a lot of time browsing social records in the social application to find the location sharing information of the shared location, which leads to continuous occupation of system resources and waste of resources. Summary of the Invention
[0007] Therefore, it is necessary to provide a location-sharing-based interactive method, apparatus, computer device, computer-readable storage medium, and computer program product that can save resources in response to the above-mentioned technical problems.
[0008] In a first aspect, this application provides an interaction method based on location sharing, comprising:
[0009] On the social application interface logged in by the user, location sharing information of the target location is displayed to the user;
[0010] In response to a triggered operation on the location sharing information, the first travel booking interface is displayed;
[0011] The first travel booking interface displays the first travel itinerary information planned by the user for navigating to the target location;
[0012] The first travel booking interface displays a location favorites option for the target location;
[0013] In response to a triggered operation on the location favorites option, a favorites status marker is displayed at the location favorites option indicating that the target location has been favorited in the user's location favorites.
[0014] Secondly, this application also provides a location-sharing-based interactive device, comprising:
[0015] The location display module is used to display location sharing information of the target location shared with the user in the interface of a social application where the user is logged in.
[0016] The ride reservation module is used to respond to a trigger operation on the location sharing information and display the first ride reservation interface;
[0017] The trip display module is used to display the first trip information planned by the user for navigating to the target location in the first travel booking interface;
[0018] The favorites instruction module is used to display the location favorites option for the target location in the first travel booking interface;
[0019] The location favorites module is used to respond to a trigger operation on the location favorites option, and to display a favorites status marker indicating that the target location has been favorited in the user's location favorites.
[0020] Thirdly, this application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the following steps:
[0021] On the social application interface logged in by the user, location sharing information of the target location is displayed to the user;
[0022] In response to a triggered operation on the location sharing information, the first travel booking interface is displayed;
[0023] The first travel booking interface displays the first travel itinerary information planned by the user for navigating to the target location;
[0024] The first travel booking interface displays a location favorites option for the target location;
[0025] In response to a triggered operation on the location favorites option, a favorites status marker is displayed at the location favorites option indicating that the target location has been favorited in the user's location favorites.
[0026] Fourthly, this application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, performs the following steps:
[0027] On the social application interface logged in by the user, location sharing information of the target location is displayed to the user;
[0028] In response to a triggered operation on the location sharing information, the first travel booking interface is displayed;
[0029] The first travel booking interface displays the first travel itinerary information planned by the user for navigating to the target location;
[0030] The first travel booking interface displays a location favorites option for the target location;
[0031] In response to a triggered operation on the location favorites option, a favorites status marker is displayed at the location favorites option indicating that the target location has been favorited in the user's location favorites.
[0032] Fifthly, this application also provides a computer program product, including a computer program that, when executed by a processor, performs the following steps:
[0033] On the social application interface logged in by the user, location sharing information of the target location is displayed to the user;
[0034] In response to a triggered operation on the location sharing information, the first travel booking interface is displayed;
[0035] The first travel booking interface displays the first travel itinerary information planned by the user for navigating to the target location;
[0036] The first travel booking interface displays a location favorites option for the target location;
[0037] In response to a triggered operation on the location favorites option, a favorites status marker is displayed at the location favorites option indicating that the target location has been favorited in the user's location favorites.
[0038] Details of one or more embodiments of this application are set forth in the following drawings and description. Other features, objects, and advantages of this application will become apparent from the specification, drawings, and claims. Attached Figure Description
[0039] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only embodiments of this application. For those skilled in the art, other drawings can be obtained based on the published drawings without creative effort.
[0040] Figure 1 is an application environment diagram of a location-sharing-based interaction method in one embodiment;
[0041] Figure 2 is a flowchart illustrating an interaction method based on location sharing in one embodiment;
[0042] Figure 3 is a schematic diagram of the first travel reservation interface in one embodiment;
[0043] Figure 4 is a schematic diagram of the collected status markers in one embodiment;
[0044] Figure 5 is a schematic diagram of the collected status marker in another embodiment;
[0045] Figure 6 is a schematic diagram of the saved status marker in another embodiment;
[0046] Figure 7 is a schematic diagram of a response to a triggering action for the location favorites option in one embodiment;
[0047] Figure 8 is a schematic diagram of location sharing information displayed in a session interface in one embodiment;
[0048] Figure 9 is a schematic diagram of location sharing information displayed in an information flow page in one embodiment;
[0049] Figure 10 is a schematic diagram of the first travel reservation interface in another embodiment;
[0050] Figure 11 is a schematic diagram of changing the starting point of the journey in one embodiment;
[0051] Figure 12 is a schematic diagram of the first travel reservation interface in another embodiment;
[0052] Figure 13 is a schematic diagram of a response to a trigger operation for the starting point favorite option in one embodiment;
[0053] Figure 14 is a logic flowchart showing the "favorited" status marker in one embodiment;
[0054] Figure 15 is a schematic diagram of the travel itinerary setting interface in one embodiment;
[0055] Figure 16 is a logic flowchart for displaying a user's location favorites in one embodiment;
[0056] Figure 17 is a schematic diagram of a location favorites folder in one embodiment;
[0057] Figure 18 is a flowchart illustrating an interaction method based on location sharing in another embodiment;
[0058] Figure 19 is a logic flowchart for verifying a user's login status in one embodiment;
[0059] Figure 20 is a schematic diagram of the process of a user adding and using a favorite location in one embodiment;
[0060] Figure 21 is a structural block diagram of a location-sharing-based interactive device in one embodiment;
[0061] Figure 22 is an internal structure diagram of a computer device in one embodiment. Detailed Implementation
[0062] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0063] The location-sharing-based interaction method provided in this application embodiment can be applied to the application environment shown in Figure 1. Terminal 102, logged into a social application interface as a user, displays location-sharing information about a target location to be shared with the user. In response to a trigger operation on the location-sharing information, a first travel booking interface is displayed. This interface displays the first travel itinerary information planned by the user for navigation to the target location. It also displays a location favorites option for the target location. In response to a trigger operation on the location favorites option, a "favorited" status mark is displayed indicating that the target location has been added to the user's location favorites. Furthermore, as shown in Figure 1, the first travel booking interface also displays a booking area where the user can select the travel type and vehicle type, and can also trigger a booking operation through the booking entry.
[0064] The terminal 102 can be, but is not limited to, various personal computers, laptops, smartphones, tablets, IoT devices, and portable wearable devices. IoT devices can include smart speakers, smart TVs, smart air conditioners, smart in-vehicle systems, and projection devices. Portable wearable devices can include smartwatches, smart bracelets, and head-mounted displays. Head-mounted displays can be virtual reality (VR) devices, augmented reality (AR) devices, and smart glasses.
[0065] In an exemplary embodiment, as shown in FIG2, a location-sharing-based interaction method is provided. Taking the application of this method to the terminal in FIG1 as an example, it can be understood that this method can also be applied to a server, or to a system including a terminal and a server, and is implemented through the interaction between the terminal and the server. The server can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing cloud computing services. In this embodiment, the method includes steps 202 to 210. Wherein:
[0066] Step 202: On the social application interface logged in by the user, display the location sharing information of the target location to be shared with the user.
[0067] The social application interface refers to the interface provided by a social application. A social application is an application designed to help users establish and maintain social connections and engage in interactive communication. In essence, social applications, through internet platforms, enable users to share information, express opinions, build social networks, and participate in community activities. For example, specific social applications can include social media applications and instant messaging applications.
[0068] The target location refers to a location shared by users. It can be many types of areas or places, including but not limited to: commercial areas (such as shopping malls, commercial streets, etc.), educational facilities (such as schools, libraries, research institutes, etc.), medical institutions (such as hospitals, clinics, etc.), cultural facilities (such as museums, art galleries, theaters, etc.), entertainment venues (such as cinemas, amusement parks, etc.), sports facilities (such as stadiums, gyms, etc.), and transportation facilities (such as airports, train stations, etc.).
[0069] Location-sharing information refers to information used to determine the specific location of a target location, as well as to describe and identify that location. For example, location-sharing information can specifically refer to the geographic coordinates, address information, and other relevant geographic or physical characteristics of the target location. Geographic coordinates include longitude and latitude, used to determine the precise location of the target location. Address information refers to a series of information used to characterize the location of the target location within an administrative division, and may include house number, street name, the city where the target location is located, and additional information. Additional information refers to information that helps to further refine the location, such as building names, company names, shopping mall names, and attraction names. For example, location-sharing information can specifically be a location card, containing elements such as images and titles. It gathers relevant information into a flexibly sized container, visually resembling a card with visible boundaries and subtle shadows to indicate that the card is clickable.
[0070] For example, in the interface of a social application logged in by a user, the terminal will display location-sharing information about the target location shared with the user. In specific applications, this location-sharing information can be shared with the user by other users with whom they have social relationships, or it can be shared with the user by a recommender who recommends content to them. Here, the recommender refers to the entity providing the recommendation service; it could be an individual, organization, system, or platform, whose purpose is to recommend content that the user may be interested in based on the user's needs, preferences, or behaviors.
[0071] Step 204: In response to the triggered operation for location sharing information, the first travel booking interface is displayed.
[0072] The first ride-hailing reservation interface refers to the interface displayed in response to a location-sharing information trigger. This interface is used to reserve ride-hailing services, including taxis, ride-hailing services, and car-sharing services.
[0073] For example, when location sharing information of a target location is displayed, a user can initiate a trigger operation on the location sharing information to view and travel to the target location. In response to the trigger operation on the location sharing information, the terminal will display the first travel reservation interface to instruct the user to travel to the target location by reserving a travel service.
[0074] Step 206: On the first travel booking interface, the first travel itinerary information planned by the user for navigation to the target location is displayed.
[0075] The "First Travel Itinerary Information" refers to the travel itinerary information displayed on the First Travel ride booking interface. This information comprises detailed data and arrangements related to the user's trip, helping them plan, execute, and record their journey. Specifically, itinerary information may include: origin and destination points, departure time, and estimated arrival time.
[0076] The trip origin point refers to the starting point of the trip. For example, the trip origin point can be the user's location. Alternatively, it can be any location selected by the user. The trip destination refers to the final destination. In this embodiment, the trip destination is the target location. The departure time refers to the specific time of departure from the trip origin point. The estimated arrival time refers to the estimated time of arrival at the trip destination based on the departure time and mode of transportation.
[0077] For example, in the first travel booking interface, the terminal displays the user-planned first travel itinerary information for navigating to the target location, with the target location as the travel destination. This first travel itinerary information is used by the user to book a ride. In specific applications, the first travel itinerary information also includes the trip start point. The trip start point can be automatically obtained by the terminal with the user's authorization, or it can be set by the user on the terminal. This embodiment does not specifically limit this.
[0078] Step 208: On the first travel booking interface, the location favorites option for the target location is displayed.
[0079] The "Location Favorites" option allows users to choose whether to save a target location to their location favorites. Users can trigger the action of selecting the "Location Favorites" option to save the target location to their location favorites.
[0080] For example, in the First Travel ride booking interface, the terminal displays a "Save Location" option for the target location, allowing the user to choose whether to save the target location. In a specific application, if the First Travel ride booking interface simultaneously displays First Travel trip information with the target location as the destination and the "Save Location" option for that target location, the "Save Location" option can be displayed at or around the trip destination to more intuitively guide the user to save the target location. For instance, the "Save Location" option could be displayed above or below the trip destination.
[0081] In a specific application, taking the location favorites option displayed below the trip destination as an example, the First Trip ride booking interface can be as shown in Figure 3. In the First Trip ride booking interface, with the target location as the trip destination, the First Trip information planned by the user for navigation to the target location is displayed. Below the trip destination, there is a location favorites option for the target location.
[0082] Furthermore, as shown in Figure 3, in addition to the First Travel itinerary information and location favorites options, the First Travel ride reservation interface also displays a ride reservation area. In the ride reservation area, users can select the type of ride (as shown in Figure 3, taxi, ridesharing, chauffeur service, delivery, etc.) and the type of vehicle (as shown in Figure 3, carpooling, economy, premium, taxi, private car, six-seater, etc.). Users can also trigger the ride reservation operation through the ride reservation entry. The ride reservation area also displays the estimated cost of the ride for users' reference.
[0083] Step 210: In response to the triggered operation for the location favorites option, display a favorites status marker indicating that the target location has been favorited in the user's location favorites list at the location favorites option.
[0084] The "Location Favorites" section refers to a user-created list of locations used to save and organize places of interest to the user. It helps users quickly access places they like or need and can be customized and categorized according to personal preferences. The "Favorited" status indicator is used to show that a location has been added to the user's favorites list. This indicator usually appears as a visual element, such as an icon or text label, to clearly inform the user that the location has been added.
[0085] For example, in response to a user's triggering action on the location favorites option, indicating that the user has selected to favorite the target location to the location favorites folder, the terminal will display a favorites status mark at the location favorites option, indicating that the target location has been favorited to the user's location favorites folder, so as to intuitively inform the user that the target location has been favorited to the location favorites folder.
[0086] In practical applications, the location favorites option can be an icon, and the favorited status indicator can be a visual identifier; that is, the favorited status indicator is usually accompanied by a visual change. For example, as shown in Figure 4, if the location favorites option is a hollow icon, the favorited status indicator can change from a hollow icon to a solid icon, indicating that the target location has been added to the location favorites. As another example, if the location favorites option is a gray icon, the favorited status indicator can change from a gray icon to a colored icon, indicating that the target location has been added to the location favorites.
[0087] In practical applications, the "Save a Location" option can be a text label, and the "Save" status indicator can be an interactive feedback mechanism that reflects this text label. In other words, in response to a user's action on the "Save a Location" option, the status change on the option will immediately reflect this change. For example, as shown in Figure 5, if the text on the "Save a Location" option is "Save," then the "Save" status indicator can change from "Save" to "Save." Further, this may also be accompanied by an icon change, as shown in Figure 6, where the icon can change from hollow to solid, providing immediate interactive feedback.
[0088] In a specific application, taking the location favorites option displayed at the trip destination as an example, with the location favorites option as an icon and the favorited status marked as a solid icon, as shown in Figure 7, in the first trip booking interface, the terminal will display the user's planned first trip information for navigation to the target location, with the target location as the trip destination. At the trip destination, the location favorites option for the target location will be displayed (as shown in Figure 7, a hollow icon). In response to the user's trigger operation on the location favorites option, the terminal will display a favorited status mark indicating that the target location has been added to the user's location favorites (as shown in Figure 7, a solid icon).
[0089] The aforementioned location-sharing-based interaction method, within the social application interface logged in by the user, displays location-sharing information about the target location. This allows the target location to be shared with the user, and in response to a trigger action related to the location-sharing information, a first-trip booking interface is displayed. This interface shows the user's planned itinerary for navigating to the target location, enabling the user to book a ride based on the location-sharing information. The first-trip booking interface also displays a location favorites option, guiding the user to save the target location. In response to a trigger action related to this option, a "saved" status mark is displayed at the location favorites section, indicating that the target location has been saved to the user's location favorites list. This entire process provides the ability to quickly save locations while the user is booking a ride based on location-sharing information. This way, when the user needs to view or travel to the target location later, they don't need to spend a lot of time browsing social media records; they can directly find the target location in their location favorites list, saving resources.
[0090] In one exemplary embodiment, on the interface of a social application logged in as a user, location-sharing information about a target location is displayed to the user, including:
[0091] In the social application interface where the user is logged in, the conversation interface of the conversation the user is participating in is displayed. In the conversation interface, the location sharing information of the target location shared by the conversation members with the user is displayed.
[0092] Location-based interaction methods also include:
[0093] In response to an information viewing event indicating a location-sharing information of a target location in the location favorites, a session interface is displayed, showing the location-sharing information of the target location shared by the session members with the user.
[0094] In this context, a user's participation in a session refers to a communication session between the user and at least one other user. Specifically, if there is only one other user, the session is a one-to-one conversation between the user and another user. If there are multiple other users, the session is a group conversation between the user and multiple users. Session members within the session refer to other users who are interacting with the user in the session.
[0095] For example, in a social application interface logged in by a user, the terminal displays the conversation interface of the conversation the user is participating in. This conversation interface displays location-sharing information about a target location shared by conversation members with the user. If the user saves the target location to their location favorites, and needs to view the location-sharing information again, they can trigger an information viewing event to browse the location-sharing information of the saved target location in their location favorites. In response to this event, the terminal displays the conversation interface, which shows the location-sharing information about the target location shared by conversation members with the user.
[0096] In specific applications, on the social application interface logged in by a user, the terminal will display the conversation items of at least one session that the user is participating in. When a member of a conversation in which the user is participating sends location sharing information of a shared target location to the user, the terminal will display a message prompt at the conversation item of the user's participating session. In response to the triggering operation of the conversation item of the user's participating session, the terminal will display the conversation interface of the user's participating session, in which the location sharing information of the target location shared by the member of the conversation to the user is displayed.
[0097] Conversation items are elements in social application interfaces used to identify and display the various conversations a user participates in. They serve as entry points for communication between the user and one or more other conversation members. Each conversation item typically contains key information related to that conversation, such as the avatars of the conversation members, the conversation name (which could be the other party's username or group name), and a recent message notification. When a member in the conversation sends a location-sharing message to the user, the conversation item will alert the user with specific visual effects (such as a notification dot or a number). After the user clicks on a conversation item, the social application loads and displays the detailed interface of that conversation, i.e., the conversation interface, where the user can view location-sharing information and other communication with conversation members.
[0098] In specific applications, on the social application interface logged in by the user, the terminal will display the conversation items of at least one session that the user is participating in. In response to the triggering operation of the conversation item of any user's participating session, the terminal will display the conversation interface of the user's participating session. When a member of the conversation in the user's participating session sends location sharing information of the shared target location to the user, the terminal will display the location sharing information of the shared target location to the user by the member of the conversation in the conversation interface.
[0099] In a specific application, taking a one-to-one conversation as an example, the conversation interface can be as shown in Figure 8. The conversation interface displays location sharing information of the target location shared by the conversation members with the user. Furthermore, as shown in Figure 8, the conversation interface also displays a conversation message from a conversation member inviting the user to the target location, i.e., "Come here" in Figure 8.
[0100] In practical applications, users can view their location favorites at any time. In response to the user's location favorites viewing event, the terminal will display the user's location favorites. If the user has saved the target location to the location favorites, the location favorites will display a saved location item indicating the target location. If the user needs to view the location sharing information of the target location shared by the session members with the user again, they can trigger an information viewing event based on the saved location item to browse the location sharing information of the saved target location in the location favorites. In response to the information viewing event, the terminal will display the session interface, which displays the location sharing information of the target location shared by the session members with the user.
[0101] In a specific application, in response to a user's trigger action on a saved location item indicating a target location, the terminal displays an entry point for viewing location sharing information. The user can then initiate an information viewing event by targeting this entry point. Specifically, the trigger action on the saved location item indicating a target location can be a double-click, long-press, or similar action. In this embodiment, the trigger action on the saved location item indicating a target location is not limited. This embodiment displays the conversation interface of the user's session, showing the location sharing information of the target location shared by the session members. This allows session members to directly share the target location with the user through the conversation, eliminating the need for the user to go through cumbersome steps to obtain the target location, thus saving resources. By responding to the information viewing event for browsing location sharing information, the conversation interface is displayed, showing the location sharing information of the target location shared by the session members. This provides an information backtracking function for saved locations, allowing users to quickly view information related to their saved locations without having to go through cumbersome steps to find location sharing information, further saving resources.
[0102] The information viewing entry is an interactive element set up during user interaction with a social application to facilitate users in viewing specific information. When a user performs a specific action (such as double-clicking or long-pressing) on a saved location item in their location favorites that indicates a target location, the social application will display the information viewing entry. This entry is the key trigger point for viewing the location-shared information indicating the target location in the location favorites. It may be presented in the form of an icon, text link, etc. After the user clicks on the entry, the system will, according to preset logic, retrieve and display the location-shared information of the target location shared by the conversation members with the user, based on the corresponding data storage location (such as server database, local cache, etc.), enabling quick retrieval and viewing of information.
[0103] In one exemplary embodiment, on the interface of a social application logged in as a user, location-sharing information about a target location is displayed to the user, including:
[0104] On the social application interface where the user is logged in, the user's information feed page is displayed;
[0105] The information feed page displays location sharing information for the target location shared with the user.
[0106] In this context, a user's news feed page refers to an interface that dynamically updates and presents content relevant to the user. For example, a user's news feed page can specifically refer to a social interaction interface related to the user. This page displays social content posted by users with whom the user has social relationships within the social application, and the user can interact with these users through the news feed page.
[0107] For example, in a social application interface logged in by a user, in response to the user's viewing action on the feed page, the terminal displays the user's feed page, which shows location-sharing information about the target location shared with the user. This location-sharing information can be posted by a social user with whom the user has a social relationship, or it can be posted by a recommender who recommends content to the user.
[0108] In this embodiment, the user's information flow page is displayed, and the location sharing information of the target location is displayed on the information flow page. The target location can be directly shared with the user through the information flow page, without the user having to go through cumbersome steps to obtain the location of the target location, which can save resources.
[0109] In one exemplary embodiment, the information feed page displays location-sharing information about a target location to be shared with the user, including:
[0110] The information feed page displays social users with whom the user has social relationships, sharing location-sharing information about the target location with the user.
[0111] Social users refer to users who have social relationships with the user in social applications.
[0112] For example, on the information feed page, the terminal will display social users who have social relationships with the user, sharing location sharing information of the target location with the user. That is, the location sharing information of the target location is published by social users who have social relationships with the user.
[0113] In practical applications, social users who have social relationships with users can publish social content through social applications, and the social content can carry location information. The social content published by them with location information will be displayed on the user's information feed page. The location information is the location sharing information of the target location shared by the social user who has social relationships with the user.
[0114] In a specific application, the information feed page can be as shown in Figure 9, displaying social users 1, 2, and 3 who have social relationships with the user, as well as social content posted by social user 1. Among them, the social content posted by social user 1 carries location information, which is the location sharing information of the target location shared by social user 1 with the user.
[0115] In this embodiment, the information feed page displays social users who have social relationships with the user and share the location information of the target location with the user. The information feed page enables social users to directly share the target location with the user without the user having to go through cumbersome steps to obtain the location of the target location, which can save resources.
[0116] In one exemplary embodiment, the information feed page displays location-sharing information about a target location to be shared with the user, including:
[0117] The information feed page displays recommended content for users, and within this recommended content, location sharing information about the target location is displayed to the user.
[0118] Recommended content refers to personalized information pushed to users, indicating their target location, based on their interests, behaviors, and preferences, using algorithms or artificial intelligence technology. Let's assume the user's interests are represented by a vector V. i The behavior is represented by a vector V. b The preference is represented by the vector V. p This means concatenating these three vectors in order into a single composite vector V = [V i V b V p The algorithm uses a trained neural network model M as input, taking a comprehensive vector V as input. After multiple layers of computation, it outputs a list of recommended locations L. The locations in this list represent the shared location information of the target locations shared with the user in the recommended content. The neural network model M is trained based on a large amount of user data and corresponding recommended location data. Here, V... i V is an n-dimensional vector, where each dimension represents a feature value of the user in a certain interest; b It is an m-dimensional vector, where each dimension represents a feature value of a user's behavior; V p is a k-dimensional vector, where each dimension represents a feature value of a user's preference; V is an (n+m+k)-dimensional vector.
[0119] For example, recommended content can specifically refer to personalized information pointing users to their target locations. It's understandable that recommended content is published by a recommending party, which refers to the entity providing the recommendation service. This party could be an individual, organization, system, or platform, and its purpose is to recommend content that users might be interested in based on their needs, preferences, or behaviors.
[0120] For example, on the information feed page, the terminal displays recommended content for the user, and within the recommended content, it displays location-sharing information about the target location shared with the user, guiding the user to view the location-sharing information and travel to the target location. In specific applications, the recommender can publish recommended content for the user through social applications, and the recommended content can carry location information. The published recommended content with location information will be displayed on the user's information feed page, and the location information therein is the location-sharing information about the target location shared with the user.
[0121] In this embodiment, the information feed page displays recommended content for the user, which includes location sharing information of the target location. This allows the target location to be directly shared with the user through the recommended content on the information feed page, without requiring the user to go through cumbersome steps to obtain the location of the target location, thus saving resources.
[0122] In an exemplary embodiment, in response to a triggering operation on location sharing information, a first travel reservation interface is displayed, including: in response to a triggering operation on location sharing information, displaying a travel entrance for indicating the travel destination; and in response to a triggering operation on the travel entrance, displaying the first travel reservation interface.
[0123] For example, in response to a user's triggering operation on location sharing information, the terminal will display a travel entry point to indicate the destination. The user can initiate a travel reservation through the travel entry point. In response to the user's triggering operation on the travel entry point, the terminal will display a first travel reservation interface for the user to reserve a ride.
[0124] Specifically, in response to a trigger operation on location sharing information, the terminal parses the location sharing information and extracts key information about the target location, such as geographic coordinates and address name. Assuming the geographic coordinates of the target location in the location sharing information are (lon... t ,lat t The terminal first determines whether it has an interface for travel services. If it does, the terminal will determine the destination location and the current user's location (assuming the location coordinates are (lon)). c ,lat c)), calculate the distance d between the two, the formula is d=R·arccos(sin(lat c )·sin(lat t )+cos(lat c )·cos(lat t )·cos(lon c -lon t Where R is the Earth's radius. If the distance d is within the preset effective range of the travel service (e.g., less than 100 kilometers), the terminal will call the travel service interface, pass in the target location information, and request the generation of relevant data for the travel entrance, such as the entrance icon and prompt text. After receiving the data returned by the interface, the terminal will display it on the interface, forming a travel entrance to indicate the destination.
[0125] In practical applications, in response to a user's trigger action regarding location sharing information, the terminal displays a travel entry point indicating the destination and a partial electronic map showing the destination's location. In response to a user's trigger action regarding the travel entry point, the terminal displays a primary travel booking interface for booking a ride. Furthermore, in addition to displaying the travel entry point and partial electronic map, the terminal also displays a navigation entry point for the destination, providing navigation services to that location. If the navigation service can be provided by a map navigation application, in response to a user's trigger action regarding the navigation entry point, the terminal displays a navigation interface provided by the map navigation application to guide the user to the destination.
[0126] In this embodiment, in response to a trigger operation on location-sharing information, a travel entrance is displayed to indicate the destination, guiding users to easily initiate travel reservations. Thus, in response to a trigger operation on the travel entrance, a first travel reservation interface is displayed for users to book their rides. The entire process enables convenient travel reservations based on location-sharing information, saving resources.
[0127] In one exemplary embodiment, the first ride booking interface displays first ride information planned for the user to navigate to the target location, including:
[0128] On the first travel booking interface, the user's destination is the first travel destination, and the user's location is the starting point of the trip. The information displayed is the first travel trip information planned by the user to navigate to the destination.
[0129] In this context, the destination refers to the final location reached during the trip. In this embodiment, the destination is the target location. The starting point refers to the departure point of the trip. In this embodiment, the starting point is the user's location. The user's location refers to the user's specific location in geographic space. The user's location can be obtained through technical means, provided the user authorizes access to their location. This typically involves using technologies such as mobile communication networks, satellite positioning systems, wireless network communication, and Bluetooth. Taking a satellite positioning system as an example, the terminal device receives signals emitted by multiple GPS satellites through its built-in GPS module. Based on the signal propagation time, the distance between the device and each satellite is calculated. Using the principle of triangulation, the geographical coordinates (longitude and latitude) of the terminal device are calculated using the distance information from at least three satellites, thereby determining the user's location. If combined with a mobile communication network, the terminal can further improve the accuracy of positioning based on the signal strength and location information of base stations. For wireless network communication, the terminal can scan for surrounding Wi-Fi hotspots, obtain the MAC address and signal strength of the hotspots, and send this information to the positioning server. The server determines the terminal's location by matching and calculating based on a pre-established Wi-Fi hotspot database. Bluetooth technology can assist in positioning by communicating with nearby Bluetooth beacons and using signal strength and the beacon's known location.
[0130] Specifically, on the first-trip booking interface, the user's planned first-trip itinerary, using the target location as the destination and the user's location as the starting point, is displayed. The planning process is as follows: The terminal obtains the geographic coordinates (lon) of the target location. t ,lat t ) and the geographic coordinates of the user's location (lon) s ,lat s The terminal calls the map navigation service's API, passing in the coordinates of the starting point and destination, and providing the mode of transportation (e.g., driving, public transport, walking, etc., with driving as the default) as a parameter. Upon receiving the request, the map navigation service server performs route planning based on preset map data and algorithms. For driving trips, the server considers factors such as traffic conditions, speed limits, and road types. Assuming the map data contains road nodes and connections, the server uses Dijkstra's algorithm or A* algorithm, taking the starting point as the origin and the destination as the destination, to calculate the shortest path. Simultaneously, it combines real-time traffic data (e.g., congestion, accident information, etc.) to optimize and adjust the path, obtaining the final travel route. Based on the path length, estimated travel speed, and other information, the departure time (defaulting to the current time) and estimated arrival time are calculated. The estimated arrival time T... a The calculation formula is Where Ts L represents the departure time, L represents the route length, and v represents the estimated travel speed (dynamically adjusted considering traffic conditions). The trip origin, destination, departure time, and estimated arrival time are combined to form the initial trip itinerary information, which is then returned to the terminal for display.
[0131] For example, as shown in Figure 10, in the first trip booking interface, the terminal displays the first trip information planned by the user to navigate to the target location, with the target location as the destination and the user's location as the starting point. Furthermore, as shown in Figure 10, the first trip information also includes the estimated arrival time (approximately X minutes in Figure 10).
[0132] In practical applications, when obtaining a user's location, if the user has authorized social media applications to access their location, the terminal can directly determine the user's location through technical means. If the user has not authorized social media applications to access their location, the terminal will first display a location authorization prompt, instructing the user to authorize the social media applications to access their location. This allows the terminal to determine the user's location through technical means, provided that the user has authorized the social media applications to access their location. In addition to displaying the location authorization prompt, the terminal will also display a prompt to manually set the location, indicating that the user can manually enter their location information.
[0133] In this embodiment, the first travel booking interface displays the first travel itinerary information planned by the user to navigate to the target location, with the target location as the destination and the user's location as the starting point. This allows users to conveniently book a ride based on the target location, saving resources.
[0134] In one exemplary embodiment, the location-sharing-based interaction method further includes:
[0135] In response to a location selection operation for the trip's starting point, the location selected in the location selection operation is used as the new trip's starting point, and the destination location is used as the trip's destination. The system displays the user's first trip information for navigating to the destination location.
[0136] For example, a user can change the starting point of a trip by initiating a location selection operation for the starting point of the trip. In response to the location selection operation for the starting point of the trip, the terminal will use the location selected by the location selection operation as the new starting point of the trip and the destination location as the trip destination, and display the first trip information planned by the user to navigate to the destination location.
[0137] In a specific application, taking the user's location as location 1 and the location selected in the location selection operation as location 2 as an example, as shown in Figure 11, before the user initiates the location selection operation for the trip start point, the trip start point is location 1. In response to the location selection operation for the trip start point, the terminal will use location 2 as the new trip start point and the target location as the trip destination, displaying the first trip information planned by the user to navigate to the target location.
[0138] In this embodiment, this method enables convenient updating of the trip's starting point to generate the user's desired first trip information, thus saving resources.
[0139] In one exemplary embodiment, the first ride booking interface displays a location favorites option for the target location, including:
[0140] On the First Travel ride booking interface, under the destination section of the First Travel trip information, a location favorite option is displayed for the target location.
[0141] For example, in the first trip booking interface, if the first trip information with the destination as the destination is displayed at the same time as the destination option, the destination option can be displayed at the trip destination to more intuitively instruct the user to save the destination.
[0142] In a specific application, the First Travel ride booking interface can be as shown in Figure 12. In the First Travel ride booking interface, the destination is the first travel information planned by the user to navigate to the destination. At the destination, there is a location favorite option for the destination.
[0143] Furthermore, as shown in Figure 12, in addition to the First Travel itinerary information and location favorites options, the First Travel ride reservation interface also displays a ride reservation area. In the ride reservation area, users can select the type of ride (as shown in Figure 12, taxi, ridesharing, chauffeur service, delivery, etc.) and the type of vehicle (as shown in Figure 12, carpooling, economy, premium, taxi, private car, six-seater, etc.). Users can also trigger the ride reservation operation through the ride reservation entry. The ride reservation area also displays the estimated cost of the ride for users' reference.
[0144] In this embodiment, by displaying a location favorites option for the target location at the destination in the first travel itinerary information, a clear indication of the target location can be provided, guiding the user to favorite the target location and providing the ability to quickly favorite locations. In this way, when the user needs to view or go to the target location later, there is no need to spend a lot of time browsing social records. The user can directly find the target location in the location favorites folder, which can save resources.
[0145] In one exemplary embodiment, the location-sharing-based interaction method further includes:
[0146] On the First Travel ride booking interface, a "Favorite Start Point" option is displayed, pointing to the start and end points of the trip information in the First Travel itinerary.
[0147] In response to a trigger action on the Start Point Favorites option, a "favorited" status marker is displayed at the Start Point Favorites option indicating that the Start Point has been added to the user's location favorites.
[0148] The "Start Point Favorite" option allows users to choose whether to save the start point of their trip to their location favorites. Users can trigger the action of the "Start Point Favorite" option to save the start point of their trip to their location favorites.
[0149] For example, in the First Travel ride booking interface, the terminal also displays a "Save Start Point" option that points to the start point of the trip in the First Travel itinerary information, allowing the user to choose whether to save the start point. In response to the user's action of selecting the "Save Start Point" option, indicating that the user has selected to save the start point to their location favorites, the terminal will display a "Save" status mark indicating that the start point has been saved to the user's location favorites.
[0150] In practical applications, the First Travel ride booking interface simultaneously displays First Travel trip information with the destination as the destination and the trip start point, a location favorite option for the destination, and a start point favorite option pointing to the trip start point. The start point favorite option can be displayed at or around the trip start point to more intuitively guide the user to favorite the trip start point. For example, the start point favorite option can be displayed above or below the trip start point.
[0151] In practical applications, similar to the location favorites option, the starting point favorites option can be an icon, and the favorited status indicator can be a visual identifier. That is, the favorited status indicator is usually accompanied by a visual change. For example, if the starting point favorites option is a hollow icon, the favorited status indicator can change from a hollow icon to a solid icon, indicating that the trip's starting point has been added to the location favorites. As another example, if the starting point favorites option is a gray icon, the favorited status indicator can change from a gray icon to a colored icon, indicating that the trip's starting point has been added to the location favorites.
[0152] In practical applications, the starting point for favorites can be a text label, and the "favorited" status indicator can be an interactive feedback mechanism that reflects this text label. In other words, in response to a user's action on the starting point for favorites, the status of the starting point for favorites will immediately change. For example, if the text on the starting point for favorites is "Favorited," then the "favorited" status indicator can change from "favorited" to "favorited." Further, this may also be accompanied by an icon change; the icon can change from hollow to solid, providing immediate interactive feedback.
[0153] In this embodiment, by displaying a "Save Starting Point" option in the first travel booking interface, pointing to the start and end points of the trip information, users are guided to save the starting and end points. In response to a trigger on this option, a "Save" status marker is displayed, indicating that the starting point has been added to the user's location favorites, thus enabling the user to save the trip's starting point. This process provides a quick way to save locations, so when users need to view or travel to the starting point later, they don't need to spend a lot of time browsing social media records; they can directly find the starting point in their location favorites, saving resources.
[0154] In one exemplary embodiment, the first travel booking interface displays a "favorite starting point" option that points to the start and end points of the first travel itinerary information, including:
[0155] On the First Travel ride booking interface, the trip start point in the First Travel trip information displays a "Favorite Start Point" option that points to the trip start point.
[0156] For example, the first travel booking interface simultaneously displays the first travel itinerary information with the destination as the destination and the start point of the trip, the location collection option for the destination, and the start point collection option pointing to the start point of the trip. The start point collection option can be displayed at the start point of the trip to more intuitively instruct the user to collect the start point of the trip.
[0157] In a specific application, as shown in Figure 13, the starting point is displayed as an icon at the start of the trip, and the saved status is marked as a solid icon. The destination is displayed as an icon at the destination. In the first trip booking interface, the terminal will display the user's planned first trip information for navigation to the destination, with the destination as the destination. At the start of the trip information, the starting point is displayed as a starting point (hollow icon as shown in Figure 13). In response to the user's trigger operation on the starting point, the terminal will display a saved status mark indicating that the trip start point has been saved to the user's location favorites (solid icon as shown in Figure 13).
[0158] In this embodiment, by displaying a "Favorite Start Point" option pointing to the start point of the trip in the first trip information, the user can intuitively indicate the start point of the trip and guide the user to favorite the start point. This provides the ability to quickly save locations, so that when the user needs to view or go to the start point of the trip later, there is no need to spend a lot of time browsing social records. The user can directly find the start point of the trip in the user's location favorites, which can save resources.
[0159] In one exemplary embodiment, the first ride-hailing reservation interface is displayed in a sub-application of a social application providing travel services; in response to a trigger operation on the location favorites option, a favorites status marker indicating that the target location has been favorited in the user's location favorites list is displayed at the location favorites option, including:
[0160] In response to a trigger action on the location favorites option, the authorization login interface of the sub-application is displayed if the user is not logged in to the sub-application.
[0161] In response to the authorization confirmation action triggered on the authorized login page, the location favorites option displays a "favorited" status mark indicating that the target location has been added to the user's location favorites.
[0162] For example, the first ride booking interface is displayed in a sub-application of a social application providing travel services. Specifically, in response to a user's trigger action regarding location sharing information, the terminal displays the first ride booking interface within the sub-application of the social application providing travel services. As shown in Figure 14, in response to a user's trigger action regarding the location favorites option, indicating that the user has selected to favorite a target location, the terminal verifies whether the user is logged into the sub-application. If the user is not logged into the sub-application, the terminal calls the social application component to obtain the user's account linked to the social application and displays the sub-application's authorization login interface to guide the user to authorize login using the account linked to the social application. In response to the user's authorization confirmation action triggered on the authorization login page, the terminal logs into the sub-application using the user's account linked to the social application. If the user is logged into the sub-application, the terminal displays a "favorited" status mark indicating that the target location has been added to the user's location favorites in the location favorites option. If the user is already logged into the sub-application, the terminal directly displays a "favorited" status mark indicating that the target location has been added to the user's location favorites in the location favorites option. The specific verification process is as follows: The terminal first checks whether the login session identifier (such as session_id) of the sub-application exists in the local storage. If it exists, the terminal sends a verification request to the sub-application's server, which includes the login session identifier. After receiving the request, the server searches for the record corresponding to the login session identifier in its session management system. If a valid record is found, and the record shows that the session has not expired, the user is determined to be logged in; if no record is found, or the record shows that the session has expired, the user is determined not to be logged in. If the login session identifier does not exist in the local storage, the terminal directly determines that the user is not logged in.
[0163] Social application components are modular parts of a social application system with specific independent functions. They can collaborate to achieve the overall functionality of the social application. In the context of this application, when a user is not logged into a sub-application of a social application providing travel services and needs to log in using their linked social application account, the system will invoke the social application components. These components have the ability to obtain the user's linked account information in the social application and may include functional modules such as account verification and information transmission. Through interaction with the underlying data of the social application, they securely and accurately extract and transmit the user's account information to support the sub-application's authorization login process, ensuring that the user can smoothly use the sub-application's related services, such as saving locations.
[0164] In a specific application, in response to the user's authorization confirmation action triggered on the authorization login page, the terminal logs into the sub-application using the user's account linked to the social application. The specific login process is as follows: the terminal sends the user's account information linked to the social application (such as account ID, authorization token, etc.) to the sub-application's server. Upon receiving the information, the sub-application server first verifies the validity of the authorization token. If the token is valid, it searches for the corresponding user record in the sub-application's user database based on the account ID. If the user record is found, the server creates a new login session for the user, generates a session ID, and returns the session ID to the terminal. The terminal receives the session ID and stores it locally for subsequent interactions with the sub-application server. When the user is logged into the sub-application, the location favorites option displays a "favorited" status indicating that the target location has been added to the user's location favorites.
[0165] In practical applications, the authorization login interface displays an authorization prompt message and an authorization confirmation control. The authorization prompt message informs the user that they can authorize the use of an account linked to the social application to log in to the sub-application for quick login. The authorization confirmation control triggers the authorization confirmation process; the user can click the authorization confirmation control to initiate the authorization confirmation operation.
[0166] In a specific application, the authorized login interface also displays a manual login entry that guides the user to enter their account and password. In response to the user's triggering action on the manual login entry, the terminal will display the manual login interface to guide the user to log in to the sub-application by entering their account and password. In response to the user's login completion, the terminal will display a "saved" status mark in the location favorites option, indicating that the target location has been saved to the user's location favorites.
[0167] In this embodiment, in response to a trigger operation on the location favorites option, if the user is not logged into the sub-application, the sub-application's authorization login interface is displayed. This guides the user to authorize login to the sub-application using the account linked to the social application. In response to an authorization confirmation operation triggered on the authorization login page, and assuming quick login, a "favorited" status marker is displayed at the location favorites option, indicating that the target location has been added to the user's location favorites. Since the location favorites are associated with the user's account, this method ensures that the target location is accurately added to the user's location favorites even when the user is logged in.
[0168] In one exemplary embodiment, the location-sharing-based interaction method further includes:
[0169] In response to a travel booking confirmation, the travel itinerary settings interface is displayed.
[0170] In response to a destination setting action triggered in the travel itinerary settings interface, the user's location favorites are displayed, and at least one favorited location item indicating the location that the user has saved is displayed in the location favorites;
[0171] In response to a destination selection action for any of the saved locations, a second travel booking interface is displayed;
[0172] The second travel booking interface displays the second travel itinerary information planned by the user for navigation to the destination selected by the user's destination selection operation. The second travel itinerary information is used for users to book a ride.
[0173] The second travel booking interface refers to the travel booking interface displayed in response to a destination selection operation for any saved location. The second travel itinerary information refers to the travel itinerary information displayed on the second travel booking interface, which may specifically include: the origin and destination points, departure time, and estimated arrival time. In this embodiment, the destination is the location selected during the destination selection operation.
[0174] For example, if a user has already saved a destination to their location favorites, and they need to travel again, they can initiate a travel reservation trigger. In response to the user's travel reservation trigger, the terminal displays a trip settings interface to instruct the user to set at least one of the starting point or destination for this trip. In response to the user's destination setting operation triggered in the trip settings interface, the terminal displays the user's location favorites. In the location favorites, at least one saved location item is displayed to guide the user to quickly find and select a destination in the location favorites. In response to the user's destination selection operation for any saved location item, the terminal displays a second travel reservation interface. In the second travel reservation interface, the second travel itinerary information planned by the user for navigation to the location selected in the destination selection operation is displayed. The second travel itinerary information is used for the user to reserve a ride.
[0175] In practical applications, social applications often provide a ride-hailing reservation portal to trigger the action of booking a ride. Users can use this portal to initiate the ride-hailing reservation. For example, if the ride-hailing service is provided by an application component of the social application, the ride-hailing portal could be the entry point of that application component. Alternatively, if the ride-hailing service is provided by a sub-application of the social application, the ride-hailing portal could be the entry point of that sub-application.
[0176] In a specific application, the travel itinerary setting interface can be as shown in Figure 15. The travel itinerary setting interface includes a starting point setting area and a destination setting area. The destination setting operation can be a trigger operation for the destination setting area. In response to the trigger operation for the destination setting area, the terminal will display the user's location favorites. In the location favorites, at least one favorited location item indicating the user's favorited location will be displayed (as shown in Figure 15, including favorited location item 1 indicating favorited location 1, favorited location item 2 indicating favorited location 2, favorited location item 3 indicating favorited location 3, and favorited location item 4 indicating favorited location 4).
[0177] In this embodiment, during the trip planning process, when the user needs to set a destination, a location favorites list can be provided as a guide for quick search and selection. This allows the user to quickly find the destination directly in the user's location favorites list without having to spend a lot of time browsing social records, thus saving resources.
[0178] In one exemplary embodiment, the trip settings interface is displayed in a sub-application of a social application providing travel services; in response to a destination setting operation triggered on the trip settings interface, the user's location favorites are displayed, including:
[0179] In response to a destination setting action triggered in the travel itinerary settings interface, a favorites entry indicating the location favorites is displayed;
[0180] In response to a trigger action on the Favorites entry, the authorization login interface of the sub-application is displayed if the user is not logged in to the sub-application.
[0181] In response to the authorization confirmation action triggered on the authorized login page, display the user's location favorites.
[0182] For example, the travel itinerary settings interface is displayed in a sub-application of a social application providing travel services. Specifically, in response to a travel booking trigger, the terminal displays the travel itinerary settings interface within the sub-application of the social application providing travel services. As shown in Figure 16, in response to a user's destination setting action triggered in the travel itinerary settings interface, the terminal displays a location favorites entry to guide the user to quickly find and select a destination through the location favorites. In response to a trigger action targeting the location favorites entry, indicating that the user has selected a destination from the location favorites, the terminal verifies whether the user is already logged into the sub-application. If the user is not logged into the sub-application, the terminal calls the social application component to obtain the user's account linked to the social application and displays the sub-application's authorization login interface to guide the user to authorize login using the account linked to the social application. In response to the user's authorization confirmation action triggered on the authorization login page, the terminal logs into the sub-application using the user's account linked to the social application. If the user is logged into the sub-application, the terminal directly displays the user's location favorites.
[0183] In this embodiment, in response to a destination setting operation triggered on the travel itinerary settings interface, a location favorites entry is displayed, guiding the user to quickly find and select a destination through the location favorites. In response to a trigger operation on the location favorites entry, if the user is not logged into the sub-application, an authorization login interface for the sub-application is displayed, guiding the user to authorize login to the sub-application using an account linked to the social application. Therefore, in response to an authorization confirmation operation triggered on the authorization login page, the user's location favorites are displayed when quick login is achieved. Since the location favorites are associated with the user's account, this method provides an accurate location favorites list for the user to select a destination when logged in, eliminating the need for users to spend significant time browsing social media records and allowing them to quickly find their destination directly from their location favorites, thus saving resources.
[0184] In one exemplary embodiment, displaying at least one saved location item in the location favorites list that indicates a location that the user has saved includes: displaying at least one saved location item in the location favorites list in descending order of the user's saved locations.
[0185] For example, in the location favorites, the terminal will display at least one favorited location item indicating the location that the user has saved, in reverse order of the location that the user has saved. That is, the favorited location item indicating the most recently saved location is arranged at the front, and the favorited location item indicating the earliest saved location is arranged at the back.
[0186] The sorting process can be as follows: The server retrieves the user's location favorites data from the database. Assuming the database table is named `user_location_favorites`, it contains fields such as `user_id` (user account identifier), `location_id` (location identifier), and `collect_time` (favorite time). The server filters all favorited location records for the user based on their account identifier. Then, these records are sorted in descending order by the `collect_time` field, meaning records with more recent favorite times are listed first. A quicksort algorithm can be used, with an average time complexity of O(nlogn). After sorting, the server returns the sorted records to the terminal. The terminal generates favorited location entries based on the location information in the records and displays them in the location favorites list according to the sorted order.
[0187] In a specific application, taking the collected locations as including Location 1, Location 2, Location 3 and Location 4, and the collection order in reverse order as Location 4, Location 3, Location 2 and Location 1, the displayed location collection can be as shown in Figure 17, where the collection location item 4 indicating Location 4 is arranged at the beginning, and the collection location item 1 indicating Location 1 is arranged at the end.
[0188] In this embodiment, by displaying at least one saved location item indicating the user's saved locations in reverse order of the user's saved locations, the user's most recently saved locations can be displayed at the top, making it convenient for the user to quickly find the most recently saved locations in the location favorites without having to spend time browsing through the location favorites, thus saving resources.
[0189] In one exemplary embodiment, the location-sharing-based interaction method further includes:
[0190] In response to a travel booking confirmation, the travel itinerary settings interface is displayed.
[0191] In response to the start point setting operation triggered in the trip settings interface, the user's location favorites are displayed, and at least one favorite location item indicating the location that the user has saved is displayed in the location favorites;
[0192] In response to the start point selection operation for any of the favorite locations, the travel itinerary settings interface is restored and displayed, and the location selected by the start point selection operation is displayed as the trip start point in the travel itinerary settings interface;
[0193] Once the trip destination is set, the third-party ride booking interface is displayed. This interface shows the third-party ride information planned by the user, starting from the trip's origin. This third-party ride information is used by the user to book a ride.
[0194] For example, if a user has already saved a destination to their location favorites, and they need to travel again, they can initiate a travel reservation trigger. In response to the user's travel reservation trigger, the terminal will display a trip settings interface to instruct the user to set at least one of the starting point or destination for this trip. In response to the user's starting point setting operation triggered in the trip settings interface, the terminal will display the user's location favorites. In the location favorites, at least one saved location item will be displayed to guide the user to quickly find and select the starting point in the location favorites. In response to the user's starting point selection operation for any saved location item, the terminal will restore the trip settings interface and display the location selected in the starting point selection operation as the trip starting point in the trip settings interface.
[0195] For example, after setting the starting point of the trip, the user can continue to set the destination. In response to the user's trip destination setting, the terminal will display the third-party ride booking interface. The third-party ride booking interface displays the third-party ride information planned by the user starting from the trip starting point. The third-party ride information is used for the user to book a ride.
[0196] In practical applications, users can set their travel destination by initiating the destination setting operation in the travel itinerary settings interface. Understandably, the destination can also be selected from the user's favorite locations list, allowing for quick selection of the start and end points of the trip. This method of directly and quickly searching and selecting from the user's favorite locations saves resources.
[0197] In this embodiment, during the trip planning process, when the user needs to set a starting point, a location favorites list can be provided as a guide for quick search and selection. This allows the user to quickly find the starting point directly in the user's location favorites list without having to spend a lot of time browsing social records, thus saving resources.
[0198] In an exemplary embodiment, the location-sharing-based interaction method of this application is described using a communication application as an example.
[0199] The inventors believe that, using traditional methods, conversation members can share location information with users, allowing users to access travel services after viewing the location information. However, when users want to view or travel to the shared location again, they need to spend a lot of time in the communication application browsing through the conversation message records with the conversation members to find the required location information. This leads to continuous occupation of system resources and waste of resources.
[0200] Based on this, this application provides a location-sharing-based interaction method that gives users the ability to quickly save locations. This way, when users need to view or go to the shared locations later, they no longer need to spend a lot of time browsing through conversation message records. They can directly find the shared locations in their location favorites and quickly select and travel there, which can save resources and improve user stickiness.
[0201] In an exemplary embodiment, as shown in FIG18, the location-based sharing interaction method of this application mainly includes several parts: displaying traffic entry, displaying favorites entry, adding favorites, and using favorites locations. Each part will be described below.
[0202] In practical applications, displaying traffic entry points refers to showing location-sharing information about target locations shared with users. It's understandable that location-sharing information is a crucial source of users for travel services, and displaying this information falls under the category of scenarios with POI (Point of Interest) attributes. Based on this attribute, users who can view location-sharing information can be given the ability to save locations. Location-sharing information can be displayed in the chat interface or in the news feed.
[0203] In a specific application, as shown in Figure 18, taking the display of location sharing information in the conversation interface as an example, the terminal displays the conversation interface of the user's logged-in communication application interface, which displays the location sharing information of the target location shared by the conversation members with the user.
[0204] In a specific application, when location-sharing information is displayed on the news feed page, the location-sharing information about the target location displayed on the news feed page can be posted by social users who have a social relationship with the user. That is, the news feed page displays location-sharing information about the target location shared by social users who have a social relationship with the user.
[0205] In a specific application, the location sharing information of the target location displayed to the user on the information feed page can also be published by the recommender of the content recommended to the user. That is, the information feed page displays recommended content for the user, and the recommended content displays the location sharing information of the target location to the user.
[0206] In practical applications, displaying the favorites entry means that in response to a user's triggered action regarding location sharing information, when the First Travel Ride Booking interface is displayed, a location favorites option for the target location will be shown to guide the user to favorite the target location.
[0207] In one specific application, the First Travel ride booking interface also displays First Travel itinerary information planned for the user to navigate to the target location. This First Travel itinerary information is used for users to book rides. The First Travel itinerary information can use the target location as the destination and the user's location as the starting point of the trip.
[0208] In a specific application, if the starting point of the trip is the user's location, the user can also change the starting point of the trip. In response to the location selection operation for the starting point of the trip, the terminal will use the location selected by the location selection operation as the new starting point of the trip and the destination as the destination of the trip, and display the first trip information planned by the user to navigate to the destination.
[0209] In a specific application, in response to a user's trigger action regarding location sharing information, the terminal displays a travel entry point indicating the destination. Only in response to a user's trigger action regarding this travel entry point will the terminal display the first travel booking interface. This first travel booking interface can be illustrated as shown in Figure 18, where a location favorites option for the target location, serving as a favorites entry point, is displayed at the trip destination.
[0210] In a specific application, the First Travel ride booking interface can also display a "Favorite Start Point" option that points to the start point of the trip in the First Travel trip information, in order to guide users to favorite the start point of the trip. This "Favorite Start Point" option can be displayed at the start point of the trip.
[0211] In practical applications, adding a location to favorites refers to a user triggering the location favorites option to add the target location to their favorites list. As shown in Figure 18, in response to the user's triggering of the location favorites option, the terminal will display a "favorited" status marker indicating that the target location has been added to the user's favorites list (as shown in Figure 18, the "favorited" status marker is indicated by the location favorites option becoming a solid icon, which is filled in black in Figure 18 to represent a solid icon).
[0212] In a specific application, the First Travel ride booking interface is displayed within a sub-application of the communication application providing travel services. Specifically, in response to a user's trigger action regarding location sharing, the terminal redirects to the sub-application of the social application providing travel services, where the First Travel ride booking interface is displayed. Similarly, in response to a user's trigger action regarding the location favorites option, the terminal verifies whether the user is logged into the sub-application. If the user is not logged into the sub-application, the terminal displays the sub-application's authorization login interface. Only after the user confirms authorization on the authorization login page does the location favorites option display a "favorited" status mark, indicating that the target location has been added to the user's location favorites.
[0213] In practical applications, using saved locations means that when a user travels again, they don't need to browse through conversation message history to find previously visited locations. Instead, when selecting a destination, they can directly find the saved locations from the user's location favorites, select the desired location, and then travel there.
[0214] In a specific application, when a user wants to take a ride next time, they can initiate a ride reservation. In response, the terminal will display a trip settings interface. In response to the user's destination setting action in the trip settings interface, the terminal will display the user's location favorites. In the location favorites, at least one saved location item will be displayed. In response to a destination selection action for any saved location item, a second ride reservation interface will be displayed. This second ride reservation interface displays second trip information planned by the user to navigate to the destination selected in the destination selection action. This second trip information is used for the user to reserve a ride. The saved location items in the location favorites are displayed in reverse chronological order of the user's saved locations.
[0215] In a specific application, as shown in Figure 18, in response to the user's destination setting operation triggered in the travel itinerary settings interface, the terminal displays an entry to the location favorites list to guide the user to select a destination from the location favorites list. Furthermore, as shown in Figure 18, users can also set destinations by using the displayed virtual keyboard to input the destination, and there are entry points for setting the home address ("Set Home" as shown in Figure 18) and the company address ("Set Company" as shown in Figure 18). Users can also set their home and company addresses, and below the destination input area, some of the user's recently used destinations are displayed (as shown in Figure 18, specific addresses are represented by XXXX).
[0216] In a specific application, the travel itinerary settings interface is displayed within a sub-application of the communication application providing travel services. Specifically, in response to a travel booking trigger, the terminal redirects from the communication application to the sub-application providing the travel services, where the travel itinerary settings interface is displayed. In response to a user's destination setting action within the travel itinerary settings interface, the terminal displays an entry to the location favorites list, guiding the user to quickly find and select destinations. In response to a user's action targeting the location favorites entry, the terminal verifies whether the user is logged into the sub-application. If the user is not logged into the sub-application, the terminal displays the sub-application's authorization login interface. Only after an authorization confirmation action is triggered on the authorization login page is the user's location favorites displayed.
[0217] In one specific application, users can also quickly set the starting point of their trip using a location favorites list. Specifically, when the trip settings interface is displayed on the terminal, the user can initiate a starting point setting operation to set the trip's origin. In response to this operation, the terminal displays the user's location favorites list, showing at least one saved location item. Upon selecting a starting point for any saved location, the terminal re-displays the trip settings interface, displaying the selected location as the trip's origin. Once the user has set the trip destination, the terminal displays a third-party transportation booking interface. This interface displays information about third-party transportation trips planned by the user from the trip's origin, which the user can use to book a ride.
[0218] It should be noted that, in addition to using the location favorites to quickly set the start point of the trip, users can also use the location favorites to quickly set the destination of the trip. This is the same as using only the location favorites to quickly set the destination of the trip, and will not be described again in this embodiment.
[0219] In practical applications, since the location favorites are associated with the user, if the travel service is provided by a sub-application of a communication application, it is necessary to verify whether the user is logged in to the sub-application when the user uses the favorites feature. That is, the user must be logged in to use the favorites feature. Therefore, when a user adds or uses a favorited location, it is necessary to verify the user's login status. If the user is not logged in, the user needs to be guided to log in before proceeding with the functions of adding and using favorited locations.
[0220] In a specific application, taking the method of guiding users to log in as an example, the logic flowchart for verifying the user's login status can be shown in Figure 19. When a user accesses a sub-application and adds or uses a saved location, the terminal needs to verify whether the user is already logged into the sub-application. If the user is already logged into the sub-application, the subsequent process of adding or using a saved location proceeds. If the user is not logged into the sub-application, the communication application component is called to obtain the user's account authorization bound to the communication application for login. If the user is logged into the sub-application, the subsequent process of adding or using a saved location continues.
[0221] In a specific application, the process of adding and using a favorite location after a user logs in can be illustrated as shown in Figure 20.
[0222] Specifically, during the user's added location to favorites stage, the communication application interface displays location sharing information for the target location. The user can access the sub-application providing the travel service through this location sharing information (i.e., initiate a trigger operation based on the location sharing information). On the front end of the sub-application providing the travel service (displayed on the terminal), the target location is displayed as the trip destination, showing the first travel booking interface. This interface displays the user's planned first trip information for navigation to the target location and includes a location favorites option. The user can favorite the target location by initiating a trigger operation based on this option. In response, the back end of the sub-application providing the travel service (which could be a server communicating with the terminal) stores the target location in the user's account, i.e., adds it to the user's location favorites list. Specifically, in response to a user's action of selecting a location as a favorite, the backend of the sub-application providing travel services (which could be a server communicating with the terminal) stores relevant information about the target location, such as geographic coordinates and address information, in the database as key-value pairs. The key is the user account identifier, and the value is a collection of information about the target location, which is then added to the user's location favorites. For example, the database table might be named `user_location_favorites`, containing fields such as `user_id` (user account identifier), `location_name` (target location name), `latitude` (latitude), `longitude` (longitude), and `address` (address information). The backend inserts the target location information into the corresponding user account record in this table.
[0223] It should be noted that if the user is not logged in, they need to be guided to log in first, and then the collection operation can be performed after logging in.
[0224] The front-end of a sub-application is the user-facing part of a social application providing travel services, displayed and interacted with on terminal devices (such as mobile phones, tablets, etc.). It is responsible for building and displaying the user interface, including the ride booking interface and trip itinerary settings interface. The front-end handles various user actions, such as clicks and swipes, and passes this information to the back-end for processing. Simultaneously, it needs to retrieve data from the back-end, such as trip itinerary information and location favorites, and present this data to the user in an intuitive and aesthetically pleasing manner. To achieve a good user experience, the front-end of a sub-application typically employs modern front-end development technologies (such as HTML, CSS, JavaScript, etc.) combined with responsive design principles to ensure proper display and usability on terminal devices of different sizes and resolutions.
[0225] The backend of a sub-application is the core processing component of a social application providing travel services, typically deployed on a server. It handles business logic and data storage management. When a user initiates an action to save a location, the sub-application's backend receives the request from the frontend, verifies and authorizes the user. Then, it stores the target location's information (such as geographic coordinates and address information) in a database according to a specific data structure (such as key-value pairs). The database table is linked to the user's account identifier, ensuring that each user's saved information is stored and managed independently. Simultaneously, the sub-application's backend also needs to handle other user requests, such as trip planning and location save data queries, interacting with external systems like map navigation services and databases to provide accurate and timely data support to the frontend.
[0226] Specifically, during the user's saved locations phase, the next time the user visits the sub-application and enters their destination, the front end of the sub-application providing the travel service displays a saved locations entry. The user can trigger an action on the saved locations entry to view the saved locations. In response to the user's action on the saved locations entry, if the user is already logged into the sub-application, the back end of the sub-application providing the travel service will return the saved locations to the front end. In the saved locations, there will be at least one saved location entry indicating the user's saved locations, displayed in reverse chronological order (from most recent to oldest). The user can select a saved location as their destination from the displayed at least one saved location entry and place an order for a ride.
[0227] Understandably, this approach allows users to save target locations without having to search through conversation history when they need to travel to the same destination again. They can directly find the saved locations in the sub-application's location favorites and travel there, improving the user experience and increasing user stickiness to the sub-application platform.
[0228] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.
[0229] Based on the same inventive concept, this application also provides a location-sharing interaction device for implementing the location-sharing interaction method described above. The solution provided by this device is similar to the implementation described in the above method; therefore, the specific limitations of one or more location-sharing interaction device embodiments provided below can be found in the limitations of the location-sharing interaction method described above, and will not be repeated here.
[0230] In an exemplary embodiment, as shown in FIG21, a location-sharing-based interactive device is provided, including: a location display module 2102, a ride reservation module 2104, a trip display module 2106, a favorites instruction module 2108, and a location favorites module 2110, wherein:
[0231] Location display module 2102 is used to display location sharing information of a target location shared with the user in the interface of a social application where the user is logged in.
[0232] The ride reservation module 2104 is used to respond to the trigger operation of location sharing information and display the first ride reservation interface;
[0233] The trip display module 2106 is used to display the first trip information planned by the user for navigation to the target location in the first trip booking interface;
[0234] The collection instruction module 2108 is used to display the location collection option for the target location in the first travel reservation interface;
[0235] The location favorites module 2110 is used to respond to a trigger operation on the location favorites option, and to display a favorites status mark indicating that the target location has been favorited in the user's location favorites.
[0236] The aforementioned location-sharing-based interactive device displays location-sharing information of a target location on the user's social application interface. This allows the user to share the target location, and in response to a trigger action on the location-sharing information, displays a first-trip booking interface. This interface shows the user's planned itinerary for navigating to the target location, enabling the user to book a ride based on the location-sharing information. The first-trip booking interface also displays a location favorites option, guiding the user to save the target location. In response to a trigger action on this option, a "saved" status mark is displayed, indicating that the target location has been added to the user's location favorites. This process allows users to quickly save locations while booking rides based on location-sharing information. This way, when users need to view or travel to the target location later, they don't need to spend a lot of time browsing social media records; they can directly find the target location in their location favorites, saving resources.
[0237] In an exemplary embodiment, the location display module is further configured to display a conversation interface of a conversation in which the user is participating on a social application interface logged in by the user. In the conversation interface, location sharing information of the target location shared by the conversation members with the user is displayed. The location-sharing-based interactive device further includes an information viewing module, which is configured to display the conversation interface in response to an information viewing event that indicates location sharing information of the target location in the location favorites. In the conversation interface, the location sharing information of the target location shared by the conversation members with the user is displayed.
[0238] In one exemplary embodiment, the location display module is also configured to display the user's feed page on the social application interface logged in by the user, and the feed page displays location sharing information about the target location shared with the user.
[0239] In one exemplary embodiment, the location display module is also used to display social users with social relationships with the user on the information feed page, and share location sharing information of the target location with the user.
[0240] In one exemplary embodiment, the location display module is further configured to display recommended content for the user on the information feed page, wherein the recommended content displays location sharing information for sharing the target location with the user.
[0241] In one exemplary embodiment, the ride reservation module is further configured to display a ride entrance for indicating the destination in response to a trigger operation on location sharing information, and to display a first ride reservation interface in response to a trigger operation on the ride entrance.
[0242] In an exemplary embodiment, the trip display module is further configured to display, in the first trip booking interface, the first trip information planned by the user for navigating to the target location, with the target location as the trip destination and the user's location as the trip start point.
[0243] In an exemplary embodiment, the trip display module is further configured to, in response to a location selection operation for the trip start point, use the location selected by the location selection operation as the new trip start point and the destination location as the trip destination, and display the first trip information planned by the user for navigating to the destination location.
[0244] In one exemplary embodiment, the favorites instruction module is also used to display a favorites option for the target location in the destination section of the first travel itinerary information on the first travel booking interface.
[0245] In an exemplary embodiment, the collection instruction module is further configured to display a collection option for the starting point of the trip in the first trip information on the first trip booking interface. The location collection module is further configured to display a collection status mark indicating that the starting point has been collected to the user's location collection in response to a trigger operation on the starting point collection option.
[0246] In one exemplary embodiment, the favorite indicator module is also used to display a favorite option pointing to the start point of the trip in the trip start point of the first trip information on the first trip booking interface.
[0247] In an exemplary embodiment, the first ride booking interface is displayed in a sub-application of a social application that provides travel services. The location collection module is also used to respond to a triggered operation for the location collection option, and if the user is not logged into the sub-application, to display the authorization login interface of the sub-application. In response to an authorization confirmation operation triggered on the authorization login page, the location collection option displays a collection status mark indicating that the target location has been collected into the user's location collection.
[0248] In one exemplary embodiment, the location-sharing-based interactive device further includes a trip setting module, which displays a trip setting interface in response to a trip booking trigger operation, displays the user's location favorites in response to a destination setting operation triggered on the trip setting interface, displays at least one favorited location item indicating a location that the user has saved, and displays a second trip booking interface in response to a destination selection operation for any favorited location item, displaying second trip information planned for the user to navigate to the location selected in the destination selection operation, the second trip information being used by the user to book a ride.
[0249] In one exemplary embodiment, the trip settings interface is displayed in a sub-application of a social application that provides travel services. The trip settings module is also configured to display a favorites entry indicating the location favorites in response to a destination setting operation triggered on the trip settings interface, and to display the sub-application's authorization login interface in response to a trigger operation on the favorites entry if the user is not logged into the sub-application, and to display the user's location favorites in response to an authorization confirmation operation triggered on the authorization login page.
[0250] In one exemplary embodiment, the trip settings module is further configured to display at least one saved location item in the location favorites list, in descending order of the user's saved locations, indicating the locations the user has saved.
[0251] In an exemplary embodiment, the trip setting module is further configured to display a trip setting interface in response to a trip booking trigger operation; display the user's location favorites in response to a start point setting operation triggered in the trip setting interface; display at least one favorite location item indicating a location that the user has favorited in the location favorites; restore the trip setting interface in response to a start point selection operation for any favorite location item; display the location selected by the start point selection operation as the trip start point in the trip setting interface; and display a third trip booking interface in response to the completion of the trip destination setting; display third trip booking information planned by the user from the trip start point in the third trip booking interface; the third trip booking information is used for the user to book a ride.
[0252] The modules in the location-sharing-based interactive device described above can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device, or stored in the memory of a computer device as software, so that the processor can invoke and execute the operations corresponding to each module.
[0253] In an exemplary embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram is shown in Figure 22. The computer device includes a processor, memory, input / output interface, communication interface, display unit, and input device. The processor, memory, and input / output interface are connected via a system bus, and the communication interface, display unit, and input device are also connected to the system bus via the input / output interface. The processor of the computer device provides computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores an operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The input / output interface of the computer device is used for exchanging information between the processor and external devices. The communication interface of the computer device is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, Near Field Communication (NFC), or other technologies. When the computer program is executed by the processor, it implements a location-sharing-based interaction method. The display unit of the computer device is used to form a visually visible image and may be a display screen, a projection device, or a virtual reality imaging device. The display screen can be an LCD screen or an e-ink screen. The input device of the computer device can be a touch layer covering the display screen, or buttons, trackballs, or touchpads set on the casing of the computer device, or external keyboards, touchpads, or mice, etc.
[0254] Those skilled in the art will understand that the structure shown in Figure 22 is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0255] In one embodiment, a computer device is also provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above method embodiments.
[0256] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon that, when executed by a processor, implements the steps in the above method embodiments.
[0257] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps in the above method embodiments.
[0258] In summary, this application provides a location-sharing-based interactive method, apparatus, device, computer-readable storage medium, and computer program product. When a user logs into a social application interface, location-sharing information of the target location is displayed, including precise geographic coordinates, address, and other key information. By effectively processing and storing this information, the system can accurately convey the target location to the user. Upon triggering the location-sharing information, a first-stage travel booking interface is displayed. The system can plan the user's travel itinerary based on accurate location information, avoiding itinerary planning errors caused by ambiguous location information and reducing the resource consumption of repeated calculations and adjustments. The first-stage travel booking interface displays a location favorites option for the target location, guiding the user to favorite it. The favorites function links the target location information to the user's location favorites, forming an efficient indexing mechanism. When the user searches for the target location again, the system can directly and quickly locate it from the location favorites without traversing a large number of social records, reducing the complexity of data retrieval and significantly saving system resources.
[0259] Furthermore, the social application interface displays the conversation interface of the user's participation, showing location-sharing information of the target location shared by conversation members. This in-conversation location sharing method reduces the layers and complexity of information transmission. The system does not need to filter and integrate multiple different information sources; it directly presents location information on the conversation interface, improving information transmission efficiency and reducing the system's workload in processing information. When responding to information viewing events indicating location-sharing information of a target location in the location favorites, the system can quickly locate the conversation interface containing the location-sharing information based on the location favorites index. This avoids the traditional method of searching through a large number of conversation records line by line, improving the speed of information retrieval and reducing system resource consumption.
[0260] Furthermore, the system displays the user's feed page within the social application interface where the user is logged in, showing location-sharing information about the target location. As a central area for information display within the social application, the feed page boasts a high degree of information aggregation. By integrating the target location's location-sharing information into the feed page, the system leverages its efficient information display mechanism, reducing the need for users to switch between different interfaces. Users no longer need to search for location information across multiple scattered interfaces, reducing the resources consumed by the system to support interface switching and information retrieval, and improving the efficiency of information acquisition.
[0261] Furthermore, the information feed displays location-sharing information about target locations shared by social users with whom the user has social relationships. Leveraging the characteristics of social networks, the system can push location information more accurately. Social connections between users make location information more targeted; the system can filter and sort information based on social relationships, reducing interference from irrelevant information. Users can obtain location information relevant to themselves more quickly, reducing the resources the system consumes to process large amounts of irrelevant information and improving the accuracy and efficiency of information retrieval.
[0262] Furthermore, the information feed page displays recommended content for the user, including location-sharing information about the target location. This recommended content is generated by the system using a complex algorithm model based on multi-dimensional data such as the user's interests, behaviors, and preferences. This personalized recommendation method accurately pushes location information of target locations that the user may be interested in to the user. Instead of pushing large amounts of general information to the user, the system provides targeted and relevant location-sharing information, reducing redundancy in information push, improving efficiency, and lowering resource consumption during information filtering and push processes.
[0263] Furthermore, in response to triggering operations based on location-sharing information, the system displays a ride-hailing entrance indicating the destination. Before displaying the entrance, the system performs detailed analysis and processing of the location-sharing information. By extracting key information about the destination and combining it with the user's current location information, the system can accurately determine whether the destination is within the effective range of the ride-hailing service. If the conditions are met, a ride-hailing entrance is generated and displayed, guiding the user to initiate a reservation. This judgment and guidance mechanism based on accurate information avoids users initiating invalid ride-hailing reservation requests, reduces the waste of system resources in processing invalid requests, and improves the accuracy and efficiency of reservation initiation.
[0264] Furthermore, on the first-trip booking interface, the system displays the user's planned first-trip itinerary information, using the destination as the travel destination and the user's location as the travel start point. When planning the trip, the system calls the map navigation service API, combining the geographical coordinates of the destination and the user's location, and comprehensively considering various factors such as traffic conditions, speed limits, and road type. Through complex path planning algorithms, such as Dijkstra's algorithm or A* algorithm, the system can plan the optimal travel route for the user. This multi-factor-based trip planning method improves the accuracy and rationality of trip planning, reduces the time and resource waste for users during their trips, and also reduces the resource consumption of the system due to repeated calculations and adjustments caused by unreasonable trip planning.
[0265] Furthermore, in response to location selection operations for the trip's starting point, the system uses the selected location as the new starting point and the destination as the final destination, displaying the user's planned first trip information for navigation to the destination. The system features a flexible trip starting point update mechanism. When the user selects a new starting point, the system only needs to replan the route based on the new starting point and the original destination. This partial update method avoids repetitive operations such as re-acquiring destination location information, reducing the system's computational load, improving trip planning efficiency, and saving system resources.
[0266] Furthermore, on the First Travel ride booking interface, a location favorites option is displayed in the destination section of the First Travel trip information. This intuitive display closely links the favorites option with the trip destination, enhancing the user's awareness of the favorites operation. By displaying the favorites option in a key location, the system increases the likelihood of users saving target locations. Once a user saves a target location, the system stores the location information in a location favorites folder, forming an efficient index. When users subsequently search for the target location, the system can directly retrieve it from the location favorites folder, avoiding searching through a large amount of social records, reducing the complexity of system data retrieval, and saving system resources.
[0267] Furthermore, the system displays a "Favorite Starting Point" option on the First Travel ride booking interface, pointing to the trip's origin and destination information, guiding users to save their trip's starting point. The system provides a save function for trip starting points, linking this information to the user's location favorites. Once a user saves a trip's starting point, the system establishes an index mechanism for that starting point. Subsequent times when the user uses that starting point again, the system can quickly retrieve it directly from the location favorites, eliminating the need for the user to re-enter or search for the starting point information. This reduces the workload of processing user input and retrieval information, improves information retrieval efficiency, and saves system resources. In response to the trigger operation of the "Favorite Starting Point" option, a "Saved" status marker is displayed at the starting point's save option, indicating that the starting point has been added to the user's location favorites. This marker mechanism provides clear feedback to the user, and the system can also accurately record and manage the user's favorite information based on this marker, avoiding confusion and duplication of favorite information and improving the efficiency of managing favorite information.
[0268] Furthermore, on the First Travel ride booking interface, a "Favorite Start Point" option is displayed at the start point of the trip information. This display method, which closely integrates the favorite option with the trip start point, more intuitively guides users to favorite their trips. By displaying the start point favorite option in a key location, the system increases users' willingness to favorite their trip start points. After a user favorites a trip, the system stores the start point information in an organized manner in a location favorites folder, forming an efficient index structure. When users subsequently search for their trip start point, the system can quickly locate and retrieve it, avoiding the need to search through large amounts of information and reducing the system's data retrieval time and resource consumption.
[0269] Furthermore, the ride-hailing reservation interface is displayed within a sub-application of the social application providing the travel service. When a user selects a location to save, the system verifies the user's login status within the sub-application. If the user is not logged in, the system retrieves the user's account linked to the social application and displays the sub-application's authorization login interface. This authorization login mechanism ensures that only logged-in users can perform the save operation, guaranteeing the accurate association between saved information and the user's account. Through this quick login method, users do not need to manually enter cumbersome account information, reducing operational errors and time consumption during the login process. After the user logs in, the system can accurately store the target location information in the location save folder corresponding to the user's account, avoiding the chaos of saved information and the waste of system resources caused by the user not logging in or logging in incorrectly, thus improving the security and accuracy of the save operation.
[0270] Furthermore, in response to a travel booking trigger, the system displays the travel itinerary settings interface. When a user triggers a destination setting operation in the travel itinerary settings interface, the system displays the user's location favorites, showing at least one saved location item. The location favorites serve as an efficient location index, allowing the system to quickly generate saved location items based on the user's saved history. When setting a destination, the user can directly select a saved location from the location favorites, eliminating the need for manual input or searching through a large amount of location information. This reduces the user's input workload and the complexity of the system's input processing, improving the efficiency of itinerary settings. In response to a destination selection operation for any saved location item, the system displays a second travel booking interface, showing the second travel itinerary information planned for the user to navigate to the selected location. Based on the accurate destination selected by the user, the system can quickly call upon map navigation services for itinerary planning, avoiding itinerary planning errors caused by inaccurate destination information and reducing the resource consumption of repeated calculations and adjustments to the itinerary.
[0271] Furthermore, the travel itinerary settings interface is displayed within a sub-application of the social application providing travel services. When a user triggers a destination setting operation in the travel itinerary settings interface, the system displays an entry to the location favorites. This entry guides the user to select a destination through location favorites, improving the targeted nature of destination information retrieval. When a user triggers the favorites entry, the system verifies the user's login status in the sub-application. If the user is not logged in, the sub-application's authorization login interface is displayed, ensuring the user is logged in before displaying the location favorites. This login verification mechanism guarantees the security and accuracy of the favorites information, preventing unauthorized users from accessing and manipulating the location favorites. By allowing users to log in to the sub-application through a quick login method, the system can accurately display the user's location favorites, allowing users to quickly find and select destinations, reducing the resources consumed by the system to support unauthorized access and invalid operations, and improving the efficiency of itinerary settings.
[0272] Furthermore, the location favorites are displayed in descending order of user-created favorites. The system sorts the locations by the time they were saved, placing the most recently saved locations first. This sorting method aligns with user habits, as users typically focus on recently saved locations. When displaying the location favorites, the system can quickly generate the display order based on the time of saving, eliminating the need for additional sorting operations. When searching for a location, users can quickly locate their most recently saved locations, reducing search time and system resource consumption.
[0273] Furthermore, in response to a travel booking trigger, the system displays the trip settings interface. When a user triggers the start-point setting operation in the trip settings interface, the system displays the user's location favorites, showing at least one saved location item. Users can directly select a saved location from their favorites when setting the start-point, avoiding the tedious process of manually entering start-point information. The system quickly provides start-point options based on the location favorites index, reducing the user's input workload and the complexity of the system's input processing. In response to a start-point selection operation for any saved location item, the system resumes displaying the trip settings interface, showing the selected location as the trip start-point. The system quickly updates the trip start-point information without needing to re-acquire and process start-point data, improving the efficiency of trip setting. Once the trip destination is set, the system displays a third-party travel booking interface, showing the third-party travel information planned by the user from the trip start-point. Based on accurate start-point and destination information, the system can quickly call map navigation services for trip planning, reducing redundant calculations and adjustments caused by inaccurate information and saving system resources.
[0274] It should be noted that the user information (including but not limited to users' location favorites, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of related data must comply with relevant regulations.
[0275] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, artificial intelligence (AI) processors, etc., and are not limited to these.
[0276] The technical features of the above embodiments can be combined arbitrarily, and as long as the combination of these technical features does not contradict each other, it should be considered within the scope of this specification. The above embodiments only illustrate several implementation methods of this application, and their descriptions are relatively specific and detailed, but they should not be construed as limiting the scope of the invention patent. It should be noted that for those skilled in the art, several modifications and improvements can be made without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this patent application should be determined by the appended claims.
Claims
1. A location sharing based interaction method performed by a computer device, the method comprising: displaying, at a social application interface logged in as a user, location sharing information of a target location shared to the user; in response to a triggering operation on the location sharing information, displaying a first ride booking interface; in the first ride booking interface, displaying first ride information planned for the user to navigate to the target location; in the first ride booking interface, displaying a location collection option for the target location; and in response to a triggering operation on the location collection option, displaying, at the location collection option, a collected status mark indicating that the target location has been collected to a location collection folder of the user. 2.The method of claim 1, wherein the displaying, at a social application interface logged in as a user, location sharing information of a target location shared to the user comprises: displaying, at a social application interface logged in as a user, a session interface of a session participated by the user, wherein the session interface displays location sharing information of a target location shared to the user by a session member in the session; and the method further comprises: in response to an information viewing event of browsing the location sharing information indicated by the target location collected in the location collection folder, displaying the session interface, wherein the session interface displays location sharing information of a target location shared to the user by a session member in the session. 3.The method of claim 1 or 2, wherein the displaying, at a social application interface logged in as a user, location sharing information of a target location shared to the user comprises: displaying, at a social application interface logged in as a user, an information stream page of the user; and displaying, at the information stream page, location sharing information of a target location shared to the user. 4.The method of claim 3, wherein the displaying, at the information stream page, location sharing information of a target location shared to the user comprises: displaying, at the information stream page, a social user having a social relationship with the user, location sharing information of a target location shared to the user. 5.The method of claim 3 or 4, wherein the displaying, at the information stream page, location sharing information of a target location shared to the user comprises: displaying, at the information stream page, recommended content recommended for the user, wherein the recommended content displays location sharing information of a target location shared to the user. 6.The method of any one of claims 1 to 4, wherein the displaying, in response to a triggering operation on the location sharing information, a first ride booking interface comprises: in response to a triggering operation on the location sharing information, displaying a ride entry for indicating a ride to the target location; and in response to a triggering operation on the ride entry, displaying the first ride booking interface. 7.The method of any of claims 1-6, wherein the displaying, in the first travel ride reservation interface, the first travel trip information planned for the user to navigate to the target location comprises: displaying, in the first travel ride reservation interface, the first travel trip information planned for the user to navigate to the target location with the target location as a trip destination and a location of the user as a trip starting point. 8.The method of claim 7, further comprising: in response to a location selection operation for the trip starting point, displaying the first travel trip information planned for the user to navigate to the target location with a location selected by the location selection operation as a new trip starting point and the target location as a trip destination. 9.The method of any of claims 1-8, wherein the displaying, in the first travel ride reservation interface, the location collection option for the target location comprises: displaying, in the first travel ride reservation interface, the location collection option for the target location at the trip destination in the first travel trip information. 10.The method of any of claims 1-9, further comprising: displaying, in the first travel ride reservation interface, a starting point collection option pointing to the trip starting point in the first travel trip information; and in response to a trigger operation for the starting point collection option, displaying a collected status mark at the starting point collection option indicating that the starting point has been collected to a location collection folder of the user. 11.The method of claim 10, wherein the displaying, in the first travel ride reservation interface, the starting point collection option pointing to the trip starting point in the first travel trip information comprises: displaying, in the first travel ride reservation interface, the starting point collection option pointing to the trip starting point at the trip starting point in the first travel trip information. 12.The method of any of claims 1-11, wherein the first travel ride reservation interface is displayed in a sub-application of a social application providing travel services, and wherein the displaying, in response to the trigger operation for the location collection option, the collected status mark at the location collection option indicating that the target location has been collected to the location collection folder of the user comprises: in response to the trigger operation for the location collection option, displaying an authorized login interface of the sub-application in a case that the user is not logged in the sub-application; and in response to an authorized confirmation operation triggered at the authorized login interface, displaying the collected status mark at the location collection option indicating that the target location has been collected to the location collection folder of the user. 13.The method of any of claims 1-12, further comprising: in response to a travel ride reservation trigger operation, displaying a travel trip setting interface; and in response to a destination setting operation triggered at the travel trip setting interface, displaying a location collection folder of the user, wherein at least one collected location item indicating a location that has been collected by the user is displayed in the location collection folder. display a second ride-hailing reservation interface in response to a destination selection operation on any of the collected location items; in the second ride-hailing reservation interface, display second ride trip information for the user to navigate to the location selected by the destination selection operation, the second ride trip information being for the user to reserve a ride.
14. The method of claim 13, wherein the ride trip setting interface is displayed in a sub-application of a social application providing a ride service; and in response to a destination setting operation triggered in the ride trip setting interface, display a location collection folder of the user, comprising: in response to a destination setting operation triggered in the ride trip setting interface, display a collection entry indicating the location collection folder; in response to a trigger operation on the collection entry, display an authorized login interface of the sub-application in a case that the user is not logged in the sub-application; in response to an authorized confirmation operation triggered in the authorized login interface, display the location collection folder of the user.
15. The method of claim 13 or 14, wherein in the location collection folder, display at least one collected location item indicating a location that has been collected by the user, comprising: in the location collection folder, display at least one collected location item indicating a location that has been collected by the user in a descending order of collection by the user.
16. The method of any of claims 1 to 15, further comprising: in response to a ride reservation trigger operation, display a ride trip setting interface; in response to a starting point setting operation triggered in the ride trip setting interface, display a location collection folder of the user, in which at least one collected location item indicating a location that has been collected by the user is displayed; in response to a starting point selection operation on any of the collected location items, display the ride trip setting interface again, and in the ride trip setting interface, display the location selected by the starting point selection operation as a trip starting point; in response to a trip destination setting completion, display a third ride-hailing reservation interface, in which third ride trip information for the user to navigate from the trip starting point is displayed, the third ride trip information being for the user to reserve a ride.
17. An interactive device based on location sharing, the device comprising: a location display module configured to display location sharing information of a target location shared to a user in a social application interface in which the user is logged in; a ride reservation module configured to display a first ride-hailing reservation interface in response to a trigger operation on the location sharing information; a trip display module configured to display first ride trip information for the user to navigate to the target location in the first ride-hailing reservation interface; a collection indication module configured to display a location collection option for the target location in the first ride-hailing reservation interface. The location collection module is configured to display, in response to a triggering operation for the location collection option, a collected state mark indicating that the target location has been collected to a location collection folder of the user at the location collection option. 18.A computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements steps of the method in any one of claims 1 to 16 when executing the computer program. 19.A computer readable storage medium, having stored thereon a computer program, wherein the computer program, when executed by a processor, implements steps of the method in any one of claims 1 to 16. 20.A computer program product, comprising a computer program, wherein the computer program, when executed by a processor, implements steps of the method in any one of claims 1 to 16.