CN109255074A - A kind of travel solutions design method, device and electronic equipment - Google Patents

A kind of travel solutions design method, device and electronic equipment Download PDF

Info

Publication number
CN109255074A
CN109255074A CN201811006110.3A CN201811006110A CN109255074A CN 109255074 A CN109255074 A CN 109255074A CN 201811006110 A CN201811006110 A CN 201811006110A CN 109255074 A CN109255074 A CN 109255074A
Authority
CN
China
Prior art keywords
travel
day
target
list
added
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN201811006110.3A
Other languages
Chinese (zh)
Inventor
郭旭
王杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Ruian Technology Co Ltd
Original Assignee
Beijing Ruian Technology Co Ltd
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 Beijing Ruian Technology Co Ltd filed Critical Beijing Ruian Technology Co Ltd
Priority to CN201811006110.3A priority Critical patent/CN109255074A/en
Publication of CN109255074A publication Critical patent/CN109255074A/en
Pending legal-status Critical Current

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the invention discloses a kind of travel solutions design method, device and electronic equipments, which comprises receives travelling planning information;The travel solutions for meeting the travelling planning are generated according to setting rule based on tourism data base resource.Meet the travel solutions of the travelling planning by being automatically based upon tourism data base resource and generating according to setting rule, realize quickly, intelligently make and meet the desired travel solutions of user.

Description

Travel scheme design method and device and electronic equipment
Technical Field
The embodiment of the invention relates to the technical field of travel website development, in particular to a travel scheme design method and device and electronic equipment.
Background
Nowadays, with the continuous improvement of living standard of people and the rapid development of public transportation facilities, traveling has become a new favorite for people to enjoy leisure and entertainment. But how to obtain effective and rich travel resources is a problem that many people cannot easily solve.
At present, few people in China except travel enthusiasts or travel owners can rapidly make reasonable travel schemes, and the reasonable travel schemes can meet the travel requirements of the people and can be optimized extremely in the aspect of budget. Therefore, most of the customization of the current travel scheme is manually customized by a skilled travel customizer, so that the efficiency is low and the cost is high.
Disclosure of Invention
The embodiment of the invention provides a travel scheme design method, a travel scheme design device and electronic equipment, which are used for automatically and quickly making a travel scheme meeting expectations.
In order to achieve the above purpose, the embodiment of the invention adopts the following technical scheme:
in a first aspect, an embodiment of the present invention provides a method for designing a travel plan, where the method includes:
receiving travel planning information;
and generating a travel scheme according with the travel plan according to set rules based on the travel database resources.
Further, the travel planning information includes: at least one of a city of travel, a type of attraction, a travel time, a number of travelers, and a financial budget.
Further, when the travel planning information includes a travel city, a type of scenic spot, a travel time, a number of people traveling, and a fund budget, the generating of the travel plan conforming to the travel planning based on the travel database resource according to a set rule includes:
selecting a target sight spot which is consistent with the sight spot type from a travel database corresponding to the travel city;
if the target scenic spot is not added, acquiring the per-capita capital expenditure and the time spent on matching with the target scenic spot;
counting the sum of the current capital expenditure and the sum of the time spent by combining the number of travelers, the scenic spots added in the current single-day travel list and the target scenic spots to be added;
if the current capital expenditure sum is smaller than the residual capital budget and the spent time sum is smaller than the recommended playing time of a single day, adding the target scenic spots to be added to a current single-day travel list;
repeatedly executing the scenic spot adding operation until the sum of the current capital expenditure is larger than the residual capital budget or the sum of the spent time is larger than the recommended playing time of a single day, ending the scenic spot adding operation, and outputting the current single-day travel list;
wherein the residual fund budget refers to the total fund budget minus the fund expenditure of each single-day trip list which is output.
Further, the selecting a target attraction corresponding to the attraction type from the travel database corresponding to the travel city includes:
randomly selecting a target sight spot which is consistent with the sight spot type from a travel database corresponding to the travel city; or,
and selecting a target sight spot which is consistent with the sight spot type from a travel database corresponding to the travel city based on the sight spot score.
Further, the current fund expenditure sum comprises fund expenditures of all attractions added in the current single-day itinerary list, fund expenditures of attractions to be added and itinerary spending funds for the attractions; the sum of the spent time comprises the spent time of each sight spot added in the current single-day travel list, the spent time of the sight spot to be added and the travel spent time for going to the sight spots.
Further, when the sum of the capital expenditure is less than the remaining capital budget and the sum of the time spent is greater than a second preset value, the generating a travel plan conforming to the travel plan based on the travel database resource according to the set rule further includes:
searching restaurants near the last sight spot added in the current single-day travel list;
selecting a target restaurant from the searched restaurants based on the good evaluation rate of the restaurant, and acquiring per-capita consumption corresponding to the target restaurant;
calculating the current capital expenditure sum by combining the average person consumption, the number of the travelling persons and each added scenic spot in the current single-day travel list;
if the sum of the capital expenditures is less than the remaining capital budget, adding the target restaurant to the current single-day trip list;
wherein the second preset value is less than the single-day recommended playing time.
Further, if the travel time is longer than 1 day, before outputting the single-day travel list, the generating a travel plan meeting the travel plan based on the travel database resource according to the set rule further includes:
searching for hotels near the last sight spot added in the single-day itinerary list;
selecting a target hotel from the searched hotels based on the goodness of the hotel and acquiring per-capita consumption corresponding to the target hotel;
calculating the current capital expenditure sum by combining the average person consumption, the number of the travelling persons, each added scenic spot and each added restaurant in the current single-day travel list;
if the sum of capital expenditures is less than the remaining capital budget, adding the target hotel to the current single-day itinerary list;
wherein the current single-day itinerary list does not include a single-day itinerary list corresponding to the last day of travel.
In a second aspect, an embodiment of the present invention provides a travel plan designing apparatus, including:
a receiving module for receiving travel planning information;
and the design module is used for generating a travel scheme according with the travel plan based on the existing travel database resources according to a set rule.
In a third aspect, an embodiment of the present invention provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor executes the computer program to implement the method for designing a travel plan as described in the first aspect.
In a fourth aspect, embodiments of the present invention provide a storage medium containing computer-executable instructions which, when executed by a computer processor, implement a method of trip planning as described in the first aspect above.
According to the travel scheme design method provided by the embodiment of the invention, the travel scheme according with the travel plan is automatically generated according to the set rule based on the travel database resource by receiving the travel plan information input by the user, so that the travel scheme according with the user expectation can be rapidly and intelligently made.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the description of the embodiments of the present invention will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the contents of the embodiments of the present invention and the drawings without creative efforts.
FIG. 1 is a schematic flow chart of a travel plan designing method according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a method for generating a travel plan according to the travel plan based on the travel database resource according to a set rule according to an embodiment of the present invention;
FIG. 3 is a flow chart of a travel plan designing method according to a second embodiment of the present invention;
FIG. 4 is a flow chart of a travel plan designing method according to a third embodiment of the present invention;
FIG. 5 is a schematic structural diagram of a travel plan designing apparatus according to a fourth embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to a fifth embodiment of the present invention.
Detailed Description
In order to make the technical problems solved, technical solutions adopted and technical effects achieved by the present invention clearer, the technical solutions of the embodiments of the present invention will be described in further detail below with reference to the accompanying drawings, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example one
Fig. 1 is a schematic flow chart of a travel plan designing method according to an embodiment of the present invention. The travel plan designing method disclosed in the present embodiment may be executed by a travel plan designing apparatus, wherein the apparatus may be implemented by software and/or hardware, and is generally integrated in a server. Referring specifically to fig. 1, the method comprises the steps of:
110. travel planning information is received.
The travel planning information specifically refers to a travel plan of the user, such as which city the user wants to travel, who the user wants to travel with, how many days the user wants to travel, and the like. Specifically, the travel planning information may include: at least one of a city of travel, a type of attraction, a travel time, a number of people traveling, and a financial budget.
120. And generating a travel scheme according with the travel plan according to set rules based on the travel database resources.
The tourism database resources refer to database resources including name information of tourist attractions, corresponding attraction introduction information, geographic position information, attraction type information, entrance ticket information, attraction score information, restaurant information and hotel information near the attractions, traffic information going to each attraction nearby and the like.
Specifically, referring to a flowchart of a method for generating a travel plan according to the travel plan based on the travel database resource according to the set rule when the travel plan information includes a travel city, an attraction type, a travel time, a number of people traveling, and a fund budget, as shown in fig. 2, the method includes:
210. and selecting a target sight spot which is consistent with the sight spot type from a travel database corresponding to the travel city.
And if the target scenic spot which is in accordance with the type of the scenic spot does not exist in the tourism database corresponding to the tourist city, ending the process, and making a corresponding prompt to inform the user that the target scenic spot cannot be matched.
220. And if the target scenic spot is not added, acquiring the per-capita capital expenditure and the time spent on matching with the target scenic spot.
The target scenic spots are not added, that is, the target scenic spots are not added to the current single-day travel list, and are not added to each output single-day travel list. Specifically, for example, if the travel time of the user is 3 days, according to the scheme of this embodiment, three single-day trip lists, which are a trip list on the first day, a trip list on the second day, and a trip list on the third day, are finally generated and output, the trip list on the second day is currently planned, the trip list on the first day is already generated and output, and the non-added finger is not added to the trip list on the first day, and is also not added to the trip list on the current second day, so as to avoid repetition of the scenic spots.
The per-person capital expenditure matched with the target scenic spot refers to a single-person ticket price of the target scenic spot; the elapsed time matching the target attraction refers to the average playing time of the target attraction.
Further, the selecting a target attraction corresponding to the attraction type from the travel database corresponding to the travel city includes:
randomly selecting a target sight spot which is consistent with the sight spot type from a travel database corresponding to the travel city; or,
and selecting a target sight spot which is consistent with the sight spot type from a travel database corresponding to the travel city based on the sight spot score. The scenery spot score represents the popularity and recommendation degree of the scenery spot, and better scenery spots can be recommended to the user by preferentially selecting the target scenery spots with high scenery spot score.
Alternatively, when the user has a very low capital budget, a target attraction that matches the attraction type may also be selected based on the capital budget.
230. And counting the sum of the current fund expenditure and the sum of the spent time by combining the number of the travelers, the added scenic spots in the current single-day travel list and the target scenic spots to be added.
Wherein the current fund expenditure sum comprises fund expenditures of each added attraction in the current single-day journey list, fund expenditures of attractions to be added and journey expense funds for each attraction; the sum of the spent time comprises the spent time of each sight spot added in the current single-day travel list, the spent time of the sight spot to be added and the travel spent time for going to the sight spots. The journey to each scenic spot costs funds, which means: for example, when the current travel is at sight a in the travel list and the next travel sight is sight B, the traffic fee from sight a to sight B is the travel fund for sight B, and the time spent is the travel occupied time for sight B. The trip cost funds are different according to different vehicles, for example, if a public vehicle is used, the trip cost funds are relatively low, and if a special vehicle is used or the vehicle is driven by oneself, the trip cost funds are relatively high, and the specific vehicle can be determined by default settings of the system, or can be changed according to the requirements of users.
Specifically, the capital expenditure of each scenic spot is the number of travelers and the per-person capital expenditure of the scenic spot; the sum of the current capital expenditure is the capital expenditure of each added scenic spot in the current single-day journey list, the capital expenditure of the target scenic spot to be added and the traffic cost between two adjacent planned scenic spots; the total spent time is equal to the playing spent time of each added sight spot in the current single-day travel list, the playing spent time of the target sight spot to be added and the planned journey spent time between two adjacent playing sight spots; the planned sightseeing spots comprise the sightseeing spots already added in the current single-day travel list and the target sightseeing spots to be added.
The purpose of this step is to confirm whether the fund budget and time of the user are sufficient to play the target sight spot to be added, and if so, add the target sight spot to be added to the current single-day travel list, otherwise, not add.
240. And judging whether the current fund expenditure sum is smaller than the residual fund budget and the spent time sum is smaller than the recommended playing time of a single day, if so, executing the step 250, otherwise, executing the step 260.
250. The target sight to be added is added to the current single-day trip list and the process returns to step 210.
260. And ending the scenic spot adding operation, and outputting the current single-day travel list.
Wherein the residual fund budget refers to the total fund budget minus the fund expenditure of each single-day trip list which is output. The fund expenditure of the single-day journey list is the fund expenditure of each attraction added in the single-day journey list (the number of travelers and the fund expenditure of the attraction person) + the journey expenditure to each attraction. The total fund budget refers to a fund budget in the travel planning information. To make the solution more flexible, the total capital budget may be set as: (1+ 10%) actual capital budget of the user.
The recommended playing time of the single day is usually set to be 6 hours, the traveling experience of the tourists is high when the tourists play for 6 hours every day, the tourists cannot feel tired, and meanwhile, enough beauty is experienced.
And if the sum of the current capital expenditure is larger than the residual capital budget, sending a prompt to remind the user of insufficient funds.
According to the travel scheme design method provided by the embodiment, the travel list conforming to the travel plan of the user is automatically generated by taking the fund budget of the user and the single-day recommended play time as the limiting conditions, so that the travel scheme conforming to the user expectation can be rapidly and intelligently made.
Example two
Fig. 3 is a schematic flow chart of a travel plan designing method according to a second embodiment of the present invention. On the basis of the above embodiment, the embodiment is further optimized, and recommendations and arrangements of restaurants and hotels are added for long-time play, so that the made travel scheme is more humanized. Referring specifically to fig. 3, the method includes the steps of:
310. travel planning information is received, the travel planning information including a travel city, a type of attraction, a travel time, a number of travel people, and a funding budget.
320. And selecting a target sight spot which is consistent with the sight spot type from a travel database corresponding to the travel city.
330. And if the target scenic spot is not added, acquiring the per-capita capital expenditure and the time spent on matching with the target scenic spot.
340. And counting the sum of the current fund expenditure and the sum of the spent time by combining the number of the travelers, the added scenic spots in the current single-day travel list and the target scenic spots to be added.
350. And if the current fund expenditure sum is smaller than the residual fund budget and the spent time sum is smaller than the recommended playing time of a single day, adding the target scenic spots to be added to a current single-day travel list.
360. Searching for restaurants near the last attraction added in the current single-day trip list when the sum of the capital expenditures is less than the remaining capital budget and the sum of the time spent is greater than a second preset value.
Wherein the second preset value is smaller than the recommended play time for a single day, and the second preset value is usually set to 3 hours, and is used for indicating that the user has supplemented energy for eating after playing for 3 hours.
370. And selecting a target restaurant from the searched restaurants based on the good evaluation rate of the restaurant, acquiring per-person consumption corresponding to the target restaurant, and counting the sum of the current capital expenditure.
Wherein, the statistical sum of the current capital expenditure is specifically as follows: and counting the current sum of capital expenditure by combining the average restaurant consumption, the number of travelers and the consumption of each scenic spot added in the current single-day travel list.
380. And if the sum of the capital expenditure is smaller than the residual capital budget, adding the target restaurant to the current single-day travel list, continuing to execute the scenic spot adding operation until the sum of the capital expenditure is larger than the residual capital budget or the sum of the spent time is larger than the recommended playing time of a single day, ending the scenic spot adding operation, and outputting the current single-day travel list.
If the sum of the capital expenditure is larger than the residual capital budget, the recommended restaurants can be replaced, and a restaurant with a low consumption per capita is selected, so that the sum of the capital expenditure is smaller than the residual capital budget; if the capital budget cannot be met even if the recommended restaurants with the set times are replaced, the recommended addition of the restaurants is abandoned.
Further, if the travel time is longer than 1 day, before outputting the single-day travel list, the generating a travel plan meeting the travel plan based on the travel database resource according to the set rule further includes:
searching for hotels near the last sight spot added in the single-day itinerary list;
selecting a target hotel from the searched hotels based on the goodness of the hotel and acquiring per-capita consumption corresponding to the target hotel;
calculating the current capital expenditure sum by combining the average person consumption, the number of the travelling persons, each added scenic spot and each added restaurant in the current single-day travel list;
if the sum of capital expenditures is less than the remaining capital budget, adding the target hotel to the current single-day itinerary list;
wherein the current single-day itinerary list does not include a single-day itinerary list corresponding to the last day of travel because accommodation is not required for the last day of travel, and the remaining fund budget refers to a total fund budget minus fund expenditure of each output single-day itinerary list.
The capital expenditure of the output single-day travel list is the capital expenditure of each scenic spot added in the single-day travel list (tourist number and per-person capital expenditure of the scenic spot) + the restaurant expense (tourist number and per-person dining consumption) + the hotel expense (tourist number and per-person living consumption) + the journey expense to each scenic spot.
According to the travel scheme design method provided by the embodiment, recommended additions to restaurants and hotels are added, so that the generated travel scheme is more humanized, and the travel scheme meeting the user expectation can be rapidly and intelligently made.
EXAMPLE III
Fig. 4 is a schematic flow chart of a travel plan designing method according to a third embodiment of the present invention. On the basis of the embodiment, the embodiment is further optimized, the scenic spot selection counter is arranged, so that the travel scheme design program is prevented from entering endless loop, and the practicability of the travel scheme design method is improved. Referring specifically to fig. 4, the method includes the steps of:
410. the system is initialized and the current accumulated days is set to 1.
The current accumulated days are used for recording travel time, and the current accumulated days are set to be 1 to indicate that a travel list of the first day is prepared currently.
420. And (3) creating a single-day travel list, setting the single-day playing time to be 0, marking the prompt as 1 and setting the scenic spot selection counter to be 0.
The single-day travel list is used for recording information of target scenic spots, restaurants or hotels meeting conditions in a single day, the single-day playing time is used for recording time cost of each scenic spot added in the single-day travel list, and the single-day playing time is 0 because the target scenic spots added in the single-day travel list at the beginning are zero; the prompting mark is initialized to 1 according to whether to prompt the user that the fund budget is insufficient, whether to prompt the user to send a prompt to the user is determined by judging the value of the prompting mark before the fund budget is insufficient, when the value of the prompting mark is 1, a prompt is sent to the user to prompt the user that the fund budget is insufficient, and when the value of the prompting mark is 0, no prompt is sent to the user. The scenic spot selection counter is used for counting the repeatedly selected scenic spots, when the selected target scenic spots are added, the number of the scenic spot selection counter is increased by 1, when the number of the scenic spot selection counter exceeds a set value, the number of the selectable target scenic spots in the database is considered to be insufficient, all the selectable target scenic spots are basically added to each single-day travel list, at the moment, the travel scheme making program is ended, and the current single-day travel list is output. The database is a database corresponding to a travel city in the travel planning information input by the user; the selectable target sights refer to target sights that match the sight types in the travel planning information entered by the user.
430. A target sight is selected from the database.
440. And judging whether the target scenic spot is added, if so, executing the step 441, otherwise, executing the step 450.
441. And increasing the number of the scenery spot selection counter by 1, judging whether the number of the scenery spot selection counter is greater than a preset value, if so, ending circulation and outputting the current single-day travel list, and if not, returning to the step 430.
The preset value is usually set to 3, if 3 times of target scenic spots are selected and added, the number of selectable target scenic spots in the database is considered to be insufficient, all the selectable target scenic spots are basically added to each single-day journey list, at the moment, the travel scheme making program is ended, and the current single-day journey list is output, so that the program is prevented from falling into endless loop.
450. The current capital expenditure and time spent are counted and execution continues with step 460.
The current fund expenditure is counted, namely the expenditure of the target scenic spot is added into a fund expenditure part, and the time expenditure is that the recommended playing time of the target scenic spot is added into the single-day playing time.
460. And judging whether the current fund expenditure is smaller than the residual fund budget and the single-day playing time is smaller than the single-day recommended playing time, if so, executing the step 470, and if not, executing the step 461.
461. And judging whether the prompt mark is 1, if so, executing a step 462, and otherwise, ending the circulation and outputting the current single-day travel list.
462. Prompting the user that the fund budget is insufficient.
470. And adding the target scenic spots to a current single-day travel list, and setting a prompt mark to be 0.
480. Restaurants near the target attraction are searched and capital expenditures are counted.
In this embodiment, if a target scenic spot is played by default, the morning trip is finished, and the user is recommended to have a meal. The statistical capital expenditure is to add the expenditure expense of the meal into the capital expenditure.
490. And judging whether the current capital expenditure is smaller than the residual capital budget, if so, executing a step 4100, and otherwise, ending the circulation and outputting a current single-day travel list.
4100. Add the corresponding restaurant to the current one-day trip list.
4110. The target attraction continues to be selected from the database.
4120. And judging whether the target scenic spot is added, if so, executing a step 4121, and otherwise, executing a step 4130.
4121. And increasing the value of the scenery spot selection counter by 1, judging whether the value of the scenery spot selection counter is greater than a preset value, if so, ending circulation and outputting a current single-day travel list, and if not, returning to the step 4110.
4130. The current capital expenditure and time spent are counted and execution continues with step 4140.
Wherein the accounting of the current capital expenditure includes adding the capital expenditure of the target attraction and the travel cost from the last target attraction to the next adjacent target attraction to a capital expenditure component.
4140. And judging whether the current capital expenditure is smaller than the residual capital budget, if so, executing a step 4150, and otherwise, ending the circulation and outputting a current single-day travel list.
4150. And judging whether the single-day playing time is less than the single-day recommended playing time, if so, executing a step 4151, and otherwise, executing a step 4160.
Wherein the single day play time comprises a recommended play time for each target attraction and a travel time spent from a previous target attraction to an adjacent next target attraction.
4151. And adding the target scenic spots to the current single-day travel list, and returning to execute the step 4110.
4160. And judging whether the numerical value of the current accumulated days is equal to the total number of planned travel days, if so, ending circulation and outputting a current single-day travel list, and otherwise, executing a step 4170.
If the value of the current accumulated days is equal to the travel time, the current day is the last day of travel, and the user directly returns home without accommodation.
4170. Search for hotels and per-person consumption of the corresponding target hotels near the last target attraction in the current single-day itinerary list, and count current capital expenditures.
4180. And judging whether the current capital expenditure is smaller than the residual capital budget, if so, executing a step 4190, and if not, ending the circulation and outputting a current single-day travel list.
4190. The corresponding target hotel is added to the current single-day trip list and the value of the current accumulated number of days is incremented by 1 and the process returns to step 420.
Adding the corresponding target hotel to the current one-day trip list predicts the end of the trip of one day and the current one-day trip list formulation ends. Returning to step 420 to continue to make the next day's itinerary.
The above travel plan design process is described below by taking specific scenarios as examples:
scenario one: the user plans to travel for 1 day, executes the operation of adding scenic spots, and triggers the conditional branch (1):
(1) if the number of target scenic spots meeting the conditions in the database is larger than a set value, selecting a target scenic spot meeting the type of the scenic spot in a target city, adding the fund expenditure of the target scenic spot into the total travel expenditure, adding the recommended play time of the target scenic spot into the single-day play time, executing the operation of calculating the single-day play time and the total travel expenditure, and then triggering a conditional branch (1.1); if the number of the scenic spots meeting the conditions in the database is not more than the set value, outputting a travel scheme and total travel expenditure for the user, and terminating the travel scheme generation program;
(1.1a) if the first sight spot fund expenditure > is equal to the travel fund budget, prompting the user that the budget is insufficient. The travel itinerary generation procedure terminates.
(1.1b) if the single day play time <6 hours and total travel expenditure < travel fund budget, add the target attraction to the travel list. Executing the operation of searching restaurants near the target scenic spot, adding the total expenditure of the corresponding restaurant into the total travel expenditure, executing the operation of calculating the total travel expenditure, and then triggering a conditional branch (1.1.1):
(1.1.1) if the total expenditure of the travel is less than the travel fund budget, adding the corresponding restaurant into the travel list and recommending the travel list to the user for reference. Continuing to execute the operation of adding the scenic spots, triggering a conditional branch (1.1.1.1), otherwise, not adding the corresponding restaurant, outputting a travel scheme and a total travel expense for the user, and ending the travel scheme generation program:
(1.1.1.1) if the number of target scenic spots meeting the conditions in the database is larger than a set value, selecting a target scenic spot which is in accordance with the type of the scenic spot in a target city, comparing the target scenic spot with other added target scenic spots in a travel list (avoiding scenic spot repetition, directly adding the target scenic spots if the travel list is empty), if not, adding the road charge for going to the target scenic spot and the expenditure of the target scenic spot into the total travel expenditure, adding the time spent for going to the target scenic spot and the recommended play time of the target scenic spot into the single-day play time, executing the operation of calculating the single-day play time and the total travel expenditure, and then triggering a conditional branch (1.1.1.1.1); if the number of the target scenic spots meeting the conditions in the database is not more than the set value, outputting a travel scheme and total travel expenditure for the user, and terminating the travel scheme generation program;
(1.1.1.1.1) if the single day play time <6H and total travel cost < travel fund budget, adding the target attraction to the travel list and returning to the branch of continuing execution (1.1.1.1), otherwise, not adding the target attraction, outputting the travel plan and total travel cost for the user, and ending the travel plan generation procedure.
And in a second scenario, the number of days for which the user plans to travel is greater than 1 day, the current accumulated number of days is set to be 1, the scenic spot adding operation is executed, and a conditional branch (1) is triggered:
(1) if the number of target scenic spots meeting the conditions in the database is larger than a set value, selecting a target scenic spot which is in accordance with the type of the scenic spot in a target city, comparing the target scenic spot with other target scenic spots in a travel list (avoiding scenic spot repetition, and directly adding the target scenic spots if the travel list is empty), if not, adding the road toll of the target scenic spot and the expenditure of the target scenic spot into the total travel expenditure, adding the time spent on going to the target scenic spot and the recommended play time of the target scenic spot into the single-day play time, executing the operation of calculating the single-day play time and the total travel expenditure, and then triggering a condition branch (1.1); if the number of the target scenic spots meeting the conditions in the database is not more than the set value, outputting a travel scheme and total travel expenditure for the user, and terminating the travel scheme generation program; and if the first sight spot expenditure > on the first day is the travel fund budget, prompting the user that the budget is insufficient, and terminating the travel scheme generation program.
(1.1) if the total travel expenditure > -the total travel fund budget, outputting the travel plan and the total travel expenditure for the user, and ending the travel plan generating program. If the single-day playing time is less than 6 hours and the total travel expenditure is less than the travel fund budget, the target attraction is added into the travel list, then restaurant operation near the target attraction is executed, the corresponding total restaurant expenditure is added into the total travel expenditure, operation of calculating the total travel expenditure is executed, and then a conditional branch (1.1.1) is triggered:
(1.1.1) if the total travel expenditure is less than the travel fund budget, adding the corresponding restaurant into the travel list, recommending the restaurant to a user reference, continuing to execute the scenery spot adding operation, and triggering a conditional branch (1.1.1.1); and if the total travel expenditure > is the total travel fund budget, the corresponding restaurant is not added, the travel scheme and the total travel expenditure are output for the user, and the travel scheme generation program is ended.
(1.1.1.1) if the number of target scenic spots meeting the conditions in the database is greater than a set value, selecting a target scenic spot which is in accordance with the type of the scenic spot in a target city, comparing the selected target scenic spot with other target scenic spots in a travel list (avoiding scenic spot repetition, directly adding the selected target scenic spot if the list is empty), if not, adding the road charge for going to the target scenic spot and the target scenic spot expense into the total travel expense, adding the time spent for going to the target scenic spot and the recommended play time of the target scenic spot into the single-day play time, executing the operation of calculating the single-day play time and the total travel expense, and triggering a condition branch (1.1.1.1.1); if the number of the target scenic spots meeting the conditions in the database is not more than the set value, outputting a travel scheme and total travel expenditure for the user, and terminating the travel scheme generation program;
(1.1.1.1.1) if the single day play time <6 hours and total travel expenditure < travel fund budget, adding the target attraction to the trip list, returning to the continue execution branch (1.1.1.1); if the single-day play time > is 6 hours, the target attraction is not added, the operation of searching hotels near the target attraction is executed, the corresponding total expenditure of the hotels is added into the total expenditure of travel, the operation of calculating the total expenditure of travel and the total days of travel is executed, and then a conditional branch (1.1.1.1.1.1) is triggered:
(1.1.1.1.1.1) if the total expenditure of the trip is less than the capital budget of the trip and the current accumulated days are less than the planned travel days of the user, adding the corresponding hotel into the trip list and recommending the hotel to the user for reference, ending the trip on the current day, increasing the value of the current accumulated days by 1, and returning to continue to execute the branch (1) of the scenario two; and if the total travel expenditure > is the total travel fund budget or the current accumulated days is the number of days for the user to plan the travel, the corresponding hotel is not added, the travel scheme and the total travel expenditure are output for the user, and the travel scheme generation program is ended.
According to the method for designing the travel scheme, the design process of the travel scheme is given by combining a specific situation, the scenic spot selection counter is arranged, so that the travel scheme design program is prevented from entering endless loop, and the practicability of the method for designing the travel scheme is improved.
Example four
Fig. 5 is a schematic structural diagram of a travel plan designing apparatus according to a fourth embodiment of the present invention. Referring to fig. 5, the apparatus comprises: a receiving module 510 and a design module 520;
wherein, the receiving module 510 is configured to receive travel planning information;
and a design module 520, configured to generate a travel plan according to the travel plan according to a set rule based on the existing travel database resource.
Illustratively, the travel planning information includes: at least one of a city of travel, a type of attraction, a travel time, a number of people traveling, and a financial budget.
Illustratively, when the travel planning information includes travel cities, attraction types, travel times, number of people traveling, and capital budgets, the design module 520 includes:
the selection unit is used for selecting a target sight spot which is consistent with the type of the sight spot from a tourism database corresponding to the tourism city;
the acquisition unit is used for acquiring the per-capita capital expenditure and the time spent on matching the target scenic spot if the target scenic spot is not added;
the counting unit is used for counting the sum of the current capital expenditure and the sum of the time spent by combining the number of the travelers, the scenic spots added in the current single-day travel list and the target scenic spots to be added;
the adding unit is used for adding the target scenic spots to be added to a current single-day travel list if the current fund expenditure sum is smaller than the residual fund budget and the spending time sum is smaller than the single-day recommended playing time;
the output unit is used for ending the scenic spot adding operation when the sum of the current capital expenditure is larger than the residual capital budget or the sum of the spent time is larger than the recommended playing time of a single day, and outputting the current single-day travel list;
wherein the residual fund budget refers to the total fund budget minus the fund expenditure of each single-day trip list which is output.
Illustratively, the selecting unit is specifically configured to randomly select a target attraction corresponding to the attraction type from a travel database corresponding to the travel city; or,
and selecting a target sight spot which is consistent with the sight spot type from a travel database corresponding to the travel city based on the sight spot score.
Illustratively, the current fund expenditure sum comprises fund expenditures of attractions added in the current single-day itinerary list, fund expenditures of attractions to be added, and itinerary spending funds for the attractions; the sum of the spent time comprises the spent time of each sight spot added in the current single-day travel list, the spent time of the sight spot to be added and the travel spent time for going to the sight spots.
Illustratively, the design module 520 further includes: a restaurant adding unit, configured to search for restaurants near a last sight spot added in the current single-day trip list when the total capital expenditure is less than a remaining capital budget and the total spent time is greater than a second preset value, and select a target restaurant from the searched restaurants based on a good evaluation rate of the restaurants, and acquire per-person consumption corresponding to the target restaurant; calculating the current capital expenditure sum by combining the average person consumption, the number of the travelling persons and each added scenic spot in the current single-day travel list; if the sum of the capital expenditures is less than the remaining capital budget, adding the target restaurant to the current single-day trip list; wherein the second preset value is less than the single-day recommended playing time.
Illustratively, the design module 520 further includes: a hotel adding unit, configured to search for a hotel near a last sight spot added in the single-day travel list before outputting the single-day travel list if the travel time is greater than 1 day; selecting a target hotel from the searched hotels based on the goodness of the hotel and acquiring per-capita consumption corresponding to the target hotel; calculating the current capital expenditure sum by combining the average person consumption, the number of the travelling persons, each added scenic spot and each added restaurant in the current single-day travel list; if the sum of capital expenditures is less than the remaining capital budget, adding the target hotel to the current single-day itinerary list; wherein the current single-day itinerary list does not include a single-day itinerary list corresponding to the last day of travel.
The travel plan designing device provided by the embodiment receives travel plan information input by a user, automatically generates a travel plan according with the travel plan based on the travel database resource according to the set rule, and rapidly and intelligently formulates the travel plan according with the user expectation.
EXAMPLE five
Fig. 6 is a schematic structural diagram of an electronic device according to a fifth embodiment of the present invention. As shown in fig. 6, the electronic apparatus includes: a processor 670, memory 671, and computer programs stored on memory 671 and operable on processor 670; the number of the processors 670 may be one or more, and fig. 6 illustrates one processor 670 as an example; the processor 670, when executing the computer program, implements the method of travel solution design as described in the previous embodiment. As shown in fig. 6, the electronic device may further include an input device 672 and an output device 673. The processor 670, memory 671, input device 672 and output device 673 may be connected by a bus or other means, such as by a bus connection in fig. 6.
The memory 671 is used as a computer-readable storage medium for storing software programs, computer-executable programs, and modules, such as the travel plan designing apparatus/module (e.g., the receiving module 510 and the designing module 520 in the travel plan designing apparatus, etc.) in the embodiments of the present invention. The processor 670 executes various functional applications and data processing of the electronic device by executing software programs, instructions and modules stored in the memory 671, that is, implements the above-described travel plan designing method.
The memory 671 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, and an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. In addition, the memory 671 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the memory 671 may further include memory located remotely from the processor 670, which may be connected to electronic devices/storage media through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 672 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function controls of the electronic apparatus. The output device 673 may include a display device such as a display screen.
EXAMPLE six
An embodiment of the present invention further provides a storage medium containing computer-executable instructions, which when executed by a computer processor, perform a method of travel itinerary design, the method comprising:
receiving travel planning information;
and generating a travel scheme according with the travel plan according to set rules based on the travel database resources.
Of course, the embodiment of the present invention provides a storage medium containing computer-executable instructions, and the computer-executable instructions are not limited to the method operations described above, and can also perform operations related to the design of a travel plan provided by any embodiment of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a storage medium, or a network device) to execute the embodiments of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A travel plan designing method, comprising:
receiving travel planning information;
and generating a travel scheme according with the travel plan according to set rules based on the travel database resources.
2. The method of claim 1, wherein the travel planning information comprises: at least one of a city of travel, a type of attraction, a travel time, a number of travelers, and a financial budget.
3. The method of claim 2, wherein when the travel plan information includes a travel city, an attraction type, a travel time, a number of travel people, and a fund budget, the generating a travel solution according to the travel plan based on the travel database resource according to set rules comprises:
selecting a target sight spot which is consistent with the sight spot type from a travel database corresponding to the travel city;
if the target scenic spot is not added, acquiring the per-capita capital expenditure and the time spent on matching with the target scenic spot;
counting the sum of the current capital expenditure and the sum of the time spent by combining the number of travelers, the scenic spots added in the current single-day travel list and the target scenic spots to be added;
if the current capital expenditure sum is smaller than the residual capital budget and the spent time sum is smaller than the recommended playing time of a single day, adding the target scenic spots to be added to a current single-day travel list;
repeatedly executing the scenic spot adding operation until the sum of the current capital expenditure is larger than the residual capital budget or the sum of the spent time is larger than the recommended playing time of a single day, ending the scenic spot adding operation, and outputting the current single-day travel list;
wherein the residual fund budget refers to the total fund budget minus the fund expenditure of each single-day trip list which is output.
4. The method of claim 3, wherein said selecting a target attraction from a travel database corresponding to said travel city that matches said attraction type comprises:
randomly selecting a target sight spot which is consistent with the sight spot type from a travel database corresponding to the travel city; or,
and selecting a target sight spot which is consistent with the sight spot type from a travel database corresponding to the travel city based on the sight spot score.
5. The method of claim 3, wherein the current fund expenditure sum comprises fund expenditures for attractions already added in the current single-day itinerary list, fund expenditures for attractions to be added, and itinerary spending funds to the attractions; the sum of the spent time comprises the spent time of each sight spot added in the current single-day travel list, the spent time of the sight spot to be added and the travel spent time for going to the sight spots.
6. The method of claim 3, wherein when the capital expenditure sum is less than the remaining capital budget and the time spent sum is greater than a second preset value, then the generating a travel solution in compliance with the travel plan based on the travel database resource according to the set rules further comprises:
searching restaurants near the last sight spot added in the current single-day travel list;
selecting a target restaurant from the searched restaurants based on the good evaluation rate of the restaurant, and acquiring per-capita consumption corresponding to the target restaurant;
calculating the current capital expenditure sum by combining the average person consumption, the number of the travelling persons and each added scenic spot in the current single-day travel list;
if the sum of the capital expenditures is less than the remaining capital budget, adding the target restaurant to the current single-day trip list;
wherein the second preset value is less than the single-day recommended playing time.
7. The method of any of claims 3-6, wherein generating a travel plan that conforms to the travel plan according to set rules based on the travel database resource further comprises, prior to outputting a list of single-day itineraries if the travel time is greater than 1 day:
searching for hotels near the last sight spot added in the single-day itinerary list;
selecting a target hotel from the searched hotels based on the goodness of the hotel and acquiring per-capita consumption corresponding to the target hotel;
calculating the current capital expenditure sum by combining the average person consumption, the number of the travelling persons, each added scenic spot and each added restaurant in the current single-day travel list;
if the sum of capital expenditures is less than the remaining capital budget, adding the target hotel to the current single-day itinerary list;
wherein the current single-day itinerary list does not include a single-day itinerary list corresponding to the last day of travel.
8. A travel plan designing apparatus, comprising:
a receiving module for receiving travel planning information;
and the design module is used for generating a travel scheme according with the travel plan based on the existing travel database resources according to a set rule.
9. An electronic device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor, when executing the computer program, implements the travel plan designing method of any one of claims 1-7.
10. A storage medium containing computer-executable instructions which, when executed by a computer processor, implement the travel plan designing method of any one of claims 1-7.
CN201811006110.3A 2018-08-30 2018-08-30 A kind of travel solutions design method, device and electronic equipment Pending CN109255074A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811006110.3A CN109255074A (en) 2018-08-30 2018-08-30 A kind of travel solutions design method, device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811006110.3A CN109255074A (en) 2018-08-30 2018-08-30 A kind of travel solutions design method, device and electronic equipment

Publications (1)

Publication Number Publication Date
CN109255074A true CN109255074A (en) 2019-01-22

Family

ID=65050388

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811006110.3A Pending CN109255074A (en) 2018-08-30 2018-08-30 A kind of travel solutions design method, device and electronic equipment

Country Status (1)

Country Link
CN (1) CN109255074A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115718836A (en) * 2022-11-21 2023-02-28 广州喜玩网络信息有限公司 Tourism scheme visual auxiliary selection system based on big data

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101963960A (en) * 2009-07-22 2011-02-02 刘旸 Travel route and scheduling generation method and server
CN103995840A (en) * 2014-04-30 2014-08-20 洛阳众意信息技术服务有限公司 Intelligent domestic traveling route generating method oriented to customization
CN105159933A (en) * 2015-08-06 2015-12-16 北京百度网讯科技有限公司 Tourism information recommendation method and apparatus
CN106886837A (en) * 2017-02-21 2017-06-23 携程旅游网络技术(上海)有限公司 Free walker stroke based on time planning recommends method
US20170351959A1 (en) * 2016-06-02 2017-12-07 Ge Oil & Gas Esp, Inc. System and method for well artificial lift lifecycle planning
CN107883976A (en) * 2017-11-03 2018-04-06 吉林化工学院 City tour's route planning method and device based on cloud computing
CN108364088A (en) * 2018-01-24 2018-08-03 北京穷游天下科技发展有限公司 The optimization method and electronic equipment of tour schedule

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101963960A (en) * 2009-07-22 2011-02-02 刘旸 Travel route and scheduling generation method and server
CN103995840A (en) * 2014-04-30 2014-08-20 洛阳众意信息技术服务有限公司 Intelligent domestic traveling route generating method oriented to customization
CN105159933A (en) * 2015-08-06 2015-12-16 北京百度网讯科技有限公司 Tourism information recommendation method and apparatus
US20170351959A1 (en) * 2016-06-02 2017-12-07 Ge Oil & Gas Esp, Inc. System and method for well artificial lift lifecycle planning
CN106886837A (en) * 2017-02-21 2017-06-23 携程旅游网络技术(上海)有限公司 Free walker stroke based on time planning recommends method
CN107883976A (en) * 2017-11-03 2018-04-06 吉林化工学院 City tour's route planning method and device based on cloud computing
CN108364088A (en) * 2018-01-24 2018-08-03 北京穷游天下科技发展有限公司 The optimization method and electronic equipment of tour schedule

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115718836A (en) * 2022-11-21 2023-02-28 广州喜玩网络信息有限公司 Tourism scheme visual auxiliary selection system based on big data
CN115718836B (en) * 2022-11-21 2023-08-08 广州喜玩网络信息有限公司 Visual auxiliary selection system of travel scheme based on big data

Similar Documents

Publication Publication Date Title
CN105159933B (en) Travel information recommended method and device
US9082134B2 (en) Displaying advertising using transit time data
US8438127B2 (en) Behaviour pattern analysis system, mobile terminal, behaviour pattern analysis method, and program
CN106643774B (en) Navigation route generation method and terminal
CN105761175A (en) Tour route customization method and server
CN109839120B (en) Route planning method, device, medium and electronic equipment
US20160033290A1 (en) Vehicular information providing apparatus
CN110119822A (en) Scenic spot management, stroke planning method, client and server
CN116628335B (en) Personalized travel route customization method and device
Lim Designing the next generation of mobile tourism application based on situation awareness
US20100281414A1 (en) Methods and systems for travel planning
KR102210184B1 (en) System and method for providing recommendation service for travel route
JP7176267B2 (en) Information processing device and information processing method
WO2017035272A1 (en) System and method for facilitating user connections in travel locations
CN109255074A (en) A kind of travel solutions design method, device and electronic equipment
US20220084655A1 (en) Information processing apparatus, information processing method, and system
CN109376914A (en) Traffic path recommended method, device and storage medium
JP2003185451A (en) Data creation system and program for navigation device
KR102169110B1 (en) System and method for providing itinerary recommendation services
JP2006048260A (en) Itinerary preparation support method and system
JP7510458B2 (en) Peripheral information display device, method and program thereof
KR101764916B1 (en) Method, user terminal, server and program for providing information with flight ticket searching
CN110347842B (en) Knowledge map tour guide system based on intelligent wristwatch
JP6164633B2 (en) Post information display system, server, terminal device, post information display method and program
JP2018049318A (en) Information processing server, program, and information processing method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20190122

RJ01 Rejection of invention patent application after publication