Method, system, device and storage medium for displaying multiple traffic plans
By using a two-dimensional coordinate system to display the clustering method of transportation options on the online travel platform, the problem of low efficiency among users when comparing transportation options is solved and a simpler and more efficient selection process is achieved.
Patent Information
- Application Number
- CN202010773017.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-08-04
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2040-08-04
AI Technical Summary
When existing online travel platforms display multiple transportation options, users need to frequently switch modes of transportation to compare time-consuming and price-consuming options, resulting in inefficient ticket purchasing and laborious selection.
Using a two-dimensional coordinate system display method, transportation plans are clustered according to price and time consumption. Users can click on the icon in the first display area to select the desired plan. The second display area displays detailed information and operates through sliding and clicking. Filter and switch.
It improves the efficiency and convenience for users to choose transportation options, enables users to quickly find satisfactory transportation options, and reduces the difficulty of purchasing tickets.
Smart Images

Figure CN111915404B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a method, system, device and storage medium for displaying multiple groups of traffic plans. Background Art
[0002] In recent years, online travel platforms have developed rapidly, and users are increasingly accustomed to purchasing travel tickets or air tickets on online travel platforms. After the user enters the destination B for search, the online travel platform displays multiple transportation options or combined transportation options from departure point A to destination B. However, in the prior art, when the online travel platform displays, Figure 1 As shown, different means of transportation are usually designed for selection in the top navigation bar, and then all the optional transportation options corresponding to the means of transportation are displayed in a list below the navigation bar, including multiple dimensions such as starting time, arrival time, time consumption, price, etc.
[0003] When users are more concerned about two dimensions, such as time consumption and price, they need to switch between different means of transportation in the navigation bar first, and then compare the time consumption and price comprehensively to find a transportation plan that satisfies them. This makes users' ticket purchasing efficiency low and the comparison and selection process extremely laborious. Summary of the invention
[0004] In view of the problems in the prior art, the purpose of the present invention is to provide a method, system, device and storage medium for displaying multiple groups of transportation plans, so as to solve the problem that the existing method for displaying multiple groups of transportation plans leads to low efficiency in ticket purchasing for users and extremely high difficulty in comparison and selection.
[0005] To achieve the above object, the present invention provides a method for displaying multiple groups of traffic plans, wherein a first display area and a second display area are provided on a display page, wherein the first display area is displayed in the form of a two-dimensional coordinate system, and the method comprises the following steps:
[0006] Get the departure and destination information entered by the user;
[0007] Determine multiple groups of transportation plans between the departure place and the destination according to the departure place information and the destination information;
[0008] Clustering the multiple groups of traffic plans in the first display area, and displaying the clustered results in the form of icons in the first display area;
[0009] Based on a user's click operation on the icon in the first display area, setting the clicked icon to a selected state;
[0010] All traffic solutions included in the selected icon are displayed in the second display area in a first preset form.
[0011] Preferably, before clustering, each group of traffic solutions corresponds to a dot in the first display area, and clustering the multiple groups of traffic solutions in the first display area includes:
[0012] S301, randomly determining a first preset number of points as initial center points from the points corresponding to all traffic plans;
[0013] S302, calculating the distances from all the points except the initial center point to the initial center point;
[0014] S303, classifying the dots whose distance is less than the first preset threshold and the corresponding initial center points into one category, and calculating the second center point corresponding to the category after classification;
[0015] S304, repeating steps S302 and S303 until the second center point does not change, and the obtained second center point is the icon in the clustering result.
[0016] Preferably, the method further comprises the steps of:
[0017] Determining whether a first vertical sliding operation of the user at the boundary between the first display area and the second display area is received;
[0018] If yes, the lower boundary of the first display area is moved upward, and the icons in the first display area are arranged and displayed in the same row at the top of the first display area, so that the vertical length of the second display area is increased;
[0019] The longitudinal direction is a direction from the second display area to the first display area.
[0020] Preferably, the method further comprises the steps of:
[0021] Collecting the horizontal sliding speed of the user in the first display area;
[0022] When the horizontal sliding speed is greater than the first sliding speed, all icons in the first display area are displayed flatly in the form of a floating layer;
[0023] A click operation of the user in the floating layer is received, the floating layer is exited, and the traffic scheme contained in the icon selected based on the click operation is displayed in the second display area.
[0024] Preferably, the method further comprises the steps of:
[0025] Collecting the vertical sliding speed of the user in the second display area;
[0026] When the longitudinal sliding speed is greater than the second sliding speed, the lower boundary of the first display area is moved upward, and the icons in the first display area are arranged and displayed in the same row at the top of the first display area, so that the longitudinal length of the second display area is increased.
[0027] Preferably, the method further comprises the steps of:
[0028] Receiving a continuous pressing operation by a user on a screen of a terminal device, wherein the continuous pressing operation forms a cutout area;
[0029] Cutting the shape of the first display area according to the cut-off area;
[0030] The first display area remaining after the cutout is displayed.
[0031] Preferably, the first preset format is to display the transportation scheme in a manner of arranging multiple items vertically, each item corresponding to the transportation scheme, and each item including the type of transportation tool, time consumption, price, departure time and arrival time corresponding to the transportation scheme; the types of transportation tools include airplanes, high-speed trains, motor trains, ordinary trains and cars;
[0032] Different items in the second display area are switched between different traffic solutions through a second longitudinal sliding operation.
[0033] Preferably, the two-dimensional coordinate system includes a first dimension and a second dimension, the first dimension is a horizontal coordinate and includes a first maximum value max1 and a first minimum value min1; the second dimension is a vertical coordinate and includes a second maximum value max2 and a second minimum value min2;
[0034] The length of the icon in the first display area is x=[(max1-min1) / (m-1)]*2.5, and the width is y=[(max2-min2) / (n-1)];
[0035] Among them, m is the number of intervals formed after segmentation in the first dimension, and n is the number of intervals formed after segmentation in the second dimension.
[0036] Preferably, the first dimension is the price, and the second dimension is the time consumption.
[0037] Preferably, the information displayed by the icon in the first display area includes the type of transportation, time consumption and price.
[0038] The present invention also provides a system for displaying multiple traffic schemes, which is used to implement the method for displaying multiple traffic schemes. The system includes:
[0039] An information acquisition module is used to obtain the departure place information and destination information input by the user;
[0040] A traffic plan determination module, used to determine multiple groups of traffic plans between the departure place and the destination according to the departure place information and the destination information;
[0041] An aggregation display module, used for clustering the plurality of traffic schemes in the first display area, and displaying the clustered results in the form of icons in the first display area;
[0042] A first operation module, configured to set the clicked icon to a selected state based on a user's click operation on the icon in the first display area;
[0043] The second operating module is used to display all the traffic solutions included in the selected icon in the second display area in a first preset form.
[0044] The present invention also provides a display device for multiple groups of traffic plans, including:
[0045] processor;
[0046] a memory storing executable instructions of the processor;
[0047] The processor is configured to execute the steps of any one of the above-mentioned methods for displaying multiple groups of traffic solutions by executing the executable instructions.
[0048] The present invention also provides a computer-readable storage medium for storing a program, wherein when the program is executed, the steps of any one of the above-mentioned methods for displaying multiple groups of traffic plans are implemented.
[0049] Compared with the prior art, the present invention has the following advantages and outstanding effects:
[0050] The method, system, device and storage medium for displaying multiple groups of transportation plans provided by the present invention set a first display area in the form of a two-dimensional coordinate system on a display page, clusters all transportation plans according to the first dimension and the second dimension in the two-dimensional coordinate system, and displays them as icons in the above-mentioned first display area; so that users can intuitively overview all transportation plans and quickly select the ones they need, and all transportation plans contained in the selected icon are specifically displayed in the second display area of the same page, making the process of users selecting travel transportation plans simpler and more efficient, and improving the efficiency of users purchasing tickets. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] Other features, objectives and advantages of the present invention will become more apparent from a reading of the detailed description of non-limiting embodiments made with reference to the following accompanying drawings.
[0052] Figure 1 It is a schematic diagram of a display page of multiple groups of traffic solutions in the prior art;
[0053] Figure 2 A schematic diagram of a method for displaying multiple groups of traffic solutions disclosed in an embodiment of the present invention;
[0054] Figure 3 A schematic diagram of a display page for multiple groups of traffic solutions disclosed in an embodiment of the present invention;
[0055] Figure 4 A schematic diagram of another display page for multiple groups of traffic solutions disclosed in an embodiment of the present invention;
[0056] Figure 5 A schematic diagram of another method for displaying multiple groups of traffic solutions disclosed in an embodiment of the present invention;
[0057] Figure 6 A schematic diagram of the structure of a display system for multiple groups of traffic solutions disclosed in an embodiment of the present invention;
[0058] Figure 7 A schematic diagram of the structure of a display device for multiple groups of traffic solutions disclosed in an embodiment of the present invention;
[0059] Figure 8 A schematic diagram of the structure of a computer-readable storage medium disclosed in an embodiment of the present invention. DETAILED DESCRIPTION
[0060] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that the present invention will be comprehensive and complete and fully convey the concepts of the example embodiments to those skilled in the art. The same reference numerals in the figures represent the same or similar structures, and thus their repeated description will be omitted.
[0061] like Figure 2 As shown, an embodiment of the present invention discloses a method for displaying multiple groups of traffic plans, the method comprising the following steps:
[0062] S10, obtaining the departure place information and destination information input by the user. That is, the user can input or select the departure place information and destination information on the search page of the terminal device. The search page provides a search button. When the user clicks the search button, the departure place information and destination information can be obtained.
[0063] S20, based on the above departure information and destination information, determine multiple groups of transportation plans between the departure and destination. Specifically, when the user clicks the search button, the terminal device jumps from the search page to the following Figure 3 The display page shown. The display page is provided with a first display area 301 and a second display area 302. The first display area 301 and the second display area 302 are arranged along the length extension direction of the user terminal or the display page. For example, referring to Figure 3 The length extension direction of the display page is the longitudinal direction, and the second display area 302 is below the first display area 301.
[0064] The first display area 301 is displayed in the form of a two-dimensional coordinate system. The two-dimensional coordinate system in the first display area 301 includes a first dimension and a second dimension. The first dimension can be a horizontal coordinate, and the second dimension can be a vertical coordinate. Among them, the first dimension, that is, the horizontal coordinate, can be a price, and the second dimension, that is, the vertical coordinate, can be time-consuming, and this application does not limit this. In this way, the two-dimensional coordinate system is used to intuitively display the traffic plans that can be selected by the user after being divided according to two dimensions, so that the user can quickly select what he needs, improve the efficiency of the user's selection operation, and save the user's time.
[0065] S30, clustering the above-mentioned multiple groups of transportation plans in the above-mentioned first display area 301, and displaying the clustered results in the form of icons 303 in the above-mentioned first display area 301. Specifically, before clustering, each group of transportation plans corresponds to a dot in the first display area 301, that is, after positioning each group of transportation plans according to the first dimension and the second dimension, it is represented by a dot in the two-dimensional coordinate system. Moreover, after clustering, an icon 303 can display multiple types of transportation tools, not limited to displaying only one type of transportation tool. For example, Figure 3 The icons 303 in the first display area 301 include ordinary trains, motor trains, cars and other transportation tools. In this embodiment, the information displayed by the icons 303 in the first display area 301 includes the types of transportation tools, time consumption and prices. However, the present application is not limited thereto.
[0066] Step S30 includes:
[0067] S301: Randomly determine a first preset number of dots as initial center points from the dots corresponding to all traffic plans. For example, randomly determine four dots as initial center points.
[0068] S302, calculating the distance from all the points except the initial center point to the initial center point. The distance may be a Euclidean distance, and the calculation process can be implemented using existing technology, which will not be described in detail in this embodiment.
[0069] S303, classify the dots whose distance is less than the first preset threshold and the corresponding initial center point into one category, and calculate the second center point corresponding to the category after classification. The first preset threshold can be set according to actual needs, for example, it can be 30. When determining the second center point, the horizontal coordinate and the vertical coordinate of the second center point can be obtained by average value calculation. For example, the horizontal coordinate of the second center point can be the average value of the horizontal coordinates of all dots that meet the requirements and the horizontal coordinate of the initial center point, and the vertical coordinate of the second center point can be the average value of the vertical coordinates of all dots that meet the requirements and the vertical coordinate of the initial center point.
[0070] S304, repeating steps S302 and S303 until the second center point does not change, and the obtained second center point is icon 303 in the clustering result. Specifically, in the process of repeatedly executing steps S302 and S303, the second center point is continuously updated. When the horizontal coordinate and the vertical coordinate of the second center point no longer change, it means that the second center point no longer changes.
[0071] S40, based on the user's click operation on the icon 303 in the first display area 301, the clicked icon 303 is set to a selected state. When the user clicks the icon 303, multiple selections can be made, for example, two icons 303 or three icons 303 are selected. Then, in the second display area, all the transportation schemes corresponding to the selected icon 303 are arranged and displayed in a certain order, for example, Figure 3 Display in order of price from lowest to highest.
[0072] S50, displaying all the traffic solutions included in the selected icon 303 in the second display area 302 in a first preset format.
[0073] In this embodiment, the first preset form is to display the above-mentioned transportation scheme in the form of multiple items 304 arranged vertically, that is, to display them in the form of a list. Each item 304 corresponds to the above-mentioned transportation scheme, and each item 304 contains the type of transportation, time consumption, price, departure time and arrival time corresponding to the transportation scheme. The above-mentioned transportation types include airplanes, high-speed trains, motor trains, ordinary trains and cars. The different items 304 in the above-mentioned second display area 302 are switched between different transportation schemes through the second vertical sliding operation. For example, referring to Figure 3 In the transportation plan corresponding to item 304, the transportation type is ordinary express, the departure time is 12:15, the arrival time is 10:50 the next day, the time taken is 22 hours and 35 minutes, and the price is 156.5 yuan.
[0074] In this embodiment, the first dimension, i.e., the horizontal coordinate, includes the first maximum value max1 and the first minimum value min1. The second dimension, i.e., the vertical coordinate, includes the second maximum value max2 and the second minimum value min2. Figure 3 , the first maximum value of the horizontal axis is 1610, and the first minimum value is 150. The second maximum value of the vertical axis is 23 hours, and the minimum value is 2 hours.
[0075] Then, the length of the icon 303 in the first display area 301 is x=[(max1-min1) / (m-1)]*2.5, and the width is y=[(max2-min2) / (n-1)]. The icon size obtained in this way maximizes the reasonable use of the space of the first display area 301 without affecting the visual perception of the user.
[0076] Among them, m is the number of intervals formed after segmentation in the above first dimension, and n is the number of intervals formed after segmentation in the above second dimension.
[0077] In another embodiment of the present application, the above method further includes the steps of:
[0078] S60, determining whether a first vertical sliding operation of the user at the junction of the first display area 301 and the second display area 302 is received. In the present application, the first vertical sliding operation is an upward sliding operation. Figure 3 Jump to the display page Figure 4 The display page shown.
[0079] S70, if yes, then move the lower boundary of the first display area 301 upwards, and arrange and display the icons 303 in the first display area 301 in the same row at the top of the first display area 301, so that the vertical length of the second display area 302 is increased. That is, after the user completes the selection in the first display area 301, the space of the second display area 302 can be increased by sliding up, so that there is more space to display the traffic solutions in the second display area 302, which is convenient for the user to select and improves the convenience of the user's operation when selecting.
[0080] The longitudinal direction is a direction from the second display area 302 to the first display area 301 , that is, a length extension direction of the user terminal device.
[0081] When the user needs to change the transportation scheme selected in the first display area 301 for the first time, and the number of clustered icons 303 is large, it is inconvenient for the user to select. And when the display in the first display area 301 is crowded, all icons 303 can be displayed in a pop-up floating layer to facilitate user selection and improve convenience. That is, the above method also includes the steps of:
[0082] S80, collecting the horizontal sliding speed of the user in the first display area 301.
[0083] S90, when the horizontal sliding speed is greater than the first sliding speed, all icons 303 in the first display area 301 are displayed in a floating layer. The first sliding speed can be preset as needed.
[0084] S100 , receiving a click operation of the user in the floating layer, exiting the floating layer, and displaying the traffic plan included in the icon 303 selected based on the click operation in the second display area 302 .
[0085] In another embodiment of the present application, Figure 5 As shown, based on the above embodiment, the above step S60 further includes: collecting the longitudinal sliding speed of the user in the above second display area 302, and determining whether the longitudinal sliding speed is greater than the second sliding speed.
[0086] The above step S70 includes:
[0087] When the vertical sliding speed is greater than the second sliding speed and / or the first vertical sliding operation is detected, the lower boundary of the first display area 301 is moved upward, and the icons 303 in the first display area 301 are arranged and displayed in the same row at the top of the first display area 301, so that the vertical length of the second display area 302 is increased. Otherwise, no operation is performed, that is, the process ends. The second sliding speed can be preset as needed.
[0088] In another embodiment of the present application, the above method further includes the steps of:
[0089] A continuous pressing operation by a user on the screen of the terminal device is received, and the continuous pressing operation forms a clipping area. For example, if the user draws a circle on the screen through the continuous pressing operation, the corresponding clipping area is the circle.
[0090] The shape of the first display area 301 is cut according to the cut area. Specifically, for example, if the cut area is a circle, only the area within the circle is retained in the first display area 301, and the area outside the circle is discarded.
[0091] The remaining first display area 301 after the cutout is displayed. The portion of the cutout area that is retained fills the entire first display area, and compared with before the cutout, the portion of the area is enlarged and displayed.
[0092] In this way, the user can select a suitable area according to his / her needs, and then only display the suitable area, making full use of the limited space, increasing the unit display area of the original icon 303, making it more intuitive for the user to watch and more convenient to select.
[0093] In the present application, the user can also perform preset operations on a certain area of the first display area 301, such as double-clicking, to achieve enlarged display, which is convenient for the user to make intuitive selections.
[0094] like Figure 6 As shown, the embodiment of the present invention further discloses a display system 6 for multiple groups of traffic plans, wherein a first display area and a second display area are provided on a display page, wherein the first display area is displayed in the form of a two-dimensional coordinate system, and the system comprises:
[0095] The information acquisition module 61 is used to acquire the departure place information and destination information input by the user;
[0096] The traffic plan determination module 62 is used to determine multiple groups of traffic plans between the departure place and the destination according to the departure place information and the destination information;
[0097] An aggregation display module 63, used for clustering the plurality of traffic schemes in the first display area, and displaying the clustered results in the form of icons in the first display area;
[0098] A first operation module 64, configured to set the clicked icon to a selected state based on a user's click operation on the icon in the first display area;
[0099] The second operating module 65 is used to display all the traffic solutions included in the selected icon in the second display area in a first preset form.
[0100] It is understandable that the display system for multiple traffic schemes of the present invention also includes other existing functional modules that support the operation of the display system for multiple traffic schemes. Figure 6 The display system of multiple groups of traffic solutions is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0101] The display system for multiple groups of traffic plans in this embodiment is used to implement the above-mentioned method for displaying multiple groups of traffic plans. Therefore, the specific implementation steps of the display system for multiple groups of traffic plans can refer to the above-mentioned description of the method for displaying multiple groups of traffic plans, which will not be repeated here.
[0102] An embodiment of the present invention also discloses a display device for multiple groups of traffic plans, including a processor and a memory, wherein the memory stores executable instructions of the processor; the processor is configured to execute the steps in the above-mentioned method for displaying multiple groups of traffic plans by executing the executable instructions. Figure 7 This is a schematic diagram of the structure of the display device of multiple traffic solutions disclosed in the present invention. Figure 7The electronic device 600 according to this embodiment of the present invention is described. Figure 7 The electronic device 600 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0103] like Figure 7 As shown, the electronic device 600 is in the form of a general computing device. The components of the electronic device 600 may include, but are not limited to: at least one processing unit 610, at least one storage unit 620, a bus 630 connecting different platform components (including the storage unit 620 and the processing unit 610), a display unit 640, etc.
[0104] The storage unit stores program codes, which can be executed by the processing unit 610, so that the processing unit 610 executes the steps of various exemplary embodiments of the present invention described in the above-mentioned method for displaying multiple groups of traffic schemes in this specification. For example, the processing unit 610 can execute the following steps: Figure 1 Follow the steps shown in .
[0105] The storage unit 620 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 6201 and / or a cache memory unit 6202 , and may further include a read-only memory unit (ROM) 6203 .
[0106] The storage unit 620 may also include a program / utility 6204 having a set (at least one) of program modules 6205, such program modules 6205 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.
[0107] Bus 630 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
[0108] The electronic device 600 may also communicate with one or more external devices 700 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 600, and / or communicate with any device that enables the electronic device 600 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 650. Furthermore, the electronic device 600 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 660. The network adapter 660 may communicate with other modules of the electronic device 600 via a bus 630. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 600, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage platforms, etc.
[0109] The present invention also discloses a computer-readable storage medium for storing a program, which implements the steps in the method for displaying multiple groups of traffic plans when executed. In some possible implementations, various aspects of the present invention can also be implemented in the form of a program product, which includes a program code. When the program product is run on a terminal device, the program code is used to enable the terminal device to execute the steps of various exemplary implementations of the present invention described in the method for displaying multiple groups of traffic plans in this specification.
[0110] As shown above, when the program of the computer-readable storage medium of this embodiment is executed, a first display area in the form of a two-dimensional coordinate system is set on the display page, and all transportation plans are clustered according to the first dimension and the second dimension in the two-dimensional coordinate system, and then displayed as icons in the above-mentioned first display area; so that the user can intuitively overview all transportation plans and quickly select the required ones, and all transportation plans contained in the selected icon are specifically displayed in the second display area of the same page, making the process of users selecting travel transportation plans simpler and more efficient, thereby improving the efficiency of users' ticket purchases.
[0111] Figure 8 Schematic diagram of the structure of the computer-readable storage medium of the present invention. Figure 8 As shown, a program product 800 for implementing the above method according to an embodiment of the present invention is described, which can adopt a portable compact disk read-only memory (CD-ROM) and include program code, and can be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited thereto. In this document, a readable storage medium can be any tangible medium containing or storing a program, which can be used by or in combination with an instruction execution system, an apparatus or a device.
[0112] The program product may use any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0113] Computer readable storage media may include data signals propagated in baseband or as part of a carrier wave, wherein readable program codes are carried. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. The readable storage medium may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, device, or device. The program codes contained on the readable storage medium may be transmitted using any suitable medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination thereof.
[0114] Program code for performing the operations of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., through the Internet using an Internet service provider).
[0115] The method, system, device and storage medium for displaying multiple groups of transportation plans provided by the embodiments of the present invention set a first display area in the form of a two-dimensional coordinate system on the display page, clusters all transportation plans according to the first dimension and the second dimension in the two-dimensional coordinate system, and displays them as icons in the above-mentioned first display area; so that the user can intuitively overview all transportation plans and quickly select the ones they need, and all transportation plans contained in the selected icon are specifically displayed in the second display area of the same page, making the process of users selecting travel transportation plans simpler and more efficient, thereby improving the efficiency of users purchasing tickets.
[0116] The above contents are further detailed descriptions of the present invention in combination with specific preferred embodiments, and it cannot be determined that the specific implementation of the present invention is limited to these descriptions. For ordinary technicians in the technical field to which the present invention belongs, several simple deductions or substitutions can be made without departing from the concept of the present invention, which should be regarded as falling within the protection scope of the present invention.
Claims
1. A method for displaying multiple groups of traffic plans, It is characterized in that The display page is provided with a first display area and a second display area, the first display area is displayed in the form of a two-dimensional coordinate system, and the method comprises the following steps: Get the departure and destination information entered by the user; Determine multiple groups of transportation plans between the departure place and the destination according to the departure place information and the destination information; Clustering the multiple groups of traffic plans in the first display area, and displaying the clustered results in the form of icons in the first display area; Based on a user's click operation on the icon in the first display area, setting the clicked icon to a selected state; Displaying all the transportation solutions included in the selected icon in the second display area in a first preset form; The method further comprises the steps of: Determining whether a first vertical sliding operation of the user at the boundary between the first display area and the second display area is received; If yes, the lower boundary of the first display area is moved upward, and the icons in the first display area are arranged and displayed in the same row at the top of the first display area, so that the vertical length of the second display area is increased; The longitudinal direction is the direction from the second display area to the first display area; The method further comprises the steps of: Collecting the horizontal sliding speed of the user in the first display area; When the horizontal sliding speed is greater than the first sliding speed, all icons in the first display area are displayed flatly in the form of a floating layer; receiving a click operation of the user in the floating layer, exiting the floating layer, and displaying the traffic solution contained in the icon selected by the click operation in the second display area; The method further comprises the steps of: Collecting the vertical sliding speed of the user in the second display area; When the longitudinal sliding speed is greater than the second sliding speed, the lower boundary of the first display area is moved upward, and the icons in the first display area are arranged and displayed in the same row at the top of the first display area, so that the longitudinal length of the second display area is increased; The first preset format is to display the transportation plan in a manner of arranging multiple items vertically, each item corresponding to the transportation plan, and each item including the type of transportation tool, time consumption, price, departure time and arrival time corresponding to the transportation plan; the types of transportation tools include airplanes, high-speed trains, motor trains, ordinary trains and cars; The different items in the second display area are switched between different transportation solutions through a second longitudinal sliding operation; The two-dimensional coordinate system includes a first dimension and a second dimension, the first dimension is a horizontal coordinate and includes a first maximum value max1 and a first minimum value min1; the second dimension is a vertical coordinate and includes a second maximum value max2 and a second minimum value min2; The length of the icon in the first display area is x=[(max1-min1) / (m-1)]*2.5, and the width is y=[(max2-min2) / (n-1)]; Among them, m is the number of intervals formed after segmentation in the first dimension, and n is the number of intervals formed after segmentation in the second dimension.
2. The method for displaying multiple groups of traffic plans as claimed in claim 1, It is characterized in that Before clustering, each group of traffic solutions corresponds to a dot in the first display area, and clustering the multiple groups of traffic solutions in the first display area includes: S301, randomly determining a first preset number of points as initial center points from the points corresponding to all traffic plans; S302, calculating the distances from all the points except the initial center point to the initial center point; S303, classifying the dots whose distance is less than the first preset threshold and the corresponding initial center points into one category, and calculating the second center point corresponding to the category after classification; S304, repeating steps S302 and S303 until the second center point does not change, and the obtained second center point is the icon in the clustering result.
3. The method for displaying multiple groups of traffic plans as claimed in claim 1, It is characterized in that The method further comprises the steps of: Receiving a continuous pressing operation by a user on a screen of a terminal device, wherein the continuous pressing operation forms a clipping area; Cutting the shape of the first display area according to the cut-off area; The remaining first display area after the cutout is displayed.
4. The method for displaying multiple groups of traffic plans as claimed in claim 1, It is characterized in that The first dimension is the price, and the second dimension is the time consumption.
5. The method for displaying multiple groups of traffic plans as claimed in claim 1, It is characterized in that The information displayed by the icon in the first display area includes the type of transportation, time consumption and price.
6. A system for displaying multiple traffic plans, used to implement the method for displaying multiple traffic plans as claimed in claim 1, It is characterized in that The system comprises: An information acquisition module is used to obtain the departure place information and destination information input by the user; A traffic plan determination module, used to determine multiple groups of traffic plans between the departure place and the destination according to the departure place information and the destination information; An aggregation display module, used for clustering the plurality of traffic schemes in the first display area, and displaying the clustered results in the form of icons in the first display area; A first operation module, configured to set the clicked icon to a selected state based on a user's click operation on the icon in the first display area; The second operating module is used to display all the traffic solutions included in the selected icon in the second display area in a first preset form.
7. A display device for multiple traffic schemes, It is characterized in that include: processor; a memory storing executable instructions of the processor; The processor is configured to execute the steps of the method for displaying multiple groups of traffic plans as described in any one of claims 1 to 5 by executing the executable instructions.
8. A computer-readable storage medium for storing a program, It is characterized in that When the program is executed, the steps of the method for displaying multiple groups of traffic plans as described in any one of claims 1 to 5 are implemented.
