WO2019076216A1 - Search method and device - Google Patents

Search method and device Download PDF

Info

Publication number
WO2019076216A1
WO2019076216A1 PCT/CN2018/109581 CN2018109581W WO2019076216A1 WO 2019076216 A1 WO2019076216 A1 WO 2019076216A1 CN 2018109581 W CN2018109581 W CN 2018109581W WO 2019076216 A1 WO2019076216 A1 WO 2019076216A1
Authority
WO
WIPO (PCT)
Prior art keywords
destination
route
departure
combination
target
Prior art date
Application number
PCT/CN2018/109581
Other languages
French (fr)
Chinese (zh)
Inventor
胡倩颖
张琰
Original Assignee
阿里巴巴集团控股有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 阿里巴巴集团控股有限公司 filed Critical 阿里巴巴集团控股有限公司
Publication of WO2019076216A1 publication Critical patent/WO2019076216A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0631Item recommendations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9537Spatial or temporal dependent retrieval, e.g. spatiotemporal queries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions

Definitions

  • the present application relates to the field of data processing technologies, and in particular, to a method for searching for travel route information and a search device for travel route information.
  • embodiments of the present application have been made in order to provide a search method and a search device that overcome the above problems or at least partially solve the above problems.
  • a search method including:
  • the search request includes at least one departure place and at least one destination;
  • the search obtains corresponding travel route information.
  • the number of the departure places is m
  • the number of the destinations is n
  • the m and n are positive integers.
  • the step of combining the one-way route combination by using the departure place and the destination includes:
  • the outbound route combination is used as a one-way route combination.
  • the step of combining the departure route and the destination to combine a round trip route comprises:
  • the combination of the forward route combination and the return route is combined as a round trip route.
  • the step of combining the departure route and the destination to combine the notch path routes comprises:
  • the two target departure locations include a first departure place and a second departure Land
  • the two target departure locations including a third departure place and a fourth Starting point
  • the two target destinations include a third target destination and a fourth target destination
  • the first round trip route combination, the second round trip route combination, and/or the third round trip route combination are combined as a gap path route.
  • the method before the step of combining the departure route and the destination to combine the gap path routes, the method further includes:
  • the step of combining the departure route and the destination to combine the notch path combinations is performed.
  • the method further includes:
  • the departure place is a neighboring place, and/or the destination is a neighboring place, performing the step of combining the departure route and the destination to combine the notch path combinations.
  • the method further includes:
  • the step of combining the departure route and the destination combination gap route is performed.
  • the method further includes:
  • the target travel route information is determined based on the sort result, and the target travel route information is recommended to the user.
  • the method further comprises:
  • the departure place and the destination, and the travel route information corresponding to the departure place and the destination are cached.
  • the application also discloses a search method, including:
  • the step of acquiring at least one origin and at least one destination input or selected by the user comprises:
  • the application also discloses a search method, including:
  • the step of generating a search request based on the origin and destination and transmitting to the server includes:
  • the search request is generated by using the outbound route combination and sent to the server; wherein the search request further includes time information input by the user.
  • the method further includes:
  • the target travel route information is determined based on the sort result, and the target travel route information is displayed on the client's page.
  • the displaying the target travel route information on the page of the client includes:
  • the form is one or more
  • the table is switched according to user operations to display target travel route information in different forms.
  • the application also discloses a search device, including:
  • a search request receiving module configured to receive a search request for travel route information sent by the client; the search request includes a departure place and a destination;
  • a route combination module configured to combine a route combination by using the departure place and the destination
  • the travel route information search module is configured to trigger the search to obtain the corresponding travel route information by using the route combination.
  • the application also discloses a search device, including:
  • a location obtaining module configured to acquire at least one origin and at least one destination input or selected by the user
  • a search request generating module configured to generate a search request by using the origin and destination, and send the request to the server;
  • the travel route information receiving module is configured to receive travel route information that is fed back by the server based on the search request.
  • the application also discloses a search device, including:
  • a search interface providing module for providing a search interface in which an input or selection area for entering or selecting an area and a destination for providing at least one departure place, The input or selection area of the destination is used to acquire at least one destination;
  • a location receiving module configured to receive at least one origin and at least one destination input or selected by the user
  • a search request sending module configured to generate a search request by using the origin and destination, and send the request to the server;
  • the travel route information receiving module is configured to receive the appearance route information that is fed back by the server based on the search request.
  • one or more route combinations can be automatically combined based on the input departure place and the destination, and further It is also possible to trigger a search separately based on the combination of routes to obtain corresponding travel route information.
  • the application of the embodiment of the present application can trigger multiple searches at one time, and only need to click once for the user to trigger. Compared with the prior art, it is not necessary to input the departure place and the destination multiple times, and then click multiple times to trigger separately.
  • the user operation is reduced, and the search of all the route combinations can be completed at one time and the corresponding travel route information can be obtained, which improves the search efficiency, so that the user can obtain the travel route information of different route combinations at the same time, which is convenient for the user to perform.
  • the comparison of travel route information of different route combinations improves the user experience.
  • Embodiment 1 is a flow chart showing the steps of Embodiment 1 of a method for searching for travel route information according to the present application;
  • FIG. 2 is a schematic diagram of a process of searching for travel route information on a ticket app of the present application
  • FIG. 3 is a schematic diagram of selecting a departure place multiple times on a ticket app of the present application
  • Embodiment 4 is a flow chart showing the steps of Embodiment 2 of a method for searching for travel route information according to the present application;
  • Figure 5 is a schematic illustration of a route combination of the present application.
  • FIG. 6 is a schematic diagram of a result of a ticket search of the present application.
  • FIG. 7 is a second schematic diagram of the result of a ticket search of the present application.
  • Figure 8 is a third schematic diagram of the results of a ticket search of the present application.
  • Embodiment 9 is a flow chart showing the steps of Embodiment 3 of a method for searching for travel route information according to the present application.
  • Embodiment 4 is a flow chart showing the steps of Embodiment 4 of a method for searching for travel route information according to the present application;
  • Embodiment 11 is a structural block diagram of Embodiment 1 of a search device for traveling route information according to the present application;
  • FIG. 12 is a structural block diagram of Embodiment 2 of a search device for traveling route information according to the present application.
  • FIG. 13 is a structural block diagram of Embodiment 3 of a search device for traveling route information according to the present application.
  • the method may include the following steps:
  • Step 101 Receive a search request for travel route information sent by a client, where the search request includes at least one origin and at least one destination.
  • the app after the user adds the departure place and the destination on the travel navigation app on the client of the terminal device, the app generates a search request carrying the departure place and the destination, and sends the search request to the server to trigger the travel route information. Search.
  • multiple departure locations and multiple destinations may be added at one time.
  • the user may first click on the departure place on the search page of the ticket app, check Beijing and Tianjin, click OK, and then click the destination (also referred to as the arrival place), and tick Hong Kong, Macau and click OK, the ticket app will generate a search request based on the departure point of Beijing, Tianjin, and destinations Hong Kong and Macao, and send it to the server to trigger the search of the travel route information.
  • Step 102 Combine the route combination with the departure place and the destination.
  • the server after receiving the search request sent by the client, extracts the departure place and the destination from the search request, and then generates a route combination based on the departure place and the destination.
  • the route combination refers to the road that public transport (such as buses, ships, airplanes, etc.) passes, including the place of departure and destination.
  • public transport such as buses, ships, airplanes, etc.
  • the combined operation of the route combination may be performed in the client, and then carried in the search request and sent to the server, which is not limited in this embodiment of the present application.
  • Step 103 Search for the corresponding travel route information by using the route combination search.
  • the server After the server obtains the route combination, if the user selects multiple departure destinations and destinations, multiple route combinations are obtained. In this embodiment, the search is triggered based on multiple route combinations, and the corresponding route combination is obtained. Travel route information. Specifically, the travel route information may include the time, distance, price, and the like of the route between the departure place and the destination.
  • one or more route combinations can be automatically combined based on the input departure place and the destination, and further It is also possible to trigger a search separately based on the combination of routes to obtain corresponding travel route information.
  • the application of the embodiment of the present application can trigger multiple searches at one time, and only need to click once for the user to trigger. Compared with the prior art, it is not necessary to input the departure place and the destination multiple times, and then click multiple times to trigger separately.
  • the user operation is reduced, and the search of all the route combinations can be completed at one time and the corresponding travel route information can be obtained, which improves the search efficiency, so that the user can obtain the travel route information of different route combinations at the same time, which is convenient for the user to perform.
  • the comparison of travel route information of different route combinations improves the user experience.
  • the method may include the following steps:
  • Step 201 Receive a search request for travel route information sent by a client, where the search request includes at least one origin and at least one destination.
  • the departure place and the destination may be input in the client, and the search request is generated and sent to the server based on the departure place and the destination, so that the server performs the travel route based on the search request.
  • Search for information The starting point and the destination carried in the search request may be multiple.
  • Step 202 Combine the departure route and the destination to combine a one-way route combination; and or, combine the departure route and the destination to combine a round-trip route; and/or adopt the departure site and the The destination combines the gap path combination.
  • the user when searching for the travel route information, the user may select to search for the one-way route combination, or may select the search for the round-trip route combination, and may also select the search for the gap route combination.
  • the embodiment of the present application will perform the corresponding search according to the user selection.
  • the step 202 when searching for a one-way route, it is necessary to perform a search based on the one-way route combination at the departure place and the destination combination as the search condition, and the step 202 may include the following sub-steps:
  • the outbound route combination is used as a one-way route combination.
  • One-way route combination refers to a single direction of travel, such as a combination of outbound routes from the departure point to the destination.
  • the expression of the one-way route combination is: C(m, 1)*C(n, 1), where C(m, 1) represents from m arrivals. Selecting a target departure place, C(n, 1) means selecting a target destination from n destinations, and then performing a one-way combination to obtain a combination of the forward routes, that is, one-way route combinations.
  • the step 202 when searching for a round-trip route, it is necessary to combine the round-trip route combination based on the departure place and the destination to search as a search condition, and the step 202 may include the following sub-steps:
  • the combination of the forward route combination and the return route is combined as a round trip route.
  • the round-trip route combination refers to the journey in two directions, specifically including a combination of the outward route from the departure place to the destination and a return route combination returning from the destination to the departure place.
  • the expression of the round-trip route combination is: C(m, 1)*C(n, 1), where C(m, 1) represents from m arrivals. Selecting a target departure point, C(n, 1) means selecting a target destination from n destinations, and then combining the two to obtain a combination of the forward route combination and the return route, that is, the round trip route combination.
  • the step 202 when searching for the gap path combination, it is necessary to perform a search based on the combination of the departure and destination combination of the gap path to search as a search condition, and the step 202 may include the following substeps:
  • the two target departure locations include a first departure place and a second departure Land
  • the two target departure locations including a third departure place and a fourth Starting point
  • the two target destinations include a third target destination and a fourth target destination
  • the first round trip route combination, the second round trip route combination, and/or the third round trip route combination are combined as a gap path route.
  • the gap path combination refers to the stroke in two directions, similar to the round trip combination, except that the departure place and the destination can be different.
  • the user enters m departure points, n arrivals, and the mathematical expression of the combination of the gap path is:
  • C(m,1)*A(n,2) indicates that one target departure point is selected from m destinations
  • C(n,1) indicates that two target destinations are selected from n destinations
  • both The combination results in a combination of the forward route combination and the return route, that is, the round trip route combination.
  • the arrival route combination of the forward route combination and the return route combination is different.
  • the similarity of A(m, 2)*C(n, 1) and A(m, 2)*A(n, 2) will not be described.
  • a plurality of route combinations may be combined according to a one-way route combination, round-trip, and notch route, for example, a departure place input: Beijing, Tianjin; arrival destination input: Osaka, Tokyo, then the result of the route combination may have:
  • Each of the one-way and round-trip routes is four:
  • the method may further include:
  • the step of combining the departure route and the destination to combine the notch path combinations is performed.
  • the calculation amount obtained if the route combination is performed may be very large. Therefore, if the sum of m and n is found to be greater than the preset value in the embodiment of the present application, p, the step of calculating the combination of the notch path is not performed, and if it is less than the preset value p, the step of calculating the combination of the notch path is performed.
  • the method may further include:
  • the departure place is a neighboring place, and/or the destination is a neighboring place, performing the step of combining the departure route and the destination to combine the notch path combinations.
  • the combination of the gap path route is different from the place where the round trip (for example, the airport city) is different.
  • the round trip for example, the airport city
  • the departure place or the destination is a neighboring place
  • the user transfer is convenient. Therefore, in the present application, it can be set as the starting point is the neighboring city, or the destination is the neighboring city, and the step of calculating the gap path combination is performed.
  • the neighboring city near the airport city
  • the neighboring city means that after obtaining the geographical coordinates of the departure place, other cities with airports within a straight line distance L can be found.
  • the method may further include :
  • the step of combining the departure route and the destination combination gap route is performed.
  • the combination of the gap path routes is different from the place where the round trip (for example, the airport city) is different.
  • the round trip for example, the airport city
  • the destination in this application can be set as the starting point is the hot city, or the destination is the hot city, only need to perform the steps of calculating the gap route combination.
  • the program can automatically find the neighboring cities of the two places and other popular cities in the country, and will find the cities and destinations of the multiple departure places. Cities are combined as described above and recommended for users in search results.
  • step of judging the neighboring place or the hot place mentioned above is only an optional example, and may be executed in the actual application, performed together or not, and the embodiment of the present application No restrictions.
  • Step 203 Search for the corresponding travel route information by using the route combination search.
  • the search is triggered based on the multiple route combinations respectively, and the travel route information corresponding to each route combination is obtained.
  • Step 204 Determine a sorting rule, and sort the travel route information according to the sorting rule.
  • the user may further select the travel route information that is most suitable for the user as the target travel route information.
  • the most suitable can be to sort the price, and feedback the lower-priced travel route information to the user (for most users). Therefore, the target travel route information can also be integrated according to the user's spending power, consumption habits, direct flight transit preferences, airline preferences, transit preferences, and the like.
  • Step 205 Determine target travel route information based on the sort result, and recommend the target travel route information to the user.
  • p is an integer parameter, which is a preset value. The purpose of setting this condition is to avoid excessive calculation of the server. Generally, the maximum p is 5.
  • search results for users there are many ways to display search results for users, that is, travel route information.
  • the flights of all routes can be arranged in the same list according to a certain order (price level), and indicate what route, such as Tianjin-Hong Kong, Tianjin-Macau; 7, can display the combined route combination and the lowest price and flight information of each route combination, click to jump to the flight list page of the route; refer to Figure 8, can show the combined route combination and each route combination The lowest price, click to jump to the flight list page of the route.
  • the above search results are displayed as an example. In actual applications, other methods may be used to display the search results for the user.
  • the manner in which multiple pages may be displayed that is, not displayed on the same page, for example, One page is used to display Tianjin-Hong Kong, one page is used to display Tianjin-Macau, and in addition, a trend chart comparison can be displayed on the map, and the price and other information are marked on the corresponding place, which is not required for the embodiment of the present application. Limit it.
  • Step 206 Cache the departure place and the destination, and the travel route information corresponding to the departure place and the destination.
  • the server can cache the origin and destination of the previous search, as well as the corresponding travel route information. Specifically, the server can store the search result of the same condition within one day, and the most recent search is used as the cache, so that the search for the same departure place and destination does not need to be repeated, and multiple destinations and destinations can be avoided. Combine the server overload caused by the search.
  • a plurality of departure points and a plurality of destinations are combined to generate a plurality of route combinations, and then the travel route information is separately searched based on the route combination, so that the user can compare the data.
  • a plurality of departure places and arrival places can be input at a time, and route combinations are performed based on a plurality of departure places and arrival places, and then search can be triggered separately based on the route combination, and the search results of different route combinations can be performed.
  • Embodiment 3 of a method for searching for travel route information of the present application is shown, which may specifically include the following steps:
  • Step 301 Acquire at least one origin and at least one destination input or selected by the user;
  • Step 302 Generate a search request by using the origin and destination, and send the search request to the server.
  • Step 303 Receive travel route information that is fed back by the server based on the search request.
  • At least one departure place and at least one destination input by the user are acquired on the client side, and then at least one departure place and at least one destination generation search request are sent to the server, and the server will receive the search request after receiving the search request.
  • the route combination is obtained based on combining at least one departure place and at least one destination, and then the corresponding travel route information is obtained by triggering the search based on the route combination, and finally the travel route information is fed back to the client.
  • step 301 may include:
  • one way is by providing a search interface having a selection list of departure points and a selection list of destinations, the user selecting a desired destination passport destination from the selection list, and the other way is On the map, the user clicks to select a location, and then the location can be used as a departure or destination.
  • the user can input the departure or destination by voice, and then the client or server will Convert the speech to text and then use the converted text as the starting point or destination.
  • Embodiment 4 of a method for searching for travel route information of the present application is shown, which may specifically include the following steps:
  • Step 401 providing a search interface in which an input or selection area of a departure place input or selection area and a destination is provided, the departure place input or selection area is used to acquire at least one departure place, the destination An input or selection area for obtaining at least one destination;
  • the user can complete the input of the departure place or the destination by means of voice input, map selection, etc., in addition to manually inputting the departure place or the destination.
  • This embodiment of the present application does not limit this.
  • the user travels the navigation app on the client of the terminal device, and provides an input or selection area for the input or selection area and destination of the departure place.
  • the user can according to his own needs. At least one departure place and at least one destination are selected by input or a list of places provided on the app.
  • Step 402 Receive at least one origin and at least one destination input or selected by a user;
  • the departure place and the destination are determined based on the user selection.
  • Step 403 Generate a search request by using the departure place and the destination, and send the search request to the server.
  • the search request generated by the departure place and the destination can be sent to the server when the departure place and the destination are obtained, and the route combination can be obtained in the server based on the combination of the departure place and the destination.
  • the search may be triggered separately based on the route combination, and the travel route combination corresponding to each route combination is obtained.
  • the step of generating a search request based on the origin and destination and transmitting to the server includes:
  • a search request is generated using the outgoing route combination and sent to the server.
  • the route combination in addition to combining the route combination based on the departure place and the destination in the server, the route combination may be combined in the client based on the departure place and the destination, and then the search request is generated based on the route combination.
  • the embodiment of the present application does not limit this.
  • time information and other information input by the user may be generated together with the departure place and the destination to generate a search request, which is not limited in this embodiment of the present application.
  • Step 404 Receive travel route information that is sent by the server based on the search request.
  • the server After the server searches for the travel route information based on the search request, the travel route information is fed back to the client and displayed to the user on the client's page.
  • the method may further include:
  • the target travel route information is determined based on the sort result, and the target travel route information is displayed on the client's page.
  • the user may also select the travel route information that is most suitable for the user as the target travel route information from the client side.
  • the most suitable can be to sort the price, and feedback the lower-priced travel route information to the user (for most users). Therefore, the target travel route information can also be integrated according to the user's spending power, consumption habits, direct flight transit preferences, airline preferences, transit preferences, and the like.
  • the displaying the target travel route information on the page of the client includes:
  • the form is one or more
  • the table is switched according to user operations to display target travel route information in different forms.
  • the target travel route information may be filled into the client page.
  • the page due to the limitation of the client page, it is possible that a table cannot fill in all the target travel route information, then the page can be displayed on the same page, and then the user can switch the table according to the switch button also on the table.
  • the obtained target travel route information can be converted into a trend graph, and the trend graph can be read by the user. It is more intuitive and the user experience is better.
  • the user inputs one or more departure places and one or more destinations on the client side, and then generates a search request to the server based on the origin and destination input by the user, and the server will target the departure place and The destination feedbacks the corresponding travel route information.
  • the application of the embodiment of the present application can input multiple departure locations and multiple destinations at one time, and only need to click once for the user on the client side, and does not need to input the departure place multiple times compared with the prior art.
  • the route information of the route combination is convenient for the user to compare the travel route information of different route combinations, thereby improving the user experience.
  • Embodiment 1 of a search device for travel route information of the present application is shown, which may specifically include the following modules:
  • the search request receiving module 501 is configured to receive a search request for travel route information sent by the client, where the search request includes at least one departure place and at least one destination;
  • a route combination module 502 configured to combine a route combination by using the departure place and the destination;
  • the travel route information search module 503 is configured to use the route combination search to obtain corresponding travel route information.
  • the number of the departure place is m
  • the number of the destination is n
  • the m and n are both positive integers
  • the route combination module 502 includes:
  • a one-way route combination sub-module for combining a one-way route combination using the departure place and the destination;
  • a round trip route combination submodule configured to combine the round trip route combination by using the departure place and the destination;
  • a gap path combination sub-module for combining the notch path combination using the departure place and the destination.
  • the one-way route combination sub-module includes:
  • a first departure place selection unit configured to sequentially select one target departure place from the m departure points
  • a first outbound route combining unit configured to respectively combine the outbound route combination with the n destinations by using the target departure place
  • the round trip route combination submodule includes:
  • a second departure place selection unit configured to sequentially select one target departure place from the m departure points
  • a first round trip route combining unit configured to combine the outbound route combination and the return route combination with the n destinations respectively by using the target departure place
  • a round trip route combination obtaining unit is configured to combine the forward route combination and the return route as a round trip route combination.
  • the notch path combination submodule when the m and n are greater than or equal to 2, the notch path combination submodule includes:
  • a first target location selecting unit configured to sequentially select one target origin from the m departure locations, and select two target destinations from the n destinations; the two target destinations include a first target destination and a second target destination;
  • a second round trip route combining unit configured to combine the outbound route combination with the first target destination by using the target departure place, and combine the return route with the target destination and the second target destination by using the target departure place combination;
  • a first round trip route combining unit configured to combine the forward route combination and the return route as a first round trip route combination
  • a second target location selecting unit configured to sequentially select two target departure sites from the m departure sites, and select one target destination from the n destinations; the two target departure sites Including the first departure place and the second departure place;
  • a third round trip route combining unit configured to combine the outbound route combination with the target destination by using the first target departure place, and combine the return route with the target destination by using the second target departure place combination;
  • a second round trip route combining unit configured to combine the forward route combination and the return route as a second round trip route combination
  • a third target location selecting unit configured to sequentially select two target departure locations from the m departure locations, and select two target destinations from the n destinations;
  • the ground includes a third departure place and a fourth departure place, the two target destinations including a third target destination and a fourth target destination;
  • a fourth round trip route combining unit configured to use a combination of the third target departure place and the third target destination combination to go, and adopt the fourth target departure place and the fourth target purpose Combine the return route combination;
  • a third round trip route combining unit configured to combine the forward route combination and the return route as a third round trip route combination
  • a notch path combination obtaining unit is configured to combine the first round trip route combination, the second round trip route combination, and/or the third round trip route combination as a gap path route combination.
  • the method further includes:
  • a value judgment sub-module configured to determine whether the sum value is less than or equal to a preset value; if yes, call the gap path combination sub-module.
  • the method further includes:
  • a neighboring determination sub-module for determining whether the departure place is a neighboring place, and/or whether the destination is a neighboring place; if the departure place is a neighboring place, and/or the destination is a neighbor
  • the notch path combination sub-module is called.
  • the method when the m and n are greater than or equal to 2, the method further includes:
  • a hot place determination sub-module for determining whether the departure place is a hot place, and/or whether the destination is a popular place; if the departure place is a popular place, and/or the destination is popular Where, the notch path combination sub-module is called.
  • the method further includes:
  • a sorting module configured to determine a sorting rule, and sort the travel route information according to the sorting rule
  • the target travel route information recommendation module is configured to determine target travel route information based on the sort result, and recommend the target travel route information to the user.
  • the method further includes:
  • a cache module configured to cache the departure place and the destination, and the travel route information corresponding to the departure place and the destination.
  • Embodiment 2 of a search device for travel route information of the present application is shown, which may specifically include the following modules:
  • a location obtaining module 601 configured to acquire at least one origin and at least one destination input or selected by the user;
  • a search request generating module 602 configured to generate a search request by using the origin and destination, and send the request to the server;
  • the travel route information receiving module 603 is configured to receive travel route information that is fed back by the server based on the search request.
  • the location obtaining module 601 includes:
  • An interface input submodule configured to acquire at least one departure place and at least one destination input by the user on the search interface
  • a map selection submodule configured to acquire at least one departure place and at least one destination selected by the user on the map
  • the voice input submodule is configured to acquire at least one origin and at least one destination of the user voice input.
  • FIG. 13 a structural block diagram of a third embodiment of a search device for traveling route information of the present application is shown, which may specifically include the following modules:
  • a search interface providing module 701 configured to provide a search interface in which an input or selection area for inputting or selecting an area and a destination for providing at least one departure place is provided, The input or selection area of the destination is used to acquire at least one destination;
  • a location receiving module 702 configured to receive at least one origin and at least one destination input or selected by a user
  • a search request sending module 703, configured to generate a search request by using the origin and destination, and send the request to the server;
  • the appearance route information receiving module 704 is configured to receive the appearance route information that the server feeds back based on the search request.
  • the search request sending module 703 includes:
  • a route combination submodule configured to combine a route combination by using the departure place and the destination
  • the search request generation submodule is configured to generate a search request by using the outbound route combination and send the request to the server.
  • the device may further include:
  • a sorting module configured to determine a sorting rule, and sort the travel route information according to the sorting rule
  • the target travel route information recommendation module is configured to determine the target travel route information based on the sorting result, and display the target travel route information on the client's page.
  • the target travel route information recommendation module includes:
  • a form filling unit configured to write the target travel route information into a preset form of a page of the client
  • a target travel route information presentation unit configured to display the target travel route information in the table; the form is one or more;
  • the table switching unit is configured to switch the table to display target travel route information in different forms according to a user operation.
  • the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment.
  • embodiments of the embodiments of the present application can be provided as a method, apparatus, or computer program product. Therefore, the embodiments of the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware. Moreover, embodiments of the present application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
  • computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
  • the computer device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
  • the memory may include non-persistent memory, random access memory (RAM), and/or non-volatile memory in a computer readable medium, such as read only memory (ROM) or flash memory.
  • RAM random access memory
  • ROM read only memory
  • Memory is an example of a computer readable medium.
  • Computer readable media includes both permanent and non-persistent, removable and non-removable media.
  • Information storage can be implemented by any method or technology. The information can be computer readable instructions, data structures, modules of programs, or other data.
  • Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory. (ROM), electrically erasable programmable read only memory (EEPROM), flash memory or other memory technology, compact disk read only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, Magnetic tape cartridges, magnetic tape storage or other magnetic storage devices or any other non-transportable media can be used to store information that can be accessed by a computing device.
  • computer readable media does not include non-persistent computer readable media, such as modulated data signals and carrier waves.
  • Embodiments of the present application are described with reference to flowcharts and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the present application. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG.
  • These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor or other programmable data processing terminal device to produce a machine such that instructions are executed by a processor of a computer or other programmable data processing terminal device
  • Means are provided for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing terminal device to operate in a particular manner, such that instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the instruction device implements the functions specified in one or more blocks of the flow or in a flow or block diagram of the flowchart.

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • Economics (AREA)
  • General Business, Economics & Management (AREA)
  • Strategic Management (AREA)
  • Marketing (AREA)
  • Development Economics (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Navigation (AREA)

Abstract

An embodiment of the present application provides a search method and device, the method comprises: receiving a search request for travel route information sent by a client; the search request comprises at least one departure place and at least one destination; combing the departure place with the destination to form route combinations; and searching to obtain the corresponding travel route information according to the route combinations. The present application can once-for-all trigger multiple searches, but only one click is required for a user, compared with the prior art, the departure place with the destination do not need to be input many times and triggered respectively by more clicks, thereby reducing user operations, moreover, the embodiment of the present application can once-for-all complete the search of all route combinations and obtain the corresponding travel route information, improve the search efficiency, so that the user can obtain the travel route information of different route combinations at the same time, conveniently compare them, and improve user experience.

Description

一种搜索方法和装置Search method and device
本申请要求2017年10月18日递交的申请号为201710972607.X、发明名称为“一种搜索方法和装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims priority to Chinese Patent Application Serial No. No. No. No. No. No. No. No. No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No
技术领域Technical field
本申请涉及数据处理技术领域,特别是涉及一种出行路线信息的搜索方法和一种出行路线信息的搜索装置。The present application relates to the field of data processing technologies, and in particular, to a method for searching for travel route information and a search device for travel route information.
背景技术Background technique
随着互联网技术的发展和移动终端的普及,可以通过在移动终端上安装各式各样的app为用户实现所需的功能。例如,目前只需要在出行导航类的app上输入出发地和目的地,app则会基于出发地和目的地自动为用户搜索出行路线信息。但是目前的出行导航类的app在搜索时存在不少问题。With the development of Internet technology and the popularity of mobile terminals, users can achieve the required functions by installing a variety of apps on mobile terminals. For example, currently only need to enter the departure place and destination on the travel navigation app, the app will automatically search for travel route information based on the departure and destination. However, the current travel navigation app has a lot of problems when searching.
以机票搜索app为例,基于大量的用户调研发现,用户在搜索去往某个目的地的机票时,会在不同出发地、目的地之间组合路线,进行比价。例如,用户想从北京去日本,在航班搜索时会搜索北京-东京、北京-大阪、天津-东京、天津-大阪,在这4条路线之间进行比价。但是,目前市场上的机票搜索app中,每次搜索只允许用户输入一个出发地和一个目的地,导致某些出发地有m个选择,目的地有n个选择的用户,需要搜索m*n次,费时费力,用户体验效果差。Taking the ticket search app as an example, based on a large number of user surveys, users find that when they search for a ticket to a destination, they will combine routes at different departures and destinations to compare prices. For example, users want to go to Japan from Beijing, and search for Beijing-Tokyo, Beijing-Osaka, Tianjin-Tokyo, Tianjin-Osaka during flight search, and compare prices between the four routes. However, in the current ticket search app on the market, each search only allows the user to enter a departure place and a destination, resulting in some selections with m choices, destinations with n selected users, and need to search for m*n. Times, time-consuming and laborious, the user experience is poor.
发明内容Summary of the invention
鉴于上述问题,提出了本申请实施例以便提供一种克服上述问题或者至少部分地解决上述问题的一种搜索方法和一种搜索装置。In view of the above problems, embodiments of the present application have been made in order to provide a search method and a search device that overcome the above problems or at least partially solve the above problems.
为了解决上述问题,本申请公开了一种搜索方法,包括:In order to solve the above problems, the present application discloses a search method, including:
接收客户端发送的出行路线信息的搜索请求;所述搜索请求中包括至少一个出发地和至少一个目的地;Receiving a search request for travel route information sent by the client; the search request includes at least one departure place and at least one destination;
采用所述出发地和所述目的地组合出路线组合;Combining the route and the destination to combine the route;
采用所述路线组合,搜索得到对应的出行路线信息。Using the combination of the routes, the search obtains corresponding travel route information.
优选地,所述出发地的个数为m,所述目的地的个数为n,所述m和n均为正整数,Preferably, the number of the departure places is m, the number of the destinations is n, and the m and n are positive integers.
所述采用所述出发地和所述目的地组合出路线组合,包括以下所列中的一种或结 合:Combining the departure route and the destination with a combination of routes, including one or a combination of the following:
采用所述出发地和所述目的地组合出单程路线组合;Combining one-way route combination using the departure place and the destination;
采用所述出发地和所述目的地组合出往返路线组合;Combining the departure route and the destination to combine a round trip route;
或,采用所述出发地和所述目的地组合出缺口程路线组合。Or, combining the departure place and the destination to form a combination of the notch path.
优选地,所述采用所述出发地和所述目的地组合出单程路线组合的步骤,包括:Preferably, the step of combining the one-way route combination by using the departure place and the destination includes:
依次从所述m个出发地中选出一个目标出发地;Selecting a target departure point from the m departure points in turn;
分别采用所述目标出发地与所述n个目的地组合出去程路线组合;Combining the departure route with the n destinations by using the target departure place;
将所述去程路线组合作为单程路线组合。The outbound route combination is used as a one-way route combination.
优选地,所述采用所述出发地和所述目的地组合出往返路线组合的步骤,包括:Preferably, the step of combining the departure route and the destination to combine a round trip route comprises:
依次从所述m个出发地中选出一个目标出发地;Selecting a target departure point from the m departure points in turn;
采用所述目标出发地分别与所述n个目的地组合出去程路线组合和返程路线组合;Combining the outbound route combination and the return route combination with the n destinations respectively by using the target departure place;
将所述去程路线组合和所述返程路线组合作为往返路线组合。The combination of the forward route combination and the return route is combined as a round trip route.
优选地,当所述m和/或n大于或等于2时,所述采用所述出发地和所述目的地组合出缺口程路线组合的步骤,包括:Preferably, when the m and/or n is greater than or equal to 2, the step of combining the departure route and the destination to combine the notch path routes comprises:
依次从所述m个出发地中选出一个目标出发地,以及,从所述n个目的地中选出两个目标目的地;所述两个目标目的地包括第一目标目的地和第二目标目的地;Selecting one target departure point from the m departure points, and selecting two target destinations from the n destinations; the two target destinations including the first target destination and the second Target destination
采用所述目标出发地与所述第一目标目的地组合出去程路线组合,以及,采用所述目标出发地与所述第二目标目的地组合出返程路线组合;Combining the outbound route combination with the first target destination by using the target departure place, and combining the return route combination with the target destination and the second target destination;
将所述去程路线组合和所述返程路线组合作为第一往返路线组合;和/或,Combining the forward route combination and the return route as a first round trip route combination; and/or,
依次从所述m个出发地中选出两个目标出发地,以及,从所述n个目的地中选出一个目标目的地;所述两个目标出发地包括第一出发地和第二出发地;Selecting two target departure points from the m departure locations in turn, and selecting one target destination from the n destinations; the two target departure locations include a first departure place and a second departure Land
采用所述第一目标出发地与所述目标目的地组合出去程路线组合,以及,采用所述第二目标出发地与所述目标目的地组合出返程路线组合;Combining the departure route combination with the target destination by using the first target departure place, and combining the return route combination with the target destination by using the second target departure place;
将所述去程路线组合和所述返程路线组合作为第二往返路线组合;Combining the forward route combination and the return route as a second round trip route combination;
和/或,and / or,
依次从所述m个出发地中选出两个目标出发地,以及,从所述n个目的地中选出两个目标目的地;所述两个目标出发地包括第三出发地和第四出发地,所述两个目标目的地包括第三目标目的地和第四目标目的地;Determining two target departure points from the m departure locations in turn, and selecting two target destinations from the n destinations; the two target departure locations including a third departure place and a fourth Starting point, the two target destinations include a third target destination and a fourth target destination;
采用所述第三目标出发地与所述第三目标目的地组合处去程路线组合,以及,采用所述第四目标出发地与所述第四目标目的地组合出返程路线组合;Using the third target departure place and the third target destination combination to perform a forward route combination, and combining the fourth target departure place and the fourth target destination to combine a return route combination;
将所述去程路线组合和所述返程路线组合作为第三往返路线组合;Combining the forward route combination and the return route as a third round trip route combination;
将所述第一往返路线组合,第二往返路线组合和/或第三往返路线组合作为缺口程路线组合。The first round trip route combination, the second round trip route combination, and/or the third round trip route combination are combined as a gap path route.
优选地,在所述采用所述出发地和所述目的地组合出缺口程路线组合的步骤之前,还包括:Preferably, before the step of combining the departure route and the destination to combine the gap path routes, the method further includes:
计算所述m和n之间的和值;Calculating a sum value between the m and n;
判断所述和值是否小于或等于预设数值;Determining whether the sum value is less than or equal to a preset value;
若是,则执行所述采用所述出发地和所述目的地组合出缺口程路线组合的步骤。If so, the step of combining the departure route and the destination to combine the notch path combinations is performed.
优选地,当所述m和n大于或等于2时,在所述采用所述出发地和所述目的地组合出缺口程路线组合的步骤之前,还包括:Preferably, when the m and n are greater than or equal to 2, before the step of combining the departure route and the destination to combine the gap path routes, the method further includes:
确定所述出发地是否为邻近地方,和/或,所述目的地是否为邻近地方;Determining whether the departure place is a neighboring place, and/or whether the destination is a neighboring place;
若所述出发地为邻近地方,和/或,所述目的地为邻近地方,则执行所述采用所述出发地和所述目的地组合出缺口程路线组合的步骤。If the departure place is a neighboring place, and/or the destination is a neighboring place, performing the step of combining the departure route and the destination to combine the notch path combinations.
优选地,当所述m和n大于或等于2时,在所述采用所述出发地和所述目的地组合出缺口程路线组合的步骤之前,还包括:Preferably, when the m and n are greater than or equal to 2, before the step of combining the departure route and the destination to combine the gap path routes, the method further includes:
确定所述出发地是否为热门地方,和/或,所述目的地是否为热门地方;Determining whether the departure place is a popular place, and/or whether the destination is a popular place;
若所述出发地为热门地方,和/或,所述目的地为热门地方,则执行所述采用所述出发地和所述目的地组合出缺口程路线组合的步骤。If the departure place is a hot place, and/or the destination is a hot place, the step of combining the departure route and the destination combination gap route is performed.
优选地,在所述采用所述路线组合搜索得到对应的出行路线信息的步骤之后,还包括:Preferably, after the step of using the route combination search to obtain corresponding travel route information, the method further includes:
确定排序规则,并按照所述排序规则对所述出行路线信息进行排序;Determining a sorting rule, and sorting the travel route information according to the sorting rule;
基于排序结果确定目标出行路线信息,并将所述目标出行路线信息推荐至用户。The target travel route information is determined based on the sort result, and the target travel route information is recommended to the user.
优选地,还包括:Preferably, the method further comprises:
缓存所述出发地和所述目的地,以及所述出发地和所述目的地对应的出行路线信息。The departure place and the destination, and the travel route information corresponding to the departure place and the destination are cached.
本申请还公开了一种搜索方法,包括:The application also discloses a search method, including:
获取用户输入或选择的至少一个出发地和至少一个目的地;Obtaining at least one departure place and at least one destination input or selected by the user;
采用所述出发地和目的地生成搜索请求并发送至服务器;Generating a search request using the origin and destination and transmitting to the server;
接收所述服务器基于所述搜索请求反馈的出行路线信息。Receiving travel route information that the server feeds back based on the search request.
优选地,所述获取用户输入或选择的至少一个出发地和至少一个目的地的步骤包括:Preferably, the step of acquiring at least one origin and at least one destination input or selected by the user comprises:
获取用户在搜索界面上输入的至少一个出发地和至少一个目的地;Obtaining at least one departure place and at least one destination input by the user on the search interface;
和/或,and / or,
获取用户在地图上选择的至少一个出发地和至少一个目的地;Obtaining at least one departure place and at least one destination selected by the user on the map;
和/或,and / or,
获取用户语音输入的至少一个出发地和至少一个目的地。Obtaining at least one origin and at least one destination of the user's voice input.
本申请还公开了一种搜索方法,包括:The application also discloses a search method, including:
提供搜索界面,在所述搜索界面中提供出发地输入或选择区域和目的地的输入或选择区域,所述出发地输入或选择区域用于获取至少一个出发地,所述目的地的输入或选择区域用于获取至少一个目的地;Providing a search interface in which an input or selection area for entering or selecting a region and a destination for obtaining at least one departure place, the input or selection of the destination is provided The area is used to acquire at least one destination;
接收用户输入或选择的至少一个出发地和至少一个目的地;Receiving at least one departure place and at least one destination input or selected by the user;
采用所述出发地和目的地生成搜索请求并发送至服务器;Generating a search request using the origin and destination and transmitting to the server;
接收所述服务器基于所述搜索请求反馈的出行路线信息。Receiving travel route information that the server feeds back based on the search request.
优选地,所述基于所述出发地和目的地生成搜索请求并发送至服务器的步骤包括:Preferably, the step of generating a search request based on the origin and destination and transmitting to the server includes:
采用所述出发地和所述目的地组合出路线组合;Combining the route and the destination to combine the route;
采用所述出路线组合生成搜索请求并发送至服务器;其中,所述搜索请求还包括用户输入的时间信息。The search request is generated by using the outbound route combination and sent to the server; wherein the search request further includes time information input by the user.
优选地,在所述接收所述服务器基于所述搜索请求反馈的出行路线信息的之后,还包括:Preferably, after the receiving the travel route information that is sent by the server based on the search request, the method further includes:
确定排序规则,并按照所述排序规则对所述出行路线信息进行排序;Determining a sorting rule, and sorting the travel route information according to the sorting rule;
基于排序结果确定目标出行路线信息,并将所述目标出行路线信息展示于客户端的页面中。The target travel route information is determined based on the sort result, and the target travel route information is displayed on the client's page.
优选地,所述将所述目标出行路线信息展示于客户端的页面中,包括:Preferably, the displaying the target travel route information on the page of the client includes:
将所述目标出行路线信息写入客户端的页面的预设表格中;Writing the target travel route information into a preset table of a page of the client;
在所述表格中展现所述目标出行路线信息;所述表格为一个或多个;Presenting the target travel route information in the table; the form is one or more;
根据用户操作切换所述表格显示不同表格中的目标出行路线信息。The table is switched according to user operations to display target travel route information in different forms.
本申请还公开了一种搜索装置,包括:The application also discloses a search device, including:
搜索请求接收模块,用于接收客户端发送的出行路线信息的搜索请求;所述搜索请 求中包括出发地和目的地;a search request receiving module, configured to receive a search request for travel route information sent by the client; the search request includes a departure place and a destination;
路线组合模块,用于采用所述出发地和所述目的地组合出路线组合;a route combination module, configured to combine a route combination by using the departure place and the destination;
出行路线信息搜索模块,用于采用所述路线组合分别触发搜索得到对应的出行路线信息。The travel route information search module is configured to trigger the search to obtain the corresponding travel route information by using the route combination.
本申请还公开了一种搜索装置,包括:The application also discloses a search device, including:
地点获取模块,用于获取用户输入或选择的至少一个出发地和至少一个目的地;a location obtaining module, configured to acquire at least one origin and at least one destination input or selected by the user;
搜索请求生成模块,用于采用所述出发地和目的地生成搜索请求并发送至服务器;a search request generating module, configured to generate a search request by using the origin and destination, and send the request to the server;
出行路线信息接收模块,用于接收所述服务器基于所述搜索请求反馈的出行路线信息。The travel route information receiving module is configured to receive travel route information that is fed back by the server based on the search request.
本申请还公开了一种搜索装置,包括:The application also discloses a search device, including:
搜索界面提供模块,用于提供搜索界面,在所述搜索界面中提供出发地输入或选择区域和目的地的输入或选择区域,所述出发地输入或选择区域用于获取至少一个出发地,所述目的地的输入或选择区域用于获取至少一个目的地;a search interface providing module for providing a search interface in which an input or selection area for entering or selecting an area and a destination for providing at least one departure place, The input or selection area of the destination is used to acquire at least one destination;
地点接收模块,用于接收用户输入或选择的至少一个出发地和至少一个目的地;a location receiving module, configured to receive at least one origin and at least one destination input or selected by the user;
搜索请求发送模块,用于采用所述出发地和目的地生成搜索请求并发送至服务器;a search request sending module, configured to generate a search request by using the origin and destination, and send the request to the server;
出行路线信息接收模块,用于接收所述服务器基于所述搜索请求反馈的出现路线信息。The travel route information receiving module is configured to receive the appearance route information that is fed back by the server based on the search request.
本申请实施例包括以下优点:Embodiments of the present application include the following advantages:
本申请实施例,在用户输入一个或多个出发地和一个或多个目的地,并触发搜索出行路线信息时,能够基于输入的出发地和目的地自动组合出一个或多个路线组合,进一步地,还能够基于路线组合分别触发搜索以得到相应的出行路线信息。应用本申请实施例可以一次性触发多个搜索,而对于用户而言只需要点击一次触发即可,与现有技术相比,不需要多次输入出发地和目的地,然后点击多次分别触发,减少了用户操作,并且由于本申请实施例能够一次性完成全部路线组合的搜索并得到相应的出行路线信息,提高了搜索效率,使得用户能够同时获得不同路线组合的出行路线信息,便于用户进行不同路线组合的出行路线信息的对比,提升了用户使用体验。In the embodiment of the present application, when the user inputs one or more departure places and one or more destinations and triggers the search for the travel route information, one or more route combinations can be automatically combined based on the input departure place and the destination, and further It is also possible to trigger a search separately based on the combination of routes to obtain corresponding travel route information. The application of the embodiment of the present application can trigger multiple searches at one time, and only need to click once for the user to trigger. Compared with the prior art, it is not necessary to input the departure place and the destination multiple times, and then click multiple times to trigger separately. The user operation is reduced, and the search of all the route combinations can be completed at one time and the corresponding travel route information can be obtained, which improves the search efficiency, so that the user can obtain the travel route information of different route combinations at the same time, which is convenient for the user to perform. The comparison of travel route information of different route combinations improves the user experience.
附图说明DRAWINGS
图1是本申请的一种出行路线信息的搜索方法实施例1的步骤流程图;1 is a flow chart showing the steps of Embodiment 1 of a method for searching for travel route information according to the present application;
图2是本申请的一种机票app上搜索出行路线信息的过程示意图;2 is a schematic diagram of a process of searching for travel route information on a ticket app of the present application;
图3是本申请的一种机票app上多次选择出发地的示意图;3 is a schematic diagram of selecting a departure place multiple times on a ticket app of the present application;
图4是本申请的一种出行路线信息的搜索方法实施例2的步骤流程图;4 is a flow chart showing the steps of Embodiment 2 of a method for searching for travel route information according to the present application;
图5是本申请的一种路线组合的示意图;Figure 5 is a schematic illustration of a route combination of the present application;
图6是本申请的一种机票搜索的结果示意图之一;6 is a schematic diagram of a result of a ticket search of the present application;
图7是本申请的一种机票搜索的结果示意图之二;7 is a second schematic diagram of the result of a ticket search of the present application;
图8是本申请的一种机票搜索的结果示意图之三;Figure 8 is a third schematic diagram of the results of a ticket search of the present application;
图9是本申请的一种出行路线信息的搜索方法实施例3的步骤流程图;9 is a flow chart showing the steps of Embodiment 3 of a method for searching for travel route information according to the present application;
图10是本申请的一种出行路线信息的搜索方法实施例4的步骤流程图;10 is a flow chart showing the steps of Embodiment 4 of a method for searching for travel route information according to the present application;
图11是本申请的一种出行路线信息的搜索装置实施例1的结构框图;11 is a structural block diagram of Embodiment 1 of a search device for traveling route information according to the present application;
图12是本申请的一种出行路线信息的搜索装置实施例2的结构框图;FIG. 12 is a structural block diagram of Embodiment 2 of a search device for traveling route information according to the present application; FIG.
图13是本申请的一种出行路线信息的搜索装置实施例3的结构框图。FIG. 13 is a structural block diagram of Embodiment 3 of a search device for traveling route information according to the present application.
具体实施方式Detailed ways
为使本申请的上述目的、特征和优点能够更加明显易懂,下面结合附图和具体实施方式对本申请作进一步详细的说明。The above described objects, features and advantages of the present application will become more apparent and understood.
参照图1,示出了本申请的一种出行路线信息的搜索方法实施例1的步骤流程图,具体可以包括如下步骤:Referring to FIG. 1 , a flow chart of the steps of the method 1 for searching for travel route information of the present application is shown. Specifically, the method may include the following steps:
步骤101,接收客户端发送的出行路线信息的搜索请求;所述搜索请求中包括至少一个出发地和至少一个目的地。Step 101: Receive a search request for travel route information sent by a client, where the search request includes at least one origin and at least one destination.
在本申请实施例中,用户在终端设备的客户端上出行导航类app上添加出发地和目的地之后,app将相应生成携带出发地和目的地的搜索请求,并发送至服务器触发出行路线信息的搜索。In the embodiment of the present application, after the user adds the departure place and the destination on the travel navigation app on the client of the terminal device, the app generates a search request carrying the departure place and the destination, and sends the search request to the server to trigger the travel route information. Search.
需要说明的是,本申请实施例中可以一次性添加多个出发地以及多个目的地。具体地,以机票app为例,参照图2,用户可以首先在机票app的搜索页面点击出发地,勾选北京、天津并点击确定,然后点击目的地(也可以称为到达地),勾选香港、澳门并点击确定,机票app就会根据出发地北京、天津,以及目的地香港、澳门生成搜索请求,发送至服务器触发出行路线信息的搜索。It should be noted that, in the embodiment of the present application, multiple departure locations and multiple destinations may be added at one time. Specifically, taking the ticket app as an example, referring to FIG. 2, the user may first click on the departure place on the search page of the ticket app, check Beijing and Tianjin, click OK, and then click the destination (also referred to as the arrival place), and tick Hong Kong, Macau and click OK, the ticket app will generate a search request based on the departure point of Beijing, Tianjin, and destinations Hong Kong and Macao, and send it to the server to trigger the search of the travel route information.
在勾选出发地或者目的地时,可以一次性选择出多个出发地和目的地,也可以是多 次进入选择,然后选择出多个出发地和目的地。具体地,参照图3,在机票app中选择到达地的城市时,首先进入出发地城市页面勾选北京,点击确定完成第一次选择,然后再次进入出发地城市页面勾选天津,点击确定完成第二次选择,此时用户勾选的到达地为北京和天津。When you check the departure or destination, you can select multiple departures and destinations at once, or you can enter multiple selections and then select multiple departures and destinations. Specifically, referring to FIG. 3, when selecting the city to arrive in the ticket app, first enter the city page of the departure place to check Beijing, click OK to complete the first selection, then enter the departure city page again to check Tianjin, click OK to complete. The second choice, at this time the user selected the place of arrival for Beijing and Tianjin.
步骤102,采用所述出发地和所述目的地组合出路线组合。Step 102: Combine the route combination with the departure place and the destination.
在本申请实施例中,服务器接收到客户端发送的搜索请求之后,从该搜索请求中提取出出发地和目的地,然后基于出发地和目的地生成路线组合。In the embodiment of the present application, after receiving the search request sent by the client, the server extracts the departure place and the destination from the search request, and then generates a route combination based on the departure place and the destination.
其中,路线组合是指公共交通工具(如公共汽车、船舶、飞机等)所经过的道路,包含有出发地和目的地。Among them, the route combination refers to the road that public transport (such as buses, ships, airplanes, etc.) passes, including the place of departure and destination.
需要说明的是,路线组合的组合操作,可以是在客户端中完成后,然后再携带于搜索请求发送至服务器,本申请实施例对此无需加以限制。It should be noted that the combined operation of the route combination may be performed in the client, and then carried in the search request and sent to the server, which is not limited in this embodiment of the present application.
步骤103,采用所述路线组合搜索得到对应的出行路线信息。Step 103: Search for the corresponding travel route information by using the route combination search.
当服务器得到路线组合之后,如果用户勾选的出发地和目的地是多个,那么就会得到多个路线组合,本申请实施例将分别基于多个路线组合触发搜索,得到各个路线组合对应的出行路线信息。具体地,出行路线信息可以包括出发地和目的地之间路线的时间、距离、价格等等。After the server obtains the route combination, if the user selects multiple departure destinations and destinations, multiple route combinations are obtained. In this embodiment, the search is triggered based on multiple route combinations, and the corresponding route combination is obtained. Travel route information. Specifically, the travel route information may include the time, distance, price, and the like of the route between the departure place and the destination.
本申请实施例,在用户输入一个或多个出发地和一个或多个目的地,并触发搜索出行路线信息时,能够基于输入的出发地和目的地自动组合出一个或多个路线组合,进一步地,还能够基于路线组合分别触发搜索以得到相应的出行路线信息。应用本申请实施例可以一次性触发多个搜索,而对于用户而言只需要点击一次触发即可,与现有技术相比,不需要多次输入出发地和目的地,然后点击多次分别触发,减少了用户操作,并且由于本申请实施例能够一次性完成全部路线组合的搜索并得到相应的出行路线信息,提高了搜索效率,使得用户能够同时获得不同路线组合的出行路线信息,便于用户进行不同路线组合的出行路线信息的对比,提升了用户使用体验。In the embodiment of the present application, when the user inputs one or more departure places and one or more destinations and triggers the search for the travel route information, one or more route combinations can be automatically combined based on the input departure place and the destination, and further It is also possible to trigger a search separately based on the combination of routes to obtain corresponding travel route information. The application of the embodiment of the present application can trigger multiple searches at one time, and only need to click once for the user to trigger. Compared with the prior art, it is not necessary to input the departure place and the destination multiple times, and then click multiple times to trigger separately. The user operation is reduced, and the search of all the route combinations can be completed at one time and the corresponding travel route information can be obtained, which improves the search efficiency, so that the user can obtain the travel route information of different route combinations at the same time, which is convenient for the user to perform. The comparison of travel route information of different route combinations improves the user experience.
参照图4,示出了本申请的一种出行路线信息的搜索方法实施例2的步骤流程图,具体可以包括如下步骤:Referring to FIG. 4, a flow chart of the steps of the method for searching for travel route information of the present application is shown in the following steps. Specifically, the method may include the following steps:
步骤201,接收客户端发送的出行路线信息的搜索请求;所述搜索请求中包括至少一个出发地和至少一个目的地。Step 201: Receive a search request for travel route information sent by a client, where the search request includes at least one origin and at least one destination.
在本申请实施例中,在用户需要搜索出行路线信息时,可以在客户端中输入出发地 和目的地,并基于出发地和目的地生成搜索请求发送至服务器,使得服务器基于搜索请求进行出行路线信息的搜索。其中,搜索请求中携带的出发地和目的地可以均是多个。In the embodiment of the present application, when the user needs to search for the travel route information, the departure place and the destination may be input in the client, and the search request is generated and sent to the server based on the departure place and the destination, so that the server performs the travel route based on the search request. Search for information. The starting point and the destination carried in the search request may be multiple.
步骤202,采用所述出发地和所述目的地组合出单程路线组合;和或,采用所述出发地和所述目的地组合出往返路线组合;和/或,采用所述出发地和所述目的地组合出缺口程路线组合。Step 202: Combine the departure route and the destination to combine a one-way route combination; and or, combine the departure route and the destination to combine a round-trip route; and/or adopt the departure site and the The destination combines the gap path combination.
在具体实现中,在搜索出行路线信息时,用户可以选择搜索单程路线组合,也可以选择搜索往返路线组合,还可以选择搜索缺口程路线组合,本申请实施例将根据用户选择执行相应的搜索。In the specific implementation, when searching for the travel route information, the user may select to search for the one-way route combination, or may select the search for the round-trip route combination, and may also select the search for the gap route combination. The embodiment of the present application will perform the corresponding search according to the user selection.
在本申请的一种优选实施例中,在搜索单程路线时,则需要基于出发地和目的地组合处单程路线组合以作为搜索条件进行搜索,则所述步骤202可以包括如下子步骤:In a preferred embodiment of the present application, when searching for a one-way route, it is necessary to perform a search based on the one-way route combination at the departure place and the destination combination as the search condition, and the step 202 may include the following sub-steps:
依次从所述m个出发地中选出一个目标出发地;Selecting a target departure point from the m departure points in turn;
分别采用所述目标出发地与所述n个目的地组合出去程路线组合;Combining the departure route with the n destinations by using the target departure place;
将所述去程路线组合作为单程路线组合。The outbound route combination is used as a one-way route combination.
单程路线组合是指单个方向的行程,例如从出发地到达目的地的去程路线组合。One-way route combination refers to a single direction of travel, such as a combination of outbound routes from the departure point to the destination.
假设用户输入m个出发地,n个到达地,则单程路线组合的表达式为:C(m,1)*C(n,1),其中,C(m,1)表示从m个到达地选择一个目标出发地,C(n,1)表示从n个目的地选择一个目标目的地,然后两者进行单程组合得到去程路线组合,即单程路线组合。Assuming that the user inputs m departure points and n arrivals, the expression of the one-way route combination is: C(m, 1)*C(n, 1), where C(m, 1) represents from m arrivals. Selecting a target departure place, C(n, 1) means selecting a target destination from n destinations, and then performing a one-way combination to obtain a combination of the forward routes, that is, one-way route combinations.
在本申请的一种优选实施例中,在搜索往返路线时,则需要基于出发地和目的地组合出往返路线组合以作为搜索条件进行搜索,则所述步骤202可以包括如下子步骤:In a preferred embodiment of the present application, when searching for a round-trip route, it is necessary to combine the round-trip route combination based on the departure place and the destination to search as a search condition, and the step 202 may include the following sub-steps:
依次从所述m个出发地中选出一个目标出发地;Selecting a target departure point from the m departure points in turn;
采用所述目标出发地分别与所述n个目的地组合出去程路线组合和返程路线组合;Combining the outbound route combination and the return route combination with the n destinations respectively by using the target departure place;
将所述去程路线组合和所述返程路线组合作为往返路线组合。The combination of the forward route combination and the return route is combined as a round trip route.
往返路线组合是指两个方向的行程,具体包括有从出发地到达目的地的去程路线组合以及从目的地返回出发地的返程路线组合。The round-trip route combination refers to the journey in two directions, specifically including a combination of the outward route from the departure place to the destination and a return route combination returning from the destination to the departure place.
假设用户输入m个出发地,n个到达地,则往返路线组合的表达式为:C(m,1)*C(n,1),其中,C(m,1)表示从m个到达地选择一个目标出发地,C(n,1)表示从n个目的地选择一个目标目的地,然后两者进行组合得到去程路线组合和返程路线组合,即往返程路线组合。Assuming that the user inputs m departure points and n arrivals, the expression of the round-trip route combination is: C(m, 1)*C(n, 1), where C(m, 1) represents from m arrivals. Selecting a target departure point, C(n, 1) means selecting a target destination from n destinations, and then combining the two to obtain a combination of the forward route combination and the return route, that is, the round trip route combination.
在本申请的一种优选实施例中,在搜索缺口程路线组合时,则需要基于出发地和目的地组合缺口程路线组合以作为搜索条件进行搜索,则所述步骤202可以包括如下子步 骤:In a preferred embodiment of the present application, when searching for the gap path combination, it is necessary to perform a search based on the combination of the departure and destination combination of the gap path to search as a search condition, and the step 202 may include the following substeps:
依次从所述m个出发地中选出一个目标出发地,以及,从所述n个目的地中选出两个目标目的地;所述两个目标目的地包括第一目标目的地和第二目标目的地;Selecting one target departure point from the m departure points, and selecting two target destinations from the n destinations; the two target destinations including the first target destination and the second Target destination
采用所述目标出发地与所述第一目标目的地组合出去程路线组合,以及,采用所述目标出发地与所述第二目标目的地组合出返程路线组合;Combining the outbound route combination with the first target destination by using the target departure place, and combining the return route combination with the target destination and the second target destination;
将所述去程路线组合和所述返程路线组合作为第一往返路线组合;Combining the forward route combination and the return route as a first round trip route combination;
和/或,and / or,
依次从所述m个出发地中选出两个目标出发地,以及,从所述n个目的地中选出一个目标目的地;所述两个目标出发地包括第一出发地和第二出发地;Selecting two target departure points from the m departure locations in turn, and selecting one target destination from the n destinations; the two target departure locations include a first departure place and a second departure Land
采用所述第一目标出发地与所述目标目的地组合出去程路线组合,以及,采用所述第二目标出发地与所述目标目的地组合出返程路线组合;Combining the departure route combination with the target destination by using the first target departure place, and combining the return route combination with the target destination by using the second target departure place;
将所述去程路线组合和所述返程路线组合作为第二往返路线组合;Combining the forward route combination and the return route as a second round trip route combination;
和/或,and / or,
依次从所述m个出发地中选出两个目标出发地,以及,从所述n个目的地中选出两个目标目的地;所述两个目标出发地包括第三出发地和第四出发地,所述两个目标目的地包括第三目标目的地和第四目标目的地;Determining two target departure points from the m departure locations in turn, and selecting two target destinations from the n destinations; the two target departure locations including a third departure place and a fourth Starting point, the two target destinations include a third target destination and a fourth target destination;
采用所述第三目标出发地与所述第三目标目的地组合处去程路线组合,以及,采用所述第四目标出发地与所述第四目标目的地组合出返程路线组合;Using the third target departure place and the third target destination combination to perform a forward route combination, and combining the fourth target departure place and the fourth target destination to combine a return route combination;
将所述去程路线组合和所述返程路线组合作为第三往返路线组合;Combining the forward route combination and the return route as a third round trip route combination;
将所述第一往返路线组合,第二往返路线组合和/或第三往返路线组合作为缺口程路线组合。The first round trip route combination, the second round trip route combination, and/or the third round trip route combination are combined as a gap path route.
缺口程路线组合是指两个方向的行程,与往返程组合类似,不同之处在于出发地和目的地可以不同的。假设用户输入m个出发地,n个到达地,缺口程路线组合的数学表达式为:The gap path combination refers to the stroke in two directions, similar to the round trip combination, except that the departure place and the destination can be different. Suppose the user enters m departure points, n arrivals, and the mathematical expression of the combination of the gap path is:
1)出发地相同,到达地不同:C(m,1)*A(n,2)1) The departure place is the same, the arrival place is different: C(m, 1)*A(n, 2)
2)出发地不同,到达地相同:A(m,2)*C(n,1)2) The departure place is different, the arrival place is the same: A(m, 2)*C(n, 1)
3)出发地不同,到达地不同:A(m,2)*A(n,2)3) Different starting points, different places of arrival: A(m, 2)*A(n, 2)
合计C(m,1)*A(n,2)+A(m,2)*C(n,1)+A(m,2)*A(n,2)Total C(m,1)*A(n,2)+A(m,2)*C(n,1)+A(m,2)*A(n,2)
其中,C(m,1)*A(n,2)表示从m个到达地选择一个目标出发地,C(n,1)表示从n个目的地选择两个目标目的地,然后两者进行组合得到去程路线组合和返程路线组合, 即往返程路线组合。其中,去程路线组合和返程路线组合的到达地是不同的。A(m,2)*C(n,1)和A(m,2)*A(n,2)的类似就不赘述了。Where C(m,1)*A(n,2) indicates that one target departure point is selected from m destinations, and C(n,1) indicates that two target destinations are selected from n destinations, and then both The combination results in a combination of the forward route combination and the return route, that is, the round trip route combination. Among them, the arrival route combination of the forward route combination and the return route combination is different. The similarity of A(m, 2)*C(n, 1) and A(m, 2)*A(n, 2) will not be described.
通过上述方式得到多个往返程路线组合合并,即为本申请的缺口程路线组合。The combination of multiple round trip routes is obtained in the above manner, that is, the combination of the gap routes of the present application.
需要说明的是,当m或n为1时,这种情况下上述三种数学表达式并不适用。It should be noted that when m or n is 1, the above three mathematical expressions do not apply in this case.
本申请实施例中,可以按照单程路线组合、往返、缺口程路线进行组合得到多个路线组合,例如出发地输入:北京、天津;到达地输入:大阪、东京,那么路线组合的结果可以有:In the embodiment of the present application, a plurality of route combinations may be combined according to a one-way route combination, round-trip, and notch route, for example, a departure place input: Beijing, Tianjin; arrival destination input: Osaka, Tokyo, then the result of the route combination may have:
单程、往返路线组合各4个:Each of the one-way and round-trip routes is four:
北京-大阪Beijing-Osaka
北京-东京Beijing-Tokyo
天津-大阪Tianjin-Osaka
天津-东京Tianjin-Tokyo
缺口程路线组合8个:8 combinations of gap routes:
北京-大阪 大阪-天津Beijing-Osaka Osaka-Tianjin
北京-东京 东京-天津Beijing-Tokyo Tokyo-Tianjin
北京-大阪 东京-天津Beijing-Osaka Tokyo-Tianjin
北京-东京 大阪-天津Beijing-Tokyo Osaka-Tianjin
北京-东京 大阪-北京Beijing-Tokyo Osaka-Beijing
北京-大阪 东京-北京Beijing-Osaka Tokyo-Beijing
天津-东京 大阪-天津Tianjin-Tokyo Osaka-Tianjin
天津-大阪 天津-东京Tianjin-Osaka Tianjin-Tokyo
通过本申请实施例的多种路线组合方式,可以得到更多的路线组合,从而相应为用户提供更多的出行路线信息。Through the multiple route combination manners of the embodiments of the present application, more route combinations can be obtained, thereby providing more travel route information for the user.
在本申请的一种优选实施例中,在所述采用所述出发地和所述目的地组合出缺口程路线组合的步骤之前,还可以包括:In a preferred embodiment of the present application, before the step of combining the departure route and the destination to combine the gap path routes, the method may further include:
计算所述m和n之间的和值;Calculating a sum value between the m and n;
判断所述和值是否小于或等于预设数值;Determining whether the sum value is less than or equal to a preset value;
若是,则执行所述采用所述出发地和所述目的地组合出缺口程路线组合的步骤。If so, the step of combining the departure route and the destination to combine the notch path combinations is performed.
在实际应用中,如果用户输入的出发地和目的地的数量过大,如果进行路线组合那么得到的计算量会非常大,因此本申请实施例中如果发现m和n的和值大于预设数值p, 则不执行计算缺口程路线组合的步骤,如果小于预设数值p,则执行计算缺口程路线组合的步骤。In practical applications, if the number of departures and destinations input by the user is too large, the calculation amount obtained if the route combination is performed may be very large. Therefore, if the sum of m and n is found to be greater than the preset value in the embodiment of the present application, p, the step of calculating the combination of the notch path is not performed, and if it is less than the preset value p, the step of calculating the combination of the notch path is performed.
在本申请的一种优选实施例中,当所述m和n大于或等于2时,在所述采用所述出发地和所述目的地组合出缺口程路线组合的步骤之前,还可以包括:In a preferred embodiment of the present application, when the m and n are greater than or equal to 2, before the step of combining the departure route and the destination to combine the notch path combinations, the method may further include:
确定所述出发地是否为邻近地方,和/或,所述目的地是否为邻近地方;Determining whether the departure place is a neighboring place, and/or whether the destination is a neighboring place;
若所述出发地为邻近地方,和/或,所述目的地为邻近地方,则执行所述采用所述出发地和所述目的地组合出缺口程路线组合的步骤。If the departure place is a neighboring place, and/or the destination is a neighboring place, performing the step of combining the departure route and the destination to combine the notch path combinations.
在本申请实施例中,缺口程路线组合是往返的地方(例如机场城市)不一样的,在实际中如果是出发地或者目的地是邻近的地方,用户转乘比较方便。因此在本申请可以设置为出发地是邻近城市,或者目的地是邻近城市,才需执行计算缺口程路线组合的步骤。具体地,邻近城市(邻近机场城市)是指,获取到出发地地理坐标后,可找出直线距离L以内的其他有机场的城市。In the embodiment of the present application, the combination of the gap path route is different from the place where the round trip (for example, the airport city) is different. In actuality, if the departure place or the destination is a neighboring place, the user transfer is convenient. Therefore, in the present application, it can be set as the starting point is the neighboring city, or the destination is the neighboring city, and the step of calculating the gap path combination is performed. Specifically, the neighboring city (near the airport city) means that after obtaining the geographical coordinates of the departure place, other cities with airports within a straight line distance L can be found.
在本申请的另一种优选实施例中,当所述m和n大于或等于2时,在所述采用所述出发地和所述目的地组合出缺口程路线组合的步骤之前,还可以包括:In another preferred embodiment of the present application, when the m and n are greater than or equal to 2, before the step of combining the departure route and the destination to combine the notch path combinations, the method may further include :
确定所述出发地是否为热门地方,和/或,所述目的地是否为热门地方;Determining whether the departure place is a popular place, and/or whether the destination is a popular place;
若所述出发地为热门地方,和/或,所述目的地为热门地方,则执行所述采用所述出发地和所述目的地组合出缺口程路线组合的步骤。If the departure place is a hot place, and/or the destination is a hot place, the step of combining the departure route and the destination combination gap route is performed.
在本申请另一实施例中,缺口程路线组合是往返的地方(例如机场城市)不一样的,在实际中如果是出发地或者目的地是热门的地方,都是用户去某个国家游玩时的目的地,则在本申请可以设置为出发地是热门的城市,或者目的地是热门城市,才需执行计算缺口程路线组合的步骤。另外,如果用户只输入了一个出发地、一个到达地,程序还可以自动寻找这两个地方的邻近城市及所在国家内的其他热门城市,并将寻找到的多个出发地的城市、到达地的城市,按上述方式进行组合,在搜索结果中为用户推荐。In another embodiment of the present application, the combination of the gap path routes is different from the place where the round trip (for example, the airport city) is different. In actuality, if the departure place or the destination is a popular place, the user is going to play in a certain country. The destination, in this application can be set as the starting point is the hot city, or the destination is the hot city, only need to perform the steps of calculating the gap route combination. In addition, if the user only enters a departure place and a place of arrival, the program can automatically find the neighboring cities of the two places and other popular cities in the country, and will find the cities and destinations of the multiple departure places. Cities are combined as described above and recommended for users in search results.
需要说明的是,上述提及的关于邻近地方或者热门地方的判断步骤仅仅是作为一种可选的示例,在实际应用时可以择一执行,一起执行或者不执行,本申请实施例对此并不加以限制。It should be noted that the step of judging the neighboring place or the hot place mentioned above is only an optional example, and may be executed in the actual application, performed together or not, and the embodiment of the present application No restrictions.
步骤203,采用所述路线组合搜索得到对应的出行路线信息。Step 203: Search for the corresponding travel route information by using the route combination search.
当服务器得到单程路线组合、往返路线组合以及缺口程路线组合之后,将分别基于多个路线组合触发搜索,得到各个路线组合对应的出行路线信息。After the server obtains the one-way route combination, the round-trip route combination, and the gap route combination, the search is triggered based on the multiple route combinations respectively, and the travel route information corresponding to each route combination is obtained.
步骤204,确定排序规则,并按照所述排序规则对所述出行路线信息进行排序。Step 204: Determine a sorting rule, and sort the travel route information according to the sorting rule.
在得到出行路线信息后,还可以进一步为用户从中筛选出最适合用户的出行路线信息作为目标出行路线信息。在实际应用中,最适合可以是指价格高低进行排序,并将价格较低的出行路线信息反馈给用户(对于大多数用户来说)。此为,还可以根据用户的消费能力、消费习惯、直飞中转偏好、航司偏好、中转地偏好等综合出目标出行路线信息。After obtaining the travel route information, the user may further select the travel route information that is most suitable for the user as the target travel route information. In practical applications, the most suitable can be to sort the price, and feedback the lower-priced travel route information to the user (for most users). Therefore, the target travel route information can also be integrated according to the user's spending power, consumption habits, direct flight transit preferences, airline preferences, transit preferences, and the like.
步骤205,基于排序结果确定目标出行路线信息,并将所述目标出行路线信息推荐至用户。Step 205: Determine target travel route information based on the sort result, and recommend the target travel route information to the user.
参照图5,在本申请实施例中,根据用户输入的m个出发地和n个到达地,依次进行如下组合:Referring to FIG. 5, in the embodiment of the present application, according to m departure points and n arrival places input by the user, the following combinations are sequentially performed:
1)组合m*n条单程路线,组合方式:
Figure PCTCN2018109581-appb-000001
如图5路线1-4所示。
1) Combine m*n one-way routes, combination method:
Figure PCTCN2018109581-appb-000001
As shown in Figure 1-4, route 1-4.
2)组合m*n条往返路线,组合方式:
Figure PCTCN2018109581-appb-000002
如图5路线5-8所示。
2) Combine m*n round-trip routes, combination method:
Figure PCTCN2018109581-appb-000002
See Figure 5, route 5-8.
3)如果m+n<p,组合缺口程路线,组合方式如图5路线9-20所示。3) If m+n<p, combine the notch path, the combination mode is shown in Figure 9-20.
其中,p为整数参数,是一个预设数值,设置此条件的目的在于避免服务器计算量过大,一般p最大为5为宜。Where p is an integer parameter, which is a preset value. The purpose of setting this condition is to avoid excessive calculation of the server. Generally, the maximum p is 5.
按照上述方式组合,并搜索路线低价后,将最适合用户的几条路线返回给前端展示;或者返回全部,按最适合的方式排序,用户可根据自己的喜好筛选单程、往返、缺口程路线。After combining the above methods and searching for the low route, return the most suitable routes to the front-end display; or return all, sorted in the most suitable way, the user can filter one-way, round-trip, and short-distance routes according to their own preferences. .
在实际中,为用户展示搜索结果,即出行路线信息的方式有多种。以机票搜索为例,参照图6,可以将所有路线的航班按一定的排序方式(价格高低)排列在同一个列表中,并标示出是什么路线,例如天津-香港,天津-澳门;参照图7,可以展示组合出来的路线组合及每条路线组合的最低价格及航班信息,点击后跳转到该航线的航班列表页;参照图8,可以展示组合出来的路线组合及每条路线组合的最低价格,点击后跳转到该航线的航班列表页。当然,上述搜索结果的展示方式仅仅是作为示例,在实际应用中还可以采用其他方式为用户展示搜索结果,例如,可以多个页面展示的方式,即并不是在同一个页面中展示,例如,一个页面用于展示天津-香港,一个页面用于展示天津-澳门,此外,还可以是在地图上展示趋势图对比,在相应的地点上标示出价格以及其他信息,本申请实施例对此无需加以限制。In practice, there are many ways to display search results for users, that is, travel route information. Taking the ticket search as an example, referring to Figure 6, the flights of all routes can be arranged in the same list according to a certain order (price level), and indicate what route, such as Tianjin-Hong Kong, Tianjin-Macau; 7, can display the combined route combination and the lowest price and flight information of each route combination, click to jump to the flight list page of the route; refer to Figure 8, can show the combined route combination and each route combination The lowest price, click to jump to the flight list page of the route. Of course, the above search results are displayed as an example. In actual applications, other methods may be used to display the search results for the user. For example, the manner in which multiple pages may be displayed, that is, not displayed on the same page, for example, One page is used to display Tianjin-Hong Kong, one page is used to display Tianjin-Macau, and in addition, a trend chart comparison can be displayed on the map, and the price and other information are marked on the corresponding place, which is not required for the embodiment of the present application. Limit it.
步骤206,缓存所述出发地和所述目的地,以及所述出发地和所述目的地对应的出行路线信息。Step 206: Cache the departure place and the destination, and the travel route information corresponding to the departure place and the destination.
在实际应用中,服务器可以缓存在先搜索的出发地和目的地,以及相应的出行路线 信息。具体地,服务器可以存储在一天之内相同条件的搜索结果中,最近搜索的一次作为缓存,那么在采用相同的出发地和目的地搜索时无需重复搜索,可以避免由于多个出发地和目的地组合进行搜索带来的服务器过载问题。In practical applications, the server can cache the origin and destination of the previous search, as well as the corresponding travel route information. Specifically, the server can store the search result of the same condition within one day, and the most recent search is used as the cache, so that the search for the same departure place and destination does not need to be repeated, and multiple destinations and destinations can be avoided. Combine the server overload caused by the search.
本申请实施例,将多个出发地和多个目的地组合,生成多条路线组合,然后基于路线组合分别搜索出行路线信息,方便用户对比数据。In the embodiment of the present application, a plurality of departure points and a plurality of destinations are combined to generate a plurality of route combinations, and then the travel route information is separately searched based on the route combination, so that the user can compare the data.
为了使本领域技术人员更好地理解本申请实施例,以下采用具体的实例对于本申请实现出行路线信息搜索的过程。以机票搜索为例,具体搜索过程如下所示:In order to enable those skilled in the art to better understand the embodiments of the present application, a specific example is used to implement the process of travel route information search for the present application. Take the ticket search as an example. The specific search process is as follows:
1)用户在机票搜索页面点击出发地选项进入出发城市选择页;1) The user clicks on the departure place option on the ticket search page to enter the departure city selection page;
2)用户在出发城市选择页勾选n个城市后,点击确定;2) After the user selects n cities in the departure city selection page, click OK;
3)将勾选的出发地带入搜索页;用户继续点击到达地选项进入到达城市选择页;3) Bring the checked departure to the search page; the user continues to click the arrival option to enter the arrival city selection page;
4)用户在到达城市选择页勾选m个城市后,点击确定;4) After the user selects m cities on the arrival city selection page, click OK;
5)将勾选的到达地带入搜索页;用户点击“开始搜索”按钮;5) Bring the checked arrival to the search page; the user clicks the "Start Search" button;
6)跳转到搜索结果页,基于出发地和到达地自动进行路线组合,进行n*m次搜索,并将搜索结果展示在同一个页面中,以tab(表格)的形式展现,这样用户可以轻松比较各个搜索结果,也即是出行路线信息的价格、时间、距离等等;6) Jump to the search result page, automatically perform route combination based on the departure place and the arrival place, perform n*m search, and display the search results on the same page, and display them in tab form, so that the user can Easily compare individual search results, which is the price, time, distance, etc. of the travel route information;
7)用户可以通过切换tab查看其他路线的搜索结果。7) Users can view the search results of other routes by switching tabs.
应用本申请实施例,可以一次性输入多个出发地、到达地,并基于多个出发地、到达地进行路线组合,然后就能够基于路线组合分别触发搜索,等等不同路线组合的搜索结果。With the embodiment of the present application, a plurality of departure places and arrival places can be input at a time, and route combinations are performed based on a plurality of departure places and arrival places, and then search can be triggered separately based on the route combination, and the search results of different route combinations can be performed.
参照图9,示出了本申请的一种出行路线信息的搜索方法实施例3的结构框图,具体可以包括如下步骤:Referring to FIG. 9, a structural block diagram of Embodiment 3 of a method for searching for travel route information of the present application is shown, which may specifically include the following steps:
步骤301,获取用户输入或选择的至少一个出发地和至少一个目的地;Step 301: Acquire at least one origin and at least one destination input or selected by the user;
步骤302,采用所述出发地和目的地生成搜索请求并发送至服务器;Step 302: Generate a search request by using the origin and destination, and send the search request to the server.
步骤303,接收所述服务器基于所述搜索请求反馈的出行路线信息。Step 303: Receive travel route information that is fed back by the server based on the search request.
在本申请实施例中,在客户端侧获取用户输入的至少一个出发地和至少一个目的地,然后将至少一个出发地和至少一个目的地生成搜索请求发送至服务器,服务器接收到搜索请求后将基于至少一个出发地和至少一个目的地进行组合得到路线组合,然后基于路线组合触发搜索得到对应的出行路线信息,最后将出行路线信息反馈给客户端。In the embodiment of the present application, at least one departure place and at least one destination input by the user are acquired on the client side, and then at least one departure place and at least one destination generation search request are sent to the server, and the server will receive the search request after receiving the search request. The route combination is obtained based on combining at least one departure place and at least one destination, and then the corresponding travel route information is obtained by triggering the search based on the route combination, and finally the travel route information is fed back to the client.
在本申请的一种优选实施例中,所述获取用户输入或选择的至少一个出发地和至少一个目的地的步骤,即步骤301可以包括:In a preferred embodiment of the present application, the step of acquiring at least one origin and at least one destination input or selected by the user, that is, step 301 may include:
获取用户在搜索界面上输入的至少一个出发地和至少一个目的地;Obtaining at least one departure place and at least one destination input by the user on the search interface;
和/或,and / or,
获取用户在地图上选择的至少一个出发地和至少一个目的地;Obtaining at least one departure place and at least one destination selected by the user on the map;
和/或,and / or,
获取用户语音输入的至少一个出发地和至少一个目的地。Obtaining at least one origin and at least one destination of the user's voice input.
需要说明的是,在本申请实施例中,出发地和目的地的输入或者选择,可以有多种实现方式。例如,一种方式是通过提供一个搜索界面,该搜索界面上具有出发地的选择列表和目的地的选择列表,用户从选择列表中选择出所需的出发地护照目的地,另一种方式是在地图上用户点击去选择出某个地点,然后就可以将这个地点作为出发地或者目的地,还有一种方式是,用户采用语音方式输入出发地或者目的地,然后在客户端或者服务器将该语音转换为文本,然后再将转换的文本作为出发地或者目的地。It should be noted that, in the embodiment of the present application, there may be multiple implementations of the input or selection of the departure place and the destination. For example, one way is by providing a search interface having a selection list of departure points and a selection list of destinations, the user selecting a desired destination passport destination from the selection list, and the other way is On the map, the user clicks to select a location, and then the location can be used as a departure or destination. Alternatively, the user can input the departure or destination by voice, and then the client or server will Convert the speech to text and then use the converted text as the starting point or destination.
当然,上述关于出发地或者目的地的输入或者选择仅仅是作为示例,在具体应用中,还可以采用其他方式实现,本申请实施例对此不加以限制。Of course, the above-mentioned input or selection regarding the departure point or the destination is only an example, and may be implemented in other manners in a specific application, which is not limited by the embodiment of the present application.
参照图10,示出了本申请的一种出行路线信息的搜索方法实施例4的结构框图,具体可以包括如下步骤:Referring to FIG. 10, a structural block diagram of Embodiment 4 of a method for searching for travel route information of the present application is shown, which may specifically include the following steps:
步骤401,提供搜索界面,在所述搜索界面中提供出发地输入或选择区域和目的地的输入或选择区域,所述出发地输入或选择区域用于获取至少一个出发地,所述目的地的输入或选择区域用于获取至少一个目的地; Step 401, providing a search interface in which an input or selection area of a departure place input or selection area and a destination is provided, the departure place input or selection area is used to acquire at least one departure place, the destination An input or selection area for obtaining at least one destination;
需要说明的是,本申请实施例中的搜索界面中,用户除了可以通过手动输入出发地或目的地之外,还可以通过诸如语音输入,地图上选择等方式完成出发地或目的地的输入,本申请实施例对此不加以限制。It should be noted that, in the search interface in the embodiment of the present application, the user can complete the input of the departure place or the destination by means of voice input, map selection, etc., in addition to manually inputting the departure place or the destination. This embodiment of the present application does not limit this.
在本申请实施例中,用户在终端设备的客户端上出行导航类app,会提供出发地输入或选择区域和目的地的输入或选择区域,在输入或选择区域中,用户可以根据自身需求,通过输入或者app上提供的地点列表选择出至少一个出发地和至少一个目的地。In the embodiment of the present application, the user travels the navigation app on the client of the terminal device, and provides an input or selection area for the input or selection area and destination of the departure place. In the input or selection area, the user can according to his own needs. At least one departure place and at least one destination are selected by input or a list of places provided on the app.
步骤402,接收用户输入或选择的至少一个出发地和至少一个目的地;Step 402: Receive at least one origin and at least one destination input or selected by a user;
当用户完成出发地和目的地的输入或者选择后,将基于用户选择从中确定出出发地和目的地。When the user completes the input or selection of the departure place and the destination, the departure place and the destination are determined based on the user selection.
步骤403,采用所述出发地和目的地生成搜索请求并发送至服务器;Step 403: Generate a search request by using the departure place and the destination, and send the search request to the server.
在得到出发地和目的地,可以将出发地和目的地生成的搜索请求发送至服务器,在 服务器中可以基于出发地和目的地进行组合,得到路线组合。当出发地或目的地并不是只有一个时,得到的路线组合是多个,则此时可以基于路线组合分别触发搜索,得到各个路线组合分别对应的出行路线组合。The search request generated by the departure place and the destination can be sent to the server when the departure place and the destination are obtained, and the route combination can be obtained in the server based on the combination of the departure place and the destination. When there is not only one departure destination or destination, and the obtained route combination is multiple, then the search may be triggered separately based on the route combination, and the travel route combination corresponding to each route combination is obtained.
在本申请的一种优选实施例中,所述基于所述出发地和目的地生成搜索请求并发送至服务器的步骤包括:In a preferred embodiment of the present application, the step of generating a search request based on the origin and destination and transmitting to the server includes:
采用所述出发地和所述目的地组合出路线组合;Combining the route and the destination to combine the route;
采用所述出路线组合生成搜索请求并发送至服务器。A search request is generated using the outgoing route combination and sent to the server.
在本申请实施例中,除了可以在服务器中基于出发地和目的地组合出路线组合之外,也可以在客户端中基于出发地和目的地组合出路线组合,然后再基于路线组合生成搜索请求并发送至服务器,本申请实施例对此不加以限制。In the embodiment of the present application, in addition to combining the route combination based on the departure place and the destination in the server, the route combination may be combined in the client based on the departure place and the destination, and then the search request is generated based on the route combination. The embodiment of the present application does not limit this.
当然,在实际中,还可以将用户输入的时间信息以及其他信息与出发地和目的地一起生成搜索请求,本申请实施例对此也无需加以限制。Of course, in practice, the time information and other information input by the user may be generated together with the departure place and the destination to generate a search request, which is not limited in this embodiment of the present application.
步骤404,接收所述服务器基于所述搜索请求反馈的出行路线信息。Step 404: Receive travel route information that is sent by the server based on the search request.
当服务器基于搜索请求搜索到出行路线信息后,将该出行路线信息反馈至客户端,并在客户端的页面上展示给用户。After the server searches for the travel route information based on the search request, the travel route information is fed back to the client and displayed to the user on the client's page.
在本申请的一种优选实施例中,在所述接收所述服务器基于所述搜索请求反馈的出现路线信息的之后,即步骤304之后还可以包括:In a preferred embodiment of the present application, after the receiving the route information of the server based on the search request feedback, that is, after step 304, the method may further include:
确定排序规则,并按照所述排序规则对所述出行路线信息进行排序;Determining a sorting rule, and sorting the travel route information according to the sorting rule;
基于排序结果确定目标出行路线信息,并将所述目标出行路线信息展示于客户端的页面中。The target travel route information is determined based on the sort result, and the target travel route information is displayed on the client's page.
在接收到服务器反馈的出行路线信息后,还可以在客户端侧为用户从中筛选出最适合用户的出行路线信息作为目标出行路线信息。在实际应用中,最适合可以是指价格高低进行排序,并将价格较低的出行路线信息反馈给用户(对于大多数用户来说)。此为,还可以根据用户的消费能力、消费习惯、直飞中转偏好、航司偏好、中转地偏好等综合出目标出行路线信息。After receiving the travel route information fed back by the server, the user may also select the travel route information that is most suitable for the user as the target travel route information from the client side. In practical applications, the most suitable can be to sort the price, and feedback the lower-priced travel route information to the user (for most users). Therefore, the target travel route information can also be integrated according to the user's spending power, consumption habits, direct flight transit preferences, airline preferences, transit preferences, and the like.
在本申请的一种优选实施例中,所述将所述目标出行路线信息展示于客户端的页面中,包括:In a preferred embodiment of the present application, the displaying the target travel route information on the page of the client includes:
将所述目标出行路线信息写入客户端的页面的预设表格中;Writing the target travel route information into a preset table of a page of the client;
在所述表格中展现所述目标出行路线信息;所述表格为一个或多个;Presenting the target travel route information in the table; the form is one or more;
根据用户操作切换所述表格显示不同表格中的目标出行路线信息。The table is switched according to user operations to display target travel route information in different forms.
在实际中,经排序后的目标出行路线信息可能有多条,为了能够更好地将搜索结果数据展示给用户,在本申请的一种优选示例中可以将目标出行路线信息填入客户端页面的表格中,由于客户端页面的限制,有可能在一个表格不能填入所有的目标出行路线信息,那么可以在同一页面中分页展示,然后用户可以根据也上的切换按钮进行表格的切换。In practice, there may be multiple pieces of targeted travel route information. In order to better display the search result data to the user, in a preferred example of the present application, the target travel route information may be filled into the client page. In the table, due to the limitation of the client page, it is possible that a table cannot fill in all the target travel route information, then the page can be displayed on the same page, and then the user can switch the table according to the switch button also on the table.
需要说明的是,在本申请实施例中,关于目标出行路线信息展示方式,除了可以写入表格分页展示之外,还可以将得到的目标出行路线信息转换为趋势图,趋势图可以让用户阅读起来更加直观,用户体验较好。It should be noted that, in the embodiment of the present application, regarding the target travel route information display manner, in addition to being able to write the table pagination display, the obtained target travel route information can be converted into a trend graph, and the trend graph can be read by the user. It is more intuitive and the user experience is better.
应用本申请实施例,用户在客户端侧输入一个或多个出发地和一个或多个目的地,然后基于用户输入的出发地和目的地生成搜索请求发送至服务器,服务器则将针对出发地和目的地反馈相应的出行路线信息。应用本申请实施例可以一次性输入多个出发地和多个目的地,而对于客户端侧的用户而言只需要点击一次触发即可,与现有技术相比,不需要多次输入出发地和目的地,然后点击多次分别触发,减少了用户操作,并且由于本申请实施例能够一次性完成全部路线组合的搜索并得到相应的出行路线信息,提高了搜索效率,使得用户能够同时获得不同路线组合的出行路线信息,便于用户进行不同路线组合的出行路线信息的对比,提升了用户使用体验。Applying the embodiment of the present application, the user inputs one or more departure places and one or more destinations on the client side, and then generates a search request to the server based on the origin and destination input by the user, and the server will target the departure place and The destination feedbacks the corresponding travel route information. The application of the embodiment of the present application can input multiple departure locations and multiple destinations at one time, and only need to click once for the user on the client side, and does not need to input the departure place multiple times compared with the prior art. And the destination, and then clicking multiple times to trigger separately, reducing the user operation, and since the embodiment of the present application can complete the search of all the route combinations at one time and obtain the corresponding travel route information, the search efficiency is improved, and the user can simultaneously obtain different The route information of the route combination is convenient for the user to compare the travel route information of different route combinations, thereby improving the user experience.
需要说明的是,对于方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请实施例并不受所描述的动作顺序的限制,因为依据本申请实施例,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作并不一定是本申请实施例所必须的。It should be noted that, for the method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those skilled in the art should understand that the embodiments of the present application are not limited by the described action sequence, because In accordance with embodiments of the present application, certain steps may be performed in other sequences or concurrently. In the following, those skilled in the art should also understand that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required in the embodiments of the present application.
参照图11,示出了本申请的一种出行路线信息的搜索装置实施例1的结构框图,具体可以包括如下模块:Referring to FIG. 11, a structural block diagram of Embodiment 1 of a search device for travel route information of the present application is shown, which may specifically include the following modules:
搜索请求接收模块501,用于接收客户端发送的出行路线信息的搜索请求;所述搜索请求中包括至少一个出发地和至少一个目的地;The search request receiving module 501 is configured to receive a search request for travel route information sent by the client, where the search request includes at least one departure place and at least one destination;
路线组合模块502,用于采用所述出发地和所述目的地组合出路线组合;a route combination module 502, configured to combine a route combination by using the departure place and the destination;
出行路线信息搜索模块503,用于采用所述路线组合搜索得到对应的出行路线信息。The travel route information search module 503 is configured to use the route combination search to obtain corresponding travel route information.
在本申请的一种优选实施例中,所述出发地的个数为m,所述目的地的个数为n,所述m和n均为正整数,所述路线组合模块502包括:In a preferred embodiment of the present application, the number of the departure place is m, the number of the destination is n, and the m and n are both positive integers, and the route combination module 502 includes:
单程路线组合子模块,用于采用所述出发地和所述目的地组合出单程路线组合;a one-way route combination sub-module for combining a one-way route combination using the departure place and the destination;
和或,往返路线组合子模块,用于采用所述出发地和所述目的地组合出往返路线组合;And or, a round trip route combination submodule, configured to combine the round trip route combination by using the departure place and the destination;
和/或,缺口程路线组合子模块,用于采用所述出发地和所述目的地组合出缺口程路线组合。And/or a gap path combination sub-module for combining the notch path combination using the departure place and the destination.
在本申请的一种优选实施例中,所述单程路线组合子模块包括:In a preferred embodiment of the present application, the one-way route combination sub-module includes:
第一出发地选择单元,用于依次从所述m个出发地中选出一个目标出发地;a first departure place selection unit, configured to sequentially select one target departure place from the m departure points;
第一去程路线组合单元,用于分别采用所述目标出发地与所述n个目的地组合出去程路线组合;a first outbound route combining unit, configured to respectively combine the outbound route combination with the n destinations by using the target departure place;
单程路线组合获得单元,用于将所述去程路线组合作为单程路线组合。A one-way route combination obtaining unit for combining the forward route combinations as one-way route combinations.
在本申请的一种优选实施例中,所述往返路线组合子模块包括:In a preferred embodiment of the present application, the round trip route combination submodule includes:
第二出发地选择单元,用于依次从所述m个出发地中选出一个目标出发地;a second departure place selection unit, configured to sequentially select one target departure place from the m departure points;
第一往返程路线组合单元,用于采用所述目标出发地分别与所述n个目的地组合出去程路线组合和返程路线组合;a first round trip route combining unit, configured to combine the outbound route combination and the return route combination with the n destinations respectively by using the target departure place;
往返路线组合获得单元,用于将所述去程路线组合和所述返程路线组合作为往返路线组合。A round trip route combination obtaining unit is configured to combine the forward route combination and the return route as a round trip route combination.
在本申请的一种优选实施例中,当所述m和n大于或等于2时,所述缺口程路线组合子模块包括:In a preferred embodiment of the present application, when the m and n are greater than or equal to 2, the notch path combination submodule includes:
第一目标地点选择单元,用于依次从所述m个出发地中选出一个目标出发地,以及,从所述n个目的地中选出两个目标目的地;所述两个目标目的地包括第一目标目的地和第二目标目的地;a first target location selecting unit, configured to sequentially select one target origin from the m departure locations, and select two target destinations from the n destinations; the two target destinations Include a first target destination and a second target destination;
第二往返程路线组合单元,用于采用所述目标出发地与所述第一目标目的地组合出去程路线组合,以及,采用所述目标出发地与所述第二目标目的地组合出返程路线组合;a second round trip route combining unit, configured to combine the outbound route combination with the first target destination by using the target departure place, and combine the return route with the target destination and the second target destination by using the target departure place combination;
第一往返路线组合单元,用于将所述去程路线组合和所述返程路线组合作为第一往返路线组合;a first round trip route combining unit, configured to combine the forward route combination and the return route as a first round trip route combination;
和/或,and / or,
第二目标地点选择单元,用于依次从所述m个出发地中选出两个目标出发地,以及,从所述n个目的地中选出一个目标目的地;所述两个目标出发地包括第一出发地和第二出发地;a second target location selecting unit, configured to sequentially select two target departure sites from the m departure sites, and select one target destination from the n destinations; the two target departure sites Including the first departure place and the second departure place;
第三往返程路线组合单元,用于采用所述第一目标出发地与所述目标目的地组合出 去程路线组合,以及,采用所述第二目标出发地与所述目标目的地组合出返程路线组合;a third round trip route combining unit, configured to combine the outbound route combination with the target destination by using the first target departure place, and combine the return route with the target destination by using the second target departure place combination;
第二往返路线组合单元,用于将所述去程路线组合和所述返程路线组合作为第二往返路线组合;a second round trip route combining unit, configured to combine the forward route combination and the return route as a second round trip route combination;
和/或,and / or,
第三目标地点选择单元,用于依次从所述m个出发地中选出两个目标出发地,以及,从所述n个目的地中选出两个目标目的地;所述两个目标出发地包括第三出发地和第四出发地,所述两个目标目的地包括第三目标目的地和第四目标目的地;a third target location selecting unit, configured to sequentially select two target departure locations from the m departure locations, and select two target destinations from the n destinations; The ground includes a third departure place and a fourth departure place, the two target destinations including a third target destination and a fourth target destination;
第四往返程路线组合单元,用于采用所述第三目标出发地与所述第三目标目的地组合处去程路线组合,以及,采用所述第四目标出发地与所述第四目标目的地组合出返程路线组合;a fourth round trip route combining unit, configured to use a combination of the third target departure place and the third target destination combination to go, and adopt the fourth target departure place and the fourth target purpose Combine the return route combination;
第三往返路线组合单元,用于将所述去程路线组合和所述返程路线组合作为第三往返路线组合;a third round trip route combining unit, configured to combine the forward route combination and the return route as a third round trip route combination;
缺口程路线组合获得单元,用于将所述第一往返路线组合,第二往返路线组合和/或第三往返路线组合作为缺口程路线组合。A notch path combination obtaining unit is configured to combine the first round trip route combination, the second round trip route combination, and/or the third round trip route combination as a gap path route combination.
在本申请的一种优选实施例中,还包括:In a preferred embodiment of the present application, the method further includes:
和值计算子模块,用于计算所述m和n之间的和值;And a value calculation submodule for calculating a sum value between the m and n;
和值判断子模块,用于判断所述和值是否小于或等于预设数值;若是,则调用缺口程路线组合子模块。And a value judgment sub-module, configured to determine whether the sum value is less than or equal to a preset value; if yes, call the gap path combination sub-module.
在本申请的一种优选实施例中,当所述m和n大于或等于2时,还包括:In a preferred embodiment of the present application, when the m and n are greater than or equal to 2, the method further includes:
邻近地方确定子模块,用于确定所述出发地是否为邻近地方,和/或,所述目的地是否为邻近地方;若所述出发地为邻近地方,和/或,所述目的地为邻近地方,则调用缺口程路线组合子模块。a neighboring determination sub-module for determining whether the departure place is a neighboring place, and/or whether the destination is a neighboring place; if the departure place is a neighboring place, and/or the destination is a neighbor Where, the notch path combination sub-module is called.
在本申请的另一种优选实施例中,当所述m和n大于或等于2时,还包括:In another preferred embodiment of the present application, when the m and n are greater than or equal to 2, the method further includes:
热门地方确定子模块,用于确定所述出发地是否为热门地方,和/或,所述目的地是否为热门地方;若所述出发地为热门地方,和/或,所述目的地为热门地方,则调用缺口程路线组合子模块。a hot place determination sub-module for determining whether the departure place is a hot place, and/or whether the destination is a popular place; if the departure place is a popular place, and/or the destination is popular Where, the notch path combination sub-module is called.
在本申请的一种优选实施例中,还包括:In a preferred embodiment of the present application, the method further includes:
排序模块,用于确定排序规则,并按照所述排序规则对所述出行路线信息进行排序;a sorting module, configured to determine a sorting rule, and sort the travel route information according to the sorting rule;
目标出行路线信息推荐模块,用于基于排序结果确定目标出行路线信息,并将所述目标出行路线信息推荐至用户。The target travel route information recommendation module is configured to determine target travel route information based on the sort result, and recommend the target travel route information to the user.
在本申请的一种优选实施例中,还包括:In a preferred embodiment of the present application, the method further includes:
缓存模块,用于缓存所述出发地和所述目的地,以及所述出发地和所述目的地对应的出行路线信息。a cache module, configured to cache the departure place and the destination, and the travel route information corresponding to the departure place and the destination.
参照图12,示出了本申请的一种出行路线信息的搜索装置实施例2的结构框图,具体可以包括如下模块:Referring to FIG. 12, a structural block diagram of Embodiment 2 of a search device for travel route information of the present application is shown, which may specifically include the following modules:
地点获取模块601,用于获取用户输入或选择的至少一个出发地和至少一个目的地;a location obtaining module 601, configured to acquire at least one origin and at least one destination input or selected by the user;
搜索请求生成模块602,用于采用所述出发地和目的地生成搜索请求并发送至服务器;a search request generating module 602, configured to generate a search request by using the origin and destination, and send the request to the server;
出行路线信息接收模块603,用于接收所述服务器基于所述搜索请求反馈的出行路线信息。The travel route information receiving module 603 is configured to receive travel route information that is fed back by the server based on the search request.
在本申请的一种优选实施例中,所述地点获取模块601包括:In a preferred embodiment of the present application, the location obtaining module 601 includes:
界面输入子模块,用于获取用户在搜索界面上输入的至少一个出发地和至少一个目的地;An interface input submodule, configured to acquire at least one departure place and at least one destination input by the user on the search interface;
和/或,and / or,
地图选择子模块,用于获取用户在地图上选择的至少一个出发地和至少一个目的地;a map selection submodule, configured to acquire at least one departure place and at least one destination selected by the user on the map;
和/或,and / or,
语音输入子模块,用于获取用户语音输入的至少一个出发地和至少一个目的地。The voice input submodule is configured to acquire at least one origin and at least one destination of the user voice input.
参照图13,示出了本申请的一种出行路线信息的搜索装置实施例3的结构框图,具体可以包括如下模块:Referring to FIG. 13, a structural block diagram of a third embodiment of a search device for traveling route information of the present application is shown, which may specifically include the following modules:
搜索界面提供模块701,用于提供搜索界面,在所述搜索界面中提供出发地输入或选择区域和目的地的输入或选择区域,所述出发地输入或选择区域用于获取至少一个出发地,所述目的地的输入或选择区域用于获取至少一个目的地;a search interface providing module 701, configured to provide a search interface in which an input or selection area for inputting or selecting an area and a destination for providing at least one departure place is provided, The input or selection area of the destination is used to acquire at least one destination;
地点接收模块702,用于接收用户输入或选择的至少一个出发地和至少一个目的地;a location receiving module 702, configured to receive at least one origin and at least one destination input or selected by a user;
搜索请求发送模块703,用于采用所述出发地和目的地生成搜索请求并发送至服务器;a search request sending module 703, configured to generate a search request by using the origin and destination, and send the request to the server;
出现路线信息接收模块704,用于接收所述服务器基于所述搜索请求反馈的出现路线信息。The appearance route information receiving module 704 is configured to receive the appearance route information that the server feeds back based on the search request.
在本申请的一种优选实施例中,所述搜索请求发送模块703包括:In a preferred embodiment of the present application, the search request sending module 703 includes:
路线组合子模块,用于采用所述出发地和所述目的地组合出路线组合;a route combination submodule, configured to combine a route combination by using the departure place and the destination;
搜索请求生成子模块,用于采用所述出路线组合生成搜索请求并发送至服务器。The search request generation submodule is configured to generate a search request by using the outbound route combination and send the request to the server.
在本申请的一种优选实施例中,所述装置还可以包括:In a preferred embodiment of the present application, the device may further include:
排序模块,用于确定排序规则,并按照所述排序规则对所述出行路线信息进行排序;a sorting module, configured to determine a sorting rule, and sort the travel route information according to the sorting rule;
目标出行路线信息推荐模块,用于基于排序结果确定目标出行路线信息,并将所述目标出行路线信息展示于客户端的页面中。The target travel route information recommendation module is configured to determine the target travel route information based on the sorting result, and display the target travel route information on the client's page.
在本申请的一种优选实施例中,所述目标出行路线信息推荐模块包括:In a preferred embodiment of the present application, the target travel route information recommendation module includes:
表格填入单元,用于将所述目标出行路线信息写入客户端的页面的预设表格中;a form filling unit, configured to write the target travel route information into a preset form of a page of the client;
目标出行路线信息展现单元,用于在所述表格中展现所述目标出行路线信息;所述表格为一个或多个;a target travel route information presentation unit, configured to display the target travel route information in the table; the form is one or more;
表格切换单元,用于根据用户操作切换所述表格显示不同表格中的目标出行路线信息。The table switching unit is configured to switch the table to display target travel route information in different forms according to a user operation.
对于装置实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。For the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment.
本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。The various embodiments in the present specification are described in a progressive manner, and each embodiment focuses on differences from other embodiments, and the same similar parts between the various embodiments can be referred to each other.
本领域内的技术人员应明白,本申请实施例的实施例可提供为方法、装置、或计算机程序产品。因此,本申请实施例可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请实施例可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that embodiments of the embodiments of the present application can be provided as a method, apparatus, or computer program product. Therefore, the embodiments of the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware. Moreover, embodiments of the present application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
在一个典型的配置中,所述计算机设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储 器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括非持续性的电脑可读媒体(transitory media),如调制的数据信号和载波。In a typical configuration, the computer device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory. The memory may include non-persistent memory, random access memory (RAM), and/or non-volatile memory in a computer readable medium, such as read only memory (ROM) or flash memory. Memory is an example of a computer readable medium. Computer readable media includes both permanent and non-persistent, removable and non-removable media. Information storage can be implemented by any method or technology. The information can be computer readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory. (ROM), electrically erasable programmable read only memory (EEPROM), flash memory or other memory technology, compact disk read only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, Magnetic tape cartridges, magnetic tape storage or other magnetic storage devices or any other non-transportable media can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include non-persistent computer readable media, such as modulated data signals and carrier waves.
本申请实施例是参照根据本申请实施例的方法、终端设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理终端设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理终端设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。Embodiments of the present application are described with reference to flowcharts and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the present application. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor or other programmable data processing terminal device to produce a machine such that instructions are executed by a processor of a computer or other programmable data processing terminal device Means are provided for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理终端设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing terminal device to operate in a particular manner, such that instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device. The instruction device implements the functions specified in one or more blocks of the flow or in a flow or block diagram of the flowchart.
这些计算机程序指令也可装载到计算机或其他可编程数据处理终端设备上,使得在计算机或其他可编程终端设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程终端设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device such that a series of operational steps are performed on the computer or other programmable terminal device to produce computer-implemented processing, such that the computer or other programmable terminal device The instructions executed above provide steps for implementing the functions specified in one or more blocks of the flowchart or in a block or blocks of the flowchart.
尽管已描述了本申请实施例的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例做出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本申请实施例范围的所有变更和修改。While a preferred embodiment of the embodiments of the present application has been described, those skilled in the art can make further changes and modifications to the embodiments once they are aware of the basic inventive concept. Therefore, the appended claims are intended to be interpreted as including all the modifications and the modifications
最后,还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者终端设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者终端设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者终端设备 中还存在另外的相同要素。Finally, it should also be noted that in this context, relational terms such as first and second are used merely to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply these entities. There is any such actual relationship or order between operations. Furthermore, the terms "comprises" or "comprising" or "comprising" or any other variations are intended to encompass a non-exclusive inclusion, such that a process, method, article, or terminal device that includes a plurality of elements includes not only those elements but also Other elements that are included, or include elements inherent to such a process, method, article, or terminal device. An element defined by the phrase "comprising a ..." without further limitation does not exclude the presence of additional identical elements in the process, method, article or terminal device including the element.
以上对本申请所提供的一种出行路线信息的搜索方法和一种出行路线信息的搜索装置,进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The above is a detailed description of a travel route information search method and a travel route information search device provided by the present application. The principle and implementation manner of the present application are described in the following. The descriptions are only used to help understand the method of the present application and its core ideas; at the same time, for those of ordinary skill in the art, according to the idea of the present application, there will be changes in the specific embodiments and application scopes. The contents of this specification are not to be construed as limiting the present application.

Claims (22)

  1. 一种搜索方法,其特征在于,包括:A search method, comprising:
    接收客户端发送的出行路线信息的搜索请求;所述搜索请求中包括至少一个出发地和至少一个目的地;Receiving a search request for travel route information sent by the client; the search request includes at least one departure place and at least one destination;
    采用所述出发地和所述目的地组合出路线组合;Combining the route and the destination to combine the route;
    采用所述路线组合,搜索得到对应的出行路线信息。Using the combination of the routes, the search obtains corresponding travel route information.
  2. 根据权利要求1所述的方法,其特征在于,所述出发地的个数为m,所述目的地的个数为n,所述m和n均为正整数,The method according to claim 1, wherein the number of the departure places is m, the number of the destinations is n, and the m and n are positive integers.
    所述采用所述出发地和所述目的地组合出路线组合,包括以下所列中的一种或结合:Combining the departure route and the destination with a combination of routes, including one or a combination of the following:
    采用所述出发地和所述目的地组合出单程路线组合;Combining one-way route combination using the departure place and the destination;
    采用所述出发地和所述目的地组合出往返路线组合;Combining the departure route and the destination to combine a round trip route;
    或,采用所述出发地和所述目的地组合出缺口程路线组合。Or, combining the departure place and the destination to form a combination of the notch path.
  3. 根据权利要求2所述的方法,其特征在于,所述采用所述出发地和所述目的地组合出单程路线组合的步骤,包括:The method according to claim 2, wherein the step of combining the departure route and the destination to combine a one-way route comprises:
    依次从所述m个出发地中选出一个目标出发地;Selecting a target departure point from the m departure points in turn;
    分别采用所述目标出发地与所述n个目的地组合出去程路线组合;Combining the departure route with the n destinations by using the target departure place;
    将所述去程路线组合作为单程路线组合。The outbound route combination is used as a one-way route combination.
  4. 根据权利要求2所述的方法,其特征在于,所述采用所述出发地和所述目的地组合出往返路线组合的步骤,包括:The method of claim 2, wherein the step of combining the departure route and the destination to combine a round trip route comprises:
    依次从所述m个出发地中选出一个目标出发地;Selecting a target departure point from the m departure points in turn;
    采用所述目标出发地分别与所述n个目的地组合出去程路线组合和返程路线组合;Combining the outbound route combination and the return route combination with the n destinations respectively by using the target departure place;
    将所述去程路线组合和所述返程路线组合作为往返路线组合。The combination of the forward route combination and the return route is combined as a round trip route.
  5. 根据权利要求2所述的方法,其特征在于,当所述m和/或n大于或等于2时,所述采用所述出发地和所述目的地组合出缺口程路线组合的步骤,包括:The method according to claim 2, wherein when the m and/or n is greater than or equal to 2, the step of combining the departure route and the destination to combine the notch path combinations comprises:
    依次从所述m个出发地中选出一个目标出发地,以及,从所述n个目的地中选出两个目标目的地;所述两个目标目的地包括第一目标目的地和第二目标目的地;Selecting one target departure point from the m departure points, and selecting two target destinations from the n destinations; the two target destinations including the first target destination and the second Target destination
    采用所述目标出发地与所述第一目标目的地组合出去程路线组合,以及,采用所述目标出发地与所述第二目标目的地组合出返程路线组合;Combining the outbound route combination with the first target destination by using the target departure place, and combining the return route combination with the target destination and the second target destination;
    将所述去程路线组合和所述返程路线组合作为第一往返路线组合;和/或,Combining the forward route combination and the return route as a first round trip route combination; and/or,
    依次从所述m个出发地中选出两个目标出发地,以及,从所述n个目的地中选出一个目标目的地;所述两个目标出发地包括第一出发地和第二出发地;Selecting two target departure points from the m departure locations in turn, and selecting one target destination from the n destinations; the two target departure locations include a first departure place and a second departure Land
    采用所述第一目标出发地与所述目标目的地组合出去程路线组合,以及,采用所述第二目标出发地与所述目标目的地组合出返程路线组合;Combining the departure route combination with the target destination by using the first target departure place, and combining the return route combination with the target destination by using the second target departure place;
    将所述去程路线组合和所述返程路线组合作为第二往返路线组合;Combining the forward route combination and the return route as a second round trip route combination;
    和/或,and / or,
    依次从所述m个出发地中选出两个目标出发地,以及,从所述n个目的地中选出两个目标目的地;所述两个目标出发地包括第三出发地和第四出发地,所述两个目标目的地包括第三目标目的地和第四目标目的地;Determining two target departure points from the m departure locations in turn, and selecting two target destinations from the n destinations; the two target departure locations including a third departure place and a fourth Starting point, the two target destinations include a third target destination and a fourth target destination;
    采用所述第三目标出发地与所述第三目标目的地组合处去程路线组合,以及,采用所述第四目标出发地与所述第四目标目的地组合出返程路线组合;Using the third target departure place and the third target destination combination to perform a forward route combination, and combining the fourth target departure place and the fourth target destination to combine a return route combination;
    将所述去程路线组合和所述返程路线组合作为第三往返路线组合;Combining the forward route combination and the return route as a third round trip route combination;
    将所述第一往返路线组合,第二往返路线组合和/或第三往返路线组合作为缺口程路线组合。The first round trip route combination, the second round trip route combination, and/or the third round trip route combination are combined as a gap path route.
  6. 根据权利要求2所述的方法,其特征在于,在所述采用所述出发地和所述目的地组合出缺口程路线组合的步骤之前,还包括:The method according to claim 2, further comprising: before the step of combining the departure route and the destination with a combination of the notch path routes, further comprising:
    计算所述m和n之间的和值;Calculating a sum value between the m and n;
    判断所述和值是否小于或等于预设数值;Determining whether the sum value is less than or equal to a preset value;
    若是,则执行所述采用所述出发地和所述目的地组合出缺口程路线组合的步骤。If so, the step of combining the departure route and the destination to combine the notch path combinations is performed.
  7. 根据权利要求2或6所述的方法,其特征在于,当所述m和n大于或等于2时,在所述采用所述出发地和所述目的地组合出缺口程路线组合的步骤之前,还包括:The method according to claim 2 or 6, wherein when said m and n are greater than or equal to 2, before said step of combining said origin and said destination to combine a notch path combination, Also includes:
    确定所述出发地是否为邻近地方,和/或,所述目的地是否为邻近地方;Determining whether the departure place is a neighboring place, and/or whether the destination is a neighboring place;
    若所述出发地为邻近地方,和/或,所述目的地为邻近地方,则执行所述采用所述出发地和所述目的地组合出缺口程路线组合的步骤。If the departure place is a neighboring place, and/or the destination is a neighboring place, performing the step of combining the departure route and the destination to combine the notch path combinations.
  8. 根据权利要求2或6所述的方法,其特征在于,当所述m和n大于或等于2时,在所述采用所述出发地和所述目的地组合出缺口程路线组合的步骤之前,还包括:The method according to claim 2 or 6, wherein when said m and n are greater than or equal to 2, before said step of combining said origin and said destination to combine a notch path combination, Also includes:
    确定所述出发地是否为热门地方,和/或,所述目的地是否为热门地方;Determining whether the departure place is a popular place, and/or whether the destination is a popular place;
    若所述出发地为热门地方,和/或,所述目的地为热门地方,则执行所述采用所述出发地和所述目的地组合出缺口程路线组合的步骤。If the departure place is a hot place, and/or the destination is a hot place, the step of combining the departure route and the destination combination gap route is performed.
  9. 根据权利要求1所述的方法,其特征在于,在所述采用所述路线组合搜索得到 对应的出行路线信息的步骤之后,还包括:The method according to claim 1, wherein after the step of using the route combination search to obtain corresponding travel route information, the method further comprises:
    确定排序规则,并按照所述排序规则对所述出行路线信息进行排序;Determining a sorting rule, and sorting the travel route information according to the sorting rule;
    基于排序结果确定目标出行路线信息,并将所述目标出行路线信息推荐至用户。The target travel route information is determined based on the sort result, and the target travel route information is recommended to the user.
  10. 根据权利要求1所述的方法,其特征在于,还包括:The method of claim 1 further comprising:
    缓存所述出发地和所述目的地,以及所述出发地和所述目的地对应的出行路线信息。The departure place and the destination, and the travel route information corresponding to the departure place and the destination are cached.
  11. 一种搜索方法,其特征在于,包括:A search method, comprising:
    获取用户输入或选择的至少一个出发地和至少一个目的地;Obtaining at least one departure place and at least one destination input or selected by the user;
    采用所述出发地和目的地生成搜索请求,并发送至服务器;Generating a search request using the origin and destination, and transmitting to the server;
    接收所述服务器基于所述搜索请求反馈的出行路线信息。Receiving travel route information that the server feeds back based on the search request.
  12. 根据权利要求11所述的方法,其特征在于,所述获取用户输入或选择的至少一个出发地和至少一个目的地的步骤包括:The method according to claim 11, wherein the step of obtaining at least one origin and at least one destination input or selected by the user comprises:
    获取用户在搜索界面上输入的至少一个出发地和至少一个目的地;Obtaining at least one departure place and at least one destination input by the user on the search interface;
    和/或,and / or,
    获取用户在地图上选择的至少一个出发地和至少一个目的地;Obtaining at least one departure place and at least one destination selected by the user on the map;
    和/或,and / or,
    获取用户语音输入的至少一个出发地和至少一个目的地。Obtaining at least one origin and at least one destination of the user's voice input.
  13. 一种机票信息搜索方法,其特征在于,包括:A ticket information searching method, comprising:
    获取用户输入或选择的至少一个出发地和至少一个目的地;Obtaining at least one departure place and at least one destination input or selected by the user;
    采用所述出发地和目的地生成搜索请求,并发送至服务器;Generating a search request using the origin and destination, and transmitting to the server;
    接收所述服务器基于所述搜索请求返回的机票信息。Receiving ticket information returned by the server based on the search request.
  14. 一种机票信息搜索方法,其特征在于,包括:A ticket information searching method, comprising:
    接收客户端发送的机票信息的搜索请求;所述搜索请求中包括至少一个出发地和至少一个目的地;Receiving a search request for ticket information sent by the client; the search request includes at least one departure place and at least one destination;
    采用所述出发地和所述目的地组合出路线组合;Combining the route and the destination to combine the route;
    采用所述路线组合,搜索得到对应的机票信息,并返回给所述客户端。Using the route combination, the corresponding ticket information is searched and returned to the client.
  15. 一种搜索方法,其特征在于,包括:A search method, comprising:
    提供搜索界面,在所述搜索界面中提供出发地输入或选择区域和目的地的输入或选择区域,所述出发地输入或选择区域用于获取至少一个出发地,所述目的地的输入或选择区域用于获取至少一个目的地;Providing a search interface in which an input or selection area for entering or selecting a region and a destination for obtaining at least one departure place, the input or selection of the destination is provided The area is used to acquire at least one destination;
    接收用户输入或选择的至少一个出发地和至少一个目的地;Receiving at least one departure place and at least one destination input or selected by the user;
    采用所述出发地和目的地生成搜索请求并发送至服务器;Generating a search request using the origin and destination and transmitting to the server;
    接收所述服务器基于所述搜索请求反馈的出行路线信息。Receiving travel route information that the server feeds back based on the search request.
  16. 根据权利要求15所述的方法,其特征在于,所述基于所述出发地和目的地生成搜索请求并发送至服务器的步骤包括:The method according to claim 15, wherein said step of generating a search request based on said origin and destination and transmitting to a server comprises:
    采用所述出发地和所述目的地组合出路线组合;Combining the route and the destination to combine the route;
    采用所述出路线组合生成搜索请求并发送至服务器;其中,所述搜索请求还包括用户输入的时间信息。The search request is generated by using the outbound route combination and sent to the server; wherein the search request further includes time information input by the user.
  17. 根据权利要求15所述的方法,其特征在于,在所述接收所述服务器基于所述搜索请求反馈的出行路线信息的之后,还包括:The method according to claim 15, wherein after the receiving the travel route information that the server feeds back based on the search request, the method further includes:
    确定排序规则,并按照所述排序规则对所述出行路线信息进行排序;Determining a sorting rule, and sorting the travel route information according to the sorting rule;
    基于排序结果确定目标出行路线信息,并将所述目标出行路线信息展示于客户端的页面中。The target travel route information is determined based on the sort result, and the target travel route information is displayed on the client's page.
  18. 根据权利要求17所述的方法,其特征在于,将所述目标出行路线信息展示于客户端的页面中,包括:The method according to claim 17, wherein the displaying the target travel route information on the page of the client comprises:
    将所述目标出行路线信息写入客户端的页面的预设表格中;Writing the target travel route information into a preset table of a page of the client;
    在所述表格中展现所述目标出行路线信息;所述表格为一个或多个;Presenting the target travel route information in the table; the form is one or more;
    根据用户操作切换所述表格显示不同表格中的目标出行路线信息。The table is switched according to user operations to display target travel route information in different forms.
  19. 一种搜索装置,其特征在于,包括:A search device, comprising:
    搜索请求接收模块,用于接收客户端发送的出行路线信息的搜索请求;所述搜索请求中包括出发地和目的地;a search request receiving module, configured to receive a search request for travel route information sent by the client; the search request includes a departure place and a destination;
    路线组合模块,用于采用所述出发地和所述目的地组合出路线组合;a route combination module, configured to combine a route combination by using the departure place and the destination;
    出行路线信息搜索模块,用于采用所述路线组合分别触发搜索得到对应的出行路线信息。The travel route information search module is configured to trigger the search to obtain the corresponding travel route information by using the route combination.
  20. 一种搜索装置,其特征在于,包括:A search device, comprising:
    地点获取模块,用于获取用户输入或选择的至少一个出发地和至少一个目的地;a location obtaining module, configured to acquire at least one origin and at least one destination input or selected by the user;
    搜索请求生成模块,用于采用所述出发地和目的地生成搜索请求并发送至服务器;a search request generating module, configured to generate a search request by using the origin and destination, and send the request to the server;
    出行路线信息接收模块,用于接收所述服务器基于所述搜索请求反馈的出行路线信息。The travel route information receiving module is configured to receive travel route information that is fed back by the server based on the search request.
  21. 根据权利要求20所述的装置,其特征在于,所述地点获取模块包括:The device according to claim 20, wherein the location acquisition module comprises:
    界面输入子模块,用于获取用户在搜索界面上输入的至少一个出发地和至少一个目的地;An interface input submodule, configured to acquire at least one departure place and at least one destination input by the user on the search interface;
    和/或,and / or,
    地图选择子模块,用于获取用户在地图上选择的至少一个出发地和至少一个目的地;a map selection submodule, configured to acquire at least one departure place and at least one destination selected by the user on the map;
    和/或,and / or,
    语音输入子模块,用于获取用户语音输入的至少一个出发地和至少一个目的地。The voice input submodule is configured to acquire at least one origin and at least one destination of the user voice input.
  22. 一种搜索装置,其特征在于,包括:A search device, comprising:
    搜索界面提供模块,用于提供搜索界面,在所述搜索界面中提供出发地输入或选择区域和目的地的输入或选择区域,所述出发地输入或选择区域用于获取至少一个出发地,所述目的地的输入或选择区域用于获取至少一个目的地;a search interface providing module for providing a search interface in which an input or selection area for entering or selecting an area and a destination for providing at least one departure place, The input or selection area of the destination is used to acquire at least one destination;
    地点接收模块,用于接收用户输入或选择的至少一个出发地和至少一个目的地;a location receiving module, configured to receive at least one origin and at least one destination input or selected by the user;
    搜索请求发送模块,用于采用所述出发地和目的地生成搜索请求并发送至服务器;a search request sending module, configured to generate a search request by using the origin and destination, and send the request to the server;
    出行路线信息接收模块,用于接收所述服务器基于所述搜索请求反馈的出现路线信息。The travel route information receiving module is configured to receive the appearance route information that is fed back by the server based on the search request.
PCT/CN2018/109581 2017-10-18 2018-10-10 Search method and device WO2019076216A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710972607.XA CN109684562B (en) 2017-10-18 2017-10-18 Searching method and device
CN201710972607.X 2017-10-18

Publications (1)

Publication Number Publication Date
WO2019076216A1 true WO2019076216A1 (en) 2019-04-25

Family

ID=66174306

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/109581 WO2019076216A1 (en) 2017-10-18 2018-10-10 Search method and device

Country Status (3)

Country Link
CN (1) CN109684562B (en)
TW (1) TW201917607A (en)
WO (1) WO2019076216A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110489647B (en) * 2019-08-15 2021-08-24 海南太美航空股份有限公司 Airline information recommendation method, system, storage medium and computer equipment
CN110823239A (en) * 2019-11-12 2020-02-21 珠海格力电器股份有限公司 Navigation method, navigation device and electronic equipment
CN111102989A (en) * 2019-12-11 2020-05-05 维沃移动通信有限公司 Route display method and electronic equipment
CN114066344A (en) * 2020-08-08 2022-02-18 贵州百年四面通科技有限公司 Method, device and system for setting transportation route and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080300778A1 (en) * 2007-05-30 2008-12-04 Tele Atlas North America, Inc. System and method for personalizing trip assistance on a digital map
CN106610986A (en) * 2015-10-21 2017-05-03 深圳市赛格导航科技股份有限公司 Multi-destination route planning method and system
CN107133339A (en) * 2017-05-17 2017-09-05 北京趣拿软件科技有限公司 Circuit query method and apparatus and storage medium, processor

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080300778A1 (en) * 2007-05-30 2008-12-04 Tele Atlas North America, Inc. System and method for personalizing trip assistance on a digital map
CN106610986A (en) * 2015-10-21 2017-05-03 深圳市赛格导航科技股份有限公司 Multi-destination route planning method and system
CN107133339A (en) * 2017-05-17 2017-09-05 北京趣拿软件科技有限公司 Circuit query method and apparatus and storage medium, processor

Also Published As

Publication number Publication date
CN109684562B (en) 2022-05-27
TW201917607A (en) 2019-05-01
CN109684562A (en) 2019-04-26

Similar Documents

Publication Publication Date Title
WO2019076216A1 (en) Search method and device
US11494451B2 (en) Personal search result identifying a physical location previously interacted with by a user
US9356901B1 (en) Determining message prominence
US9547696B2 (en) Ranking content using location-based query log analysis
WO2018036275A1 (en) Travel route planning method, planning server, and storage medium
US20220253499A1 (en) Allocating communication resources via information technology infrastructure
US10031923B2 (en) Displaying region-based search results
US11386466B2 (en) Content item selection criteria generation
US9146939B1 (en) Generating and using result suggest boost factors
CN103997505A (en) Method and device for recommending information of self-picking-up sites of business object
WO2019196607A1 (en) Location service-based method and device for recommending point of interest, network device, and storage medium
Cao et al. KORS: Keyword-aware optimal route search system
TWI605402B (en) Internet service recommendation method and device
US20200158524A1 (en) Carpool service system and carpool service method
WO2015103923A1 (en) Method for searching position information, and browser terminal
CA3234454A1 (en) Persona for opaque travel item selection
Hefez et al. Tarsius: A system for traffic-aware route search under conditions of uncertainty
US8495046B1 (en) Encoding locations and using distances for resources
CN103257962A (en) Method and device for providing information
US10671685B1 (en) Suggestion refinement
WO2015139457A1 (en) Method and device for search and recommendation
US20150227583A1 (en) Managing search results
US11132627B2 (en) Travel search machine with shareable trip objects
US20160012482A1 (en) Cross-Vertical Distribution of Sponsored Content
CN106462603A (en) Disambiguation of queries implicit to multiple entities

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18867360

Country of ref document: EP

Kind code of ref document: A1