A method for constructing the most convenient point-to-point travel mode of online micro-bus
By calculating the degree of trajectory overlap and generating new driving routes, it solves the problems of high online ride-hailing costs and low public transportation efficiency, and realizes convenient micro-bus travel services that dynamically adapt to traffic conditions and meet passenger needs.
Patent Information
- Application Number
- CN202410222391.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-28
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2044-02-28
AI Technical Summary
In the existing technology, online car-hailing costs are high and efficiency is not high during peak hours. Public transportation cannot provide personalized services, and traditional bus services are difficult to quickly adapt to traffic changes and cannot meet passengers' needs for travel efficiency and comfort.
By obtaining the reference trajectory information and matching trajectory information, calculate the trajectory coincidence degree, generate new driving routes, provide convenient online micro-bus point-to-point travel services, use the coincidence degree algorithm to match bus station information, generate new driving routes and provide them to users and micro-transit vehicles.
It has realized convenient online micro-bus point-to-point travel services, improved travel efficiency and comfort, and can dynamically adapt to traffic conditions to meet the personalized needs of passengers.
Smart Images

Figure CN118096475B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of online-booked micro-bus transportation travel planning, and in particular to a method for constructing a most convenient online-booked micro-bus point-to-point travel mode. Background Art
[0002] In modern urban transportation systems, online ride-hailing and public transportation are the two main modes of travel. Online ride-hailing provides flexible point-to-point services, but the cost is relatively high and is susceptible to traffic congestion during peak hours. On the other hand, public transportation such as buses and subways are low-cost, but usually cannot provide fully personalized services, especially in point-to-point travel between the first and last stations. These modes usually cannot fully meet passengers' needs for travel efficiency and comfort.
[0003] Traditional bus services typically rely on fixed routes and timetables, which limits passengers' travel flexibility, while online ride-hailing services, although flexible, may not be efficient during peak hours; although online ride-hailing services provide personalized services, their costs are generally higher than public transportation, which may not be suitable for passengers who travel frequently; the large-scale use of private online ride-hailing services leads to more traffic congestion and air pollution; some areas cannot obtain efficient public transportation services because they are not on major transportation routes, and online ride-hailing services may not cover these areas due to cost and demand considerations.
[0004] The patent application document with application number CN201410776449 discloses a bus lane planning method for balancing the travel costs of bus passengers and private cars. The method includes: selecting bus lanes according to road conditions, bus passenger flow conditions and bus flow conditions, forming a bus lane network combination, and finding the optimal allocation plan for buses and private cars in each bus lane network; and then selecting the bus lane network with the largest difference between the time saved by passengers and the time increased by private car users, so as to balance the cost benefits of bus passengers and private car users relative to time and achieve overall optimization. The defects of this scheme include: the scheme needs to integrate and analyze a large amount of data, including road conditions, bus and private car flow, etc. In actual operation, this is a complex and difficult to implement accurately process; road conditions and traffic flow are dynamically changing, and the scheme may be difficult to quickly adapt to emergencies (such as traffic accidents, road maintenance) or short-term traffic flow changes; changing the existing road use pattern may encounter challenges in public acceptance, especially for private car users, who will feel that travel time increases or routes are restricted due to the setting of dedicated lanes.
[0005] Therefore, it is necessary to provide a method for constructing the most convenient online micro-bus point-to-point travel mode. Summary of the invention
[0006] The present invention provides a method for constructing the most convenient online-booked micro-bus point-to-point travel mode to solve the above-mentioned problems existing in the prior art.
[0007] In order to achieve the above object, the present invention provides the following technical solutions:
[0008] A method for constructing the most convenient online micro-bus point-to-point travel mode, comprising:
[0009] S101: Obtaining reference trajectory information text and matching trajectory information text;
[0010] S102: Based on the reference trajectory information text and the matching trajectory information text, obtain all bus stop waypoint information of the two routes;
[0011] S103: Calculate the overlap of the two track information based on the bus stop waypoint information using a preset overlap algorithm;
[0012] S104: Based on the overlap, obtain the bus stop information along the reference trajectory, the bus stop information including the starting and ending bus stop coordinates of the reference trajectory, the starting and ending bus stop coordinates of the successfully matched trajectory, and the bus stop type;
[0013] S105: Based on the bus stop information, a new driving route is generated by comparing the difference between the reference trajectory and the bus stop waypoints of the matching trajectory;
[0014] S106: Provide new travel routes to users and microbuses to realize convenient online-booked microbus point-to-point travel services.
[0015] Wherein, step S101 includes:
[0016] S1011: Obtaining reference trajectory information and matching trajectory information from a data source of a public transportation system, wherein each piece of trajectory information includes at least two or more bus stop site information; each bus stop site information includes longitude and latitude;
[0017] S1012: for each acquired station information, the longitude and latitude are concatenated into a string using a comma, and then all station information in the same track are concatenated using a semicolon, so as to generate a track information text that meets the corresponding format requirements, and the text is String type data;
[0018] S1013: storing the formatted track information text into a preset database, and generating a corresponding unique identifier ID for each track information.
[0019] Wherein, step S102 includes:
[0020] S1021: split each track text using a string splitting method, so as to group each independent bus stop information, wherein each stop information is a string type data composed of longitude and latitude concatenated by commas;
[0021] S1022: Process each grouped bus stop information, and extract longitude and latitude data from each comma-separated string;
[0022] S1023: storing the processed longitude and latitude data in a preset database, and associating and binding each waypoint with a unique identifier of a corresponding reference track or matching track.
[0023] Wherein, step S103 includes:
[0024] S1031: Split the longitude and latitude in the bus stop information of the obtained reference trajectory route and the matching trajectory route, and store the split longitude and latitude data in corresponding sets respectively;
[0025] S1032: Setting a threshold to determine whether two points overlap, calculating the distance from each bus stop on the reference route to each bus stop on the matching route, and recording the minimum distance within a preset range;
[0026] S1033: If the minimum distance is less than the threshold, it is considered that the bus stop coincides with a point on the matching route, and the same process is repeated for each stop on the matching route;
[0027] S1034: Calculate the overlap ratio according to the number of overlap points and the total number of stations on the reference line, compare the two overlap ratios obtained, and take the value with the largest overlap ratio as the final overlap ratio.
[0028] Wherein, step S104 includes:
[0029] S1041: Based on a preset coincidence algorithm, the reference trajectory line is matched with the matching trajectory line. When the preset coincidence threshold is reached or exceeded, the corresponding matching trajectory is selected, and the information of the corresponding starting and ending bus stops is obtained, which includes the station coordinates and the trajectory ID.
[0030] S1042: Analyze the obtained bus stop information of the matching trajectory route, extract the corresponding coordinate information, and classify the coordinate information into a starting station, a passing station or a destination according to the geographical location of the station and the role in the trajectory;
[0031] S1043: Integrate the bus stop information of the processed reference trajectory line and the matching trajectory line, including the starting and ending point coordinates and the station type.
[0032] Wherein, step S105 includes:
[0033] S1051: Obtain the current location information of the driver, which includes the longitude, latitude and the identification symbol corresponding to the driver, and obtain the coordinates of the starting and ending bus stops of the matching trajectory route based on this information;
[0034] S1052: Based on the driver's current location and the list of bus stops along the way, a new route generation algorithm is designed. The new route generation algorithm determines the starting point of the new route through the relative distance of the driver's current location, and then determines the end point of the new route according to the corresponding logic;
[0035] S1053: Integrate the station information in the generated new route, including the coordinates and type of the station and the association information with the original track.
[0036] Wherein, step S106 includes:
[0037] Providing the generated new driving routes to users through mobile applications to ensure that users can obtain the most optimized point-to-point travel services;
[0038] After the user accepts the new driving route provided, the location of the minibus is tracked in real time, and the real-time location information and estimated arrival time of the minibus are provided to the user through the mobile application to enhance the user experience;
[0039] Collect user feedback and travel data to continuously optimize route matching algorithms and route optimization algorithms to improve service quality and efficiency.
[0040] The base trajectory information and matching trajectory information are obtained from the data source of the public transportation system, including:
[0041] Obtaining a preset data source set, the data source set comprising: data sources of multiple public transportation systems;
[0042] Select at least one data source from the data source set, and obtain reference trajectory information and matching trajectory information provided by the data source, wherein the reference trajectory information and the matching trajectory information include: multiple trajectory information;
[0043] For each track information, extract at least two bus stop site information contained therein, each bus stop site information includes: the longitude and latitude of the site;
[0044] Analyze the reference trajectory information and matching trajectory information to determine the completeness and accuracy of each trajectory information, and ensure that each acquired trajectory information contains at least two bus stop site information, and each site information contains longitude and latitude data;
[0045] Compare the information of each bus stop in the baseline trajectory information and the matching trajectory information with the preset geographic information database to verify the accuracy of the station information and the validity of the geographic location;
[0046] Based on the comparison results, inaccurate or invalid station information is corrected or excluded to optimize the quality of trajectory information;
[0047] The verified and optimized reference trajectory information and matching trajectory information are stored in a preset trajectory information database to facilitate subsequent data analysis and application.
[0048] The process of associating and binding each waypoint with a unique identifier of a corresponding reference track or matching track includes:
[0049] Obtain a preset database, and store the processed longitude and latitude data and trajectory information in the database; for each processed waypoint, generate or obtain a unique identifier of a corresponding reference trajectory or a matching trajectory;
[0050] Associating and binding the longitude and latitude data of each waypoint with the unique identifier of the corresponding reference track or matching track;
[0051] The associated and bound data is stored in a preset database to ensure that the data of each waypoint is accurately associated with the corresponding trajectory information;
[0052] As needed, specific trajectory information and waypoint data are extracted from the database to support operational analysis, planning optimization, and service improvement of public transportation systems.
[0053] Among them, obtaining the driver's current location information includes:
[0054] Parse the driver's location request to obtain the driver's current traffic environment;
[0055] Get the process node of the positioning device used by the driver;
[0056] Acquire a trigger process node set corresponding to the positioning device, the trigger process node set comprising: a plurality of first trigger process nodes;
[0057] When the process node is consistent with any of the first triggering process nodes, the corresponding first triggering process node is used as the second triggering process node;
[0058] Obtaining a positioning collection strategy corresponding to the second trigger process node, and collecting a plurality of first target positioning data of the driver's current position based on the positioning collection strategy;
[0059] Obtain a standard trajectory library corresponding to the second trigger process node, match the first target positioning data with the first standard trajectory in the standard trajectory library, and if the match does not match, use the first standard trajectory that does not match as the second standard trajectory;
[0060] Obtaining a supplementary positioning strategy and anomaly confirmation strategy corresponding to the second standard trajectory;
[0061] Based on the supplementary positioning strategy, collecting a plurality of second target positioning data in the traffic environment;
[0062] Based on the abnormality confirmation strategy, confirm the positioning abnormality according to the second target positioning data;
[0063] If the confirmation is successful, the first matching trajectory line item corresponding to the second standard trajectory is obtained;
[0064] Based on the first matching trajectory line item obtained, the coordinates of the starting and ending bus stops of the trajectory line and the current location information of the driver are determined and provided, and the current location information includes longitude, latitude and an identification symbol corresponding to the driver.
[0065] Compared with the prior art, the present invention has the following advantages:
[0066] A method for constructing the most convenient online micro-bus point-to-point travel mode includes: obtaining a reference track information text and a matching track information text; obtaining all bus stop waypoint information of two routes based on the reference track information text and the matching track information text; calculating the degree of overlap of two track information based on the bus stop waypoint information using a preset overlap algorithm; obtaining the bus stop information of the reference track route based on the overlap, the bus stop information including the starting and ending bus stop coordinates of the reference track, the starting and ending bus stop coordinates of the successfully matched track route, and the bus stop type; generating a new driving route based on the bus stop information through the difference between the reference track and the matching track bus stop waypoints; providing the new driving route to users and micro-bus vehicles, and realizing a convenient online micro-bus point-to-point travel service. Thus, a new driving route is provided.
[0067] Other features and advantages of the present invention will be set forth in the description which follows, and in part will be apparent from the description, or may be learned by practice of the present invention.
[0068] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0069] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:
[0070] Figure 1 It is a flow chart of a method for constructing the most convenient online-booked micro-bus point-to-point travel mode in an embodiment of the present invention;
[0071] Figure 2 A flowchart of obtaining a reference trajectory information text and a matching trajectory information text in an embodiment of the present invention;
[0072] Figure 3 This is a flow chart for obtaining all bus stop waypoint information of two routes in an embodiment of the present invention. DETAILED DESCRIPTION
[0073] The preferred embodiments of the present invention are described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention.
[0074] The embodiment of the present invention provides a method for constructing a most convenient online micro-bus point-to-point travel mode, including:
[0075] S101: Obtaining reference trajectory information text and matching trajectory information text;
[0076] S102: Based on the reference trajectory information text and the matching trajectory information text, obtain all bus stop waypoint information of the two routes;
[0077] S103: Calculate the overlap of the two track information based on the bus stop waypoint information using a preset overlap algorithm;
[0078] S104: Based on the overlap, obtain the bus stop information along the reference trajectory, the bus stop information including the starting and ending bus stop coordinates of the reference trajectory, the starting and ending bus stop coordinates of the successfully matched trajectory, and the bus stop type;
[0079] S105: Based on the bus stop information, a new driving route is generated by comparing the difference between the reference trajectory and the bus stop waypoints of the matching trajectory;
[0080] S106: Provide new travel routes to users and microbuses to realize convenient online-booked microbus point-to-point travel services.
[0081] The working principle of the above technical solution is: route overlap calculation and route reorganization method, including: obtaining the baseline trajectory information text (based on the current driving trajectory information of the microbus driver) and the matching trajectory information text (the driving trajectory information of the passenger's new order); listing all the bus stop information along the two routes based on the baseline trajectory information and the matching trajectory information; calculating the overlap of the two trajectory information using an algorithm based on the bus stop waypoint information; obtaining the bus stops along the baseline trajectory route, including the starting and ending bus stop coordinates of the baseline trajectory, the starting and ending bus stop coordinates of the successfully matched trajectory route, and the bus stop type; generating a new driving route through the differences in the bus stop waypoints between the baseline trajectory and the matching trajectory.
[0082] The beneficial effects of the above technical solution are as follows: by obtaining the current driving trajectory information (baseline trajectory) of the microbus driver and the driving trajectory information (matching trajectory) of the passenger's new order, the system can compare the similarities and differences between the two; by analyzing the base trajectory and the matching trajectory, all the bus stops they pass through are obtained, providing basic data for subsequent trajectory coincidence calculation and route reorganization; the coincidence degree of the base trajectory and the matching trajectory is calculated using an algorithm, which helps to judge the similarity between them and thus determine the degree of matching; the bus stop information along the base trajectory route is obtained, including the bus stop coordinates of the starting and ending points and the types of other stops, which can be used for subsequent route reorganization; by comparing the bus stop differences between the base trajectory and the matching trajectory, the system can provide a new driving route, taking into account possible traffic, road conditions and other factors in actual situations.
[0083] In another embodiment, step S101 includes:
[0084] S1011: Obtaining reference trajectory information and matching trajectory information from a data source of a public transportation system, wherein each piece of trajectory information includes at least two or more bus stop site information; each bus stop site information includes longitude and latitude;
[0085] S1012: for each acquired station information, the longitude and latitude are concatenated into a string using a comma, and then all station information in the same track are concatenated using a semicolon, so as to generate a track information text that meets the corresponding format requirements, and the text is String type data;
[0086] S1013: storing the formatted track information text into a preset database, and generating a corresponding unique identifier ID for each track information.
[0087] The working principle of the above technical solution is: the data format of the obtained baseline trajectory information and matching trajectory information is composed of at least two or more bus stop site information spliced by ";", and the format of each bus stop information is String type data spliced by "longitude" and "latitude" through ",". After obtaining the information of the two trajectories, the two String type trajectory line data are entered into the database, and the id information corresponding to each trajectory is generated.
[0088] The beneficial effects of the above technical solution are: the reference trajectory information and the matching trajectory information are stored in the form of a string and distinguished by using a separator, so that the data can be conveniently stored in the database; the selection of the data format makes it easy to compare and analyze the information of the reference trajectory and the matching trajectory. By parsing the string, the system can extract the longitude and latitude information of each station, and then compare and calculate the overlap of the trajectories; entering the two trajectory information into the database is helpful for subsequent query, analysis and management. The use of the database can improve the organizational structure of the data and make the data easier to manage and retrieve; generating unique ID information for each trajectory helps to identify and distinguish different trajectories. Such an ID can be used as a key field to uniquely identify each record in the database, facilitating subsequent data operations and queries; the trajectory information in the database can be used for fast query and analysis; for example, a specific trajectory can be retrieved according to the ID, or the difference and similarity between different trajectories can be analyzed using the query function of the database.
[0089] In another embodiment, step S102 includes:
[0090] S1021: Split each trajectory text using a string splitting method to group each independent bus stop information, wherein each stop information is a String type data (representing text or character sequence, String type is used to store and operate text data composed of characters) formed by concatenating longitude and latitude through commas;
[0091] S1022: Process each grouped bus stop information, and extract longitude and latitude data from each comma-separated string;
[0092] S1023: storing the processed longitude and latitude data in a preset database, and associating and binding each waypoint with a unique identifier of a corresponding reference track or matching track.
[0093] The working principle of the above technical solution is: after obtaining the baseline trajectory information and the matching trajectory information, the waypoint information of the baseline trajectory information and the matching trajectory information are grouped by the String.splitf(";") method to obtain the bus stop information corresponding to the two baseline trajectories and the matching trajectory. The String type data formed by concatenating "longitude" and "latitude" through "," is grouped, and the coordinates of each waypoint are entered into the database, and the id information of the baseline trajectory and the matching trajectory are associated and bound.
[0094] The beneficial effects of the above technical solution are as follows: by segmenting and parsing the reference trajectory information and the matching trajectory information, the coordinates (latitude and longitude) of the waypoints can be structured and entered into the database. This helps to manage and query data more efficiently; the longitude and latitude information of each waypoint is stored separately, so that the location data of each station can be easily accessed in the database, which is useful for trajectory analysis, route planning or other location-related operations; associating the waypoint information of the reference trajectory and the matching trajectory with their respective unique IDs helps to establish a connection relationship between the two trajectories in the database, and this association makes it easy to compare the characteristics and differences of the two trajectories; the structured waypoint information and the associated trajectory ID are stored in the database, which helps to perform trajectory analysis and visualization, for example, maps can be drawn based on these data, trajectory similarities or differences can be analyzed, and the functions of the navigation system or geographic information system can be supported; structured data storage helps to improve data management efficiency, and the query function of the database can be used to quickly and accurately retrieve, analyze and extract the required trajectory information, thereby optimizing the data processing process.
[0095] In another embodiment, step S103 includes:
[0096] S1031: Split the longitude and latitude in the bus stop information of the obtained reference trajectory route and the matching trajectory route, and store the split longitude and latitude data in corresponding sets respectively;
[0097] S1032: Setting a threshold to determine whether two points overlap, calculating the distance from each bus stop on the reference route to each bus stop on the matching route, and recording the minimum distance within a preset range;
[0098] S1033: If the minimum distance is less than the threshold, it is considered that the bus stop coincides with a point on the matching route, and the same process is repeated for each stop on the matching route;
[0099] S1034: Calculate the overlap ratio according to the number of overlap points and the total number of stations on the reference line, compare the two overlap ratios obtained, and take the value with the largest overlap ratio as the final overlap ratio.
[0100] The working principle of the above technical solution is as follows: the trajectory overlap is calculated through an algorithm, the latitude and longitude of the bus stop information of the baseline trajectory line and the bus stop information of the matching trajectory information are split, and then stored in a set respectively; a threshold is defined to determine whether two points are considered to be overlapped, and the threshold can be set according to actual conditions. For example, when the distance is less than a certain value, it is considered to be overlapped; the bus stop set of the baseline line and the bus stop set of the matching line are traversed; that is, for each bus stop on the baseline line, the distance from it to the bus point on the matching line is calculated to obtain a set of minimum distances; the minimum distance is found from the set and compared with the threshold. If the minimum distance is less than the threshold, it means that the bus stop of the baseline line coincides with the bus stop of the matching line; after traversing all the bus stops on the baseline line, The number of overlapping points of the two routes can be obtained, and the overlap degree 1 can be obtained by "number of overlapping points / number of bus stops on the benchmark route*100"; the bus stop set of the benchmark route and the bus stop set of the matching route are traversed; that is, for each bus stop on the matching route, the distance from it to all bus stops on the benchmark route is calculated to obtain a set of minimum distances; the minimum distance is found from the set and compared with the threshold. If the minimum distance is less than the threshold, it means that the bus stop of the matching route overlaps with the bus stop of the benchmark route; after traversing all bus stops on the matching route, the number of overlapping points of the two routes can be obtained, and the overlap degree 2 can be obtained by "number of overlapping points / number of bus stops on the benchmark route*100"; the overlap degree 1 is compared with the overlap degree 2, and the larger value is the final overlap degree of the two routes.
[0101] The beneficial effects of the above technical solution are as follows: by calculating the distance between each bus stop on the reference route and the matching route, and setting a threshold to determine whether two points are considered to be overlapped, a more accurate comparison of the trajectories can be achieved, which helps to understand the similarity of the two trajectories in more detail; using a threshold to determine whether two points are overlapped allows adjustment according to specific circumstances, and different application scenarios may require different accuracy requirements. By setting an adjustable threshold, it can flexibly adapt to different needs; by calculating the number of overlapping points, a quantitative index of the overlap of the trajectory is obtained, which can be used to intuitively describe the similarity of the two trajectories and is a quantitative measure of the degree of trajectory matching; by traversing each bus stop on the reference route and the matching route, calculating the minimum distance, and then comparing the threshold, this algorithm is relatively simple and has high computational efficiency, especially for small and medium-sized trajectory data; the method has certain flexibility for different trajectory data structures and different matching requirements, and you can adjust it according to specific circumstances to adapt it to different business scenarios; the overlap obtained by calculation can be conveniently visualized, such as marking the overlapping points on the map, to help users more intuitively understand the similarity of the two trajectories.
[0102] In another embodiment, step S104 includes:
[0103] S1041: Based on a preset coincidence algorithm, the reference trajectory line is matched with the matching trajectory line. When the preset coincidence threshold is reached or exceeded, the corresponding matching trajectory is selected, and the information of the corresponding starting and ending bus stops is obtained, which includes the station coordinates and the trajectory ID.
[0104] S1042: Analyze the obtained bus stop information of the matching trajectory route, extract the corresponding coordinate information, and classify the coordinate information into a starting station, a passing station or a destination according to the geographical location of the station and the role in the trajectory;
[0105] S1043: Integrate the bus stop information of the processed reference trajectory line and the matching trajectory line, including the starting and ending point coordinates and the station type.
[0106] The working principle of the above technical solution is: obtain the list of starting and ending bus stops of each matching trajectory of the driver's current route. The list information contains the id of each matching trajectory, String type coordinate information spliced by longitude, "," and "latitude", and the type field is used to distinguish the type of bus stops, including: starting station, en route station, and end point.
[0107] Wherein, matching the reference trajectory line and the matching trajectory line includes:
[0108] Randomly select a reference trajectory line as a first trajectory line;
[0109] Performing feature analysis and extraction on the first trajectory line to obtain a plurality of first trajectory features;
[0110] Based on a preset trajectory feature-coincidence algorithm, determining a correspondence between the first trajectory feature and a plurality of matching trajectory lines;
[0111] When the set overlap threshold is reached or exceeded, the corresponding matching trajectory line is selected as the second trajectory line;
[0112] Obtain information about the starting and ending bus stops corresponding to the second track line;
[0113] The site information includes site coordinates and track ID;
[0114] Perform feature analysis and extraction on the site coordinates and the trajectory ID to obtain a plurality of second trajectory features;
[0115] Matching the second trajectory feature with the first trajectory feature, if the match is satisfactory, taking the first trajectory feature that matches as the second trajectory feature, and taking the remaining first trajectory features as the third trajectory feature;
[0116] Determining the efficiency value corresponding to the second trajectory feature based on a preset trajectory feature-efficiency value library;
[0117] Determining a first accuracy value corresponding to the third trajectory feature based on a preset trajectory feature-accuracy library;
[0118] Summarizing the efficiency value and the first accuracy value to obtain a comprehensive evaluation value, and associating it with the corresponding second trajectory route;
[0119] Selecting the second trajectory route associated with the maximum comprehensive evaluation value as the optimal trajectory route;
[0120] Determine the key sites and information on the optimal trajectory route and complete the determination of the trajectory matching strategy.
[0121] The beneficial effects of the above technical solution are as follows: by obtaining the list of starting and ending bus stops for each matching trajectory of the driver's current driving route, the driver's current position and the stations being passed can be known in real time, which helps to realize real-time monitoring of the driver's driving status; the list of starting and ending bus stops can be used as basic navigation data to help the driver better understand the driving route, prepare for operations such as turning or stopping in advance, and improve driving safety and efficiency; by obtaining the information of the stations along the way, more accurate real-time bus information can be provided to passengers, including the current location of the vehicle, the estimated arrival time, etc., which improves the service experience of passengers; the list of starting and ending bus stops can be used to analyze the driver's driving route, optimize vehicle scheduling and route planning, and improve overall transportation efficiency; by monitoring the list of starting and ending bus stops, it can be evaluated whether the driver is driving according to the scheduled route and stations, thereby helping to improve the quality of bus services; after obtaining the list of starting and ending bus stops, data analysis can be performed to identify potential problems in driving and make improvements to improve transportation efficiency and service quality; such information can be used to achieve interaction with passengers, such as sending real-time notifications to passengers through an application to remind them of the vehicle's driving status and information about approaching stations.
[0122] In another embodiment, step S105 includes:
[0123] S1051: Obtain the current location information of the driver, which includes the longitude, latitude and the identification symbol corresponding to the driver, and obtain the coordinates of the starting and ending bus stops of the matching trajectory route based on this information;
[0124] S1052: Based on the driver's current location and the list of bus stops along the way, a new route generation algorithm is designed. The new route generation algorithm determines the starting point of the new route through the relative distance of the driver's current location, and then determines the end point of the new route according to the corresponding logic;
[0125] S1053: Integrate the station information in the generated new route, including the coordinates and type of the station and the association information with the original track.
[0126] The working principle of the above technical solution is: to generate a new route, it is necessary to obtain the coordinates of the starting bus station and the end bus station of the matching trajectory route, the purpose is to insert the coordinates of the starting and end bus stations of the matching trajectory into the list of bus stations obtained in the route, thereby forming a new route trajectory, and the steps are as follows: obtain the current positioning information of the driver, and its location information includes longitude, latitude and driverId; traverse and obtain the list of bus stations in the route, if the distance from the starting point of the matching trajectory to the driver's current position is less than the distance from the starting point of the reference trajectory to the driver's current position, then the starting point of the matching trajectory is the starting point of the new route; otherwise, continue to traverse to determine whether the distance from the starting point of the matching trajectory to the driver's current position is less than the distance between the bus station of this cycle and the previous bus station, if less than, insert the starting point of the matching trajectory, otherwise, continue to cycle until the insertion of the starting point of the matching trajectory is completed; after the insertion of the starting point of the matching trajectory is completed, the coordinates of the end point of the matching trajectory need to be inserted, which is the same as the insertion rule of the starting point, the difference is that the end point position of the inserted matching trajectory needs to be inserted after the starting point position of the matching trajectory. Complete the insertion of the start and end points of the matching trajectory to obtain a new set of bus stop information along the way, thereby obtaining new driving route planning information.
[0127] The beneficial effects of the above technical solution are as follows: by obtaining the current positioning information of the driver and calculating the starting bus stop and the ending bus stop of the matching trajectory in real time, dynamic route planning can be realized, so that the generated new route is more in line with the current traffic and the actual situation of the driver; by inserting the starting and ending information of the matching trajectory, the new route can be more flexibly adapted to the actual situation, taking into account the relative position of the driver's current position and the matching trajectory, so as to better meet the real-time needs; by traversing the list of bus stops and inserting the starting and ending points of the matching trajectory, the starting and ending points of the new route can be more accurately determined, which improves the accuracy of the service and reduces possible errors; by integrating the starting and ending points of the matching trajectory into the new route, the information of the matching trajectory can be better utilized, the practicality of the matching trajectory can be improved, and it can be better integrated into the overall route planning; by dynamically inserting the starting and ending points of the matching trajectory, the deviation between the driver and the matching trajectory can be reduced, making it easier for the driver to drive according to the plan and improving the overall transportation efficiency; the generated new route planning information can be notified to the driver in real time through an application or the like, which improves the interactivity between the driver and the system and helps to better perform driving tasks.
[0128] In another embodiment, step S106 includes:
[0129] Providing the generated new driving routes to users through mobile applications to ensure that users can obtain the most optimized point-to-point travel services;
[0130] After the user accepts the new driving route provided, the location of the minibus is tracked in real time, and the real-time location information and estimated arrival time of the minibus are provided to the user through the mobile application to enhance the user experience;
[0131] Collect user feedback and travel data to continuously optimize route matching algorithms and route optimization algorithms to improve service quality and efficiency.
[0132] The working principle of the above technical solution is as follows: when a user requests the most optimized point-to-point travel service, the system generates a new driving route through an optimization algorithm based on the user's current location and destination, as well as the real-time microbus vehicle location and route information, which includes selecting the nearest bus stop, avoiding traffic congestion areas, etc.; the generated new route is provided to the user through a mobile application, and the user can view the new route plan in the application, including detailed information such as the starting point, intermediate sites, and end point; once the user accepts the new driving route, the system will track the location of the microbus vehicle in real time, and through positioning technologies such as GPS, the system will obtain the real-time location information of the vehicle and update it to the mobile application The mobile application provides users with real-time location information of microbuses. Users can view the location of the vehicles on the map in real time. At the same time, the system calculates the estimated arrival time to inform users in advance when the vehicle will arrive at the user-specified station. Users can provide feedback through the mobile application, including satisfaction with the new route, punctuality of vehicle arrival, etc. The system will also collect users' travel data, such as ride time, ride location and other information. The collected user feedback and travel data are used to continuously optimize the route matching algorithm and route optimization algorithm. By analyzing user behavior and feedback, the system can continuously learn and improve service quality and efficiency to ensure that routes that better meet user needs are provided.
[0133] The beneficial effects of the above technical solution are as follows: by generating the most optimized driving route in real time, the system can provide personalized services according to the actual needs of users and meet the specific requirements of users for point-to-point travel; provide the real-time location and estimated arrival time of microbus vehicles to help users better arrange their time, reduce waiting time, and improve the overall travel experience; by collecting user feedback and travel data, the system can continuously optimize the route matching algorithm and route optimization algorithm to improve the accuracy and efficiency of the service; through real-time route planning and vehicle location tracking, microbus vehicles can be more effectively managed and dispatched to improve the efficiency of the overall transportation system; user feedback participates in the optimization process of the system, making the service closer to user needs and improving user participation in the system.
[0134] In another embodiment, obtaining the reference trajectory information and the matching trajectory information from a data source of a public transportation system includes:
[0135] Obtaining a preset data source set, the data source set comprising: data sources of multiple public transportation systems;
[0136] Select at least one data source from the data source set, and obtain reference trajectory information and matching trajectory information provided by the data source, wherein the reference trajectory information and the matching trajectory information include: multiple trajectory information;
[0137] For each track information, extract at least two bus stop site information contained therein, each bus stop site information includes: the longitude and latitude of the site;
[0138] Analyze the reference trajectory information and matching trajectory information to determine the completeness and accuracy of each trajectory information, and ensure that each acquired trajectory information contains at least two bus stop site information, and each site information contains longitude and latitude data;
[0139] Compare the information of each bus stop in the baseline trajectory information and the matching trajectory information with the preset geographic information database to verify the accuracy of the station information and the validity of the geographic location;
[0140] Based on the comparison results, inaccurate or invalid station information is corrected or excluded to optimize the quality of trajectory information;
[0141] The verified and optimized reference trajectory information and matching trajectory information are stored in a preset trajectory information database to facilitate subsequent data analysis and application.
[0142] The working principle of the above technical solution is as follows: the data source set includes data sources of multiple public transportation systems, including bus systems and subway systems in different cities, etc. These data sources provide relevant information of public transportation, including baseline trajectories and matching trajectories; at least one data source is selected from the data source set to obtain baseline trajectory information and matching trajectory information, each trajectory information represents the driving path of a vehicle within a period of time, and each trajectory information may contain multiple location points passed by the vehicle; for each trajectory information, at least two bus station site information contained therein is extracted, and each site information includes the longitude and latitude of the site, that is, the geographic coordinates of the site; the baseline trajectory information and the matching trajectory information are analyzed to ensure that each trajectory information is At least two bus stop site information is included, and each site information contains longitude and latitude data, which helps to determine the data quality and availability of the trajectory information; each extracted bus stop site information is compared with a preset geographic information database to verify the accuracy of the site information and the validity of the geographic location. The geographic information database contains various geographic location data, such as the exact coordinates of the bus stop; based on the comparison results, inaccurate or invalid site information is corrected or excluded, and data cleaning and repair methods are used, such as corrections based on accurate information provided by the geographic database; the verified and optimized baseline trajectory information and matching trajectory information are stored in a preset trajectory information database, which is helpful for subsequent data analysis and application.
[0143] The beneficial effects of the above technical solution are: by analyzing, verifying and correcting the trajectory information, the integrity and accuracy of the data are ensured, and the quality of the trajectory information is improved; by comparing the geographic information database, the accuracy of the site information and the validity of the geographic location are verified, ensuring that the acquired information is consistent with the real-world geographic location; the verified and optimized trajectory information is stored, providing reliable basic data for subsequent data analysis and application, ensuring the accuracy and validity of subsequent applications; through the verification and correction process, the credibility of the data is enhanced, making the results obtained from the trajectory information more trustworthy, which helps to improve the credibility of the entire system; accurate trajectory information is the basis for making intelligent decisions, optimizing routes and other operations, which is beneficial to improving the intelligence level of the public transportation system.
[0144] In another embodiment, associating and binding each waypoint with a unique identifier of a corresponding reference track or matching track includes:
[0145] Obtain a preset database, and store the processed longitude and latitude data and trajectory information in the database; for each processed waypoint, generate or obtain a unique identifier of a corresponding reference trajectory or a matching trajectory;
[0146] Associating and binding the longitude and latitude data of each waypoint with the unique identifier of the corresponding reference track or matching track;
[0147] The associated and bound data is stored in a preset database to ensure that the data of each waypoint is accurately associated with the corresponding trajectory information;
[0148] As needed, specific trajectory information and waypoint data are extracted from the database to support operational analysis, planning optimization, and service improvement of public transportation systems.
[0149] The working principle of the above technical solution is as follows: first, the system obtains a preset database, which is used to store processed longitude and latitude data and trajectory information; the longitude and latitude data of each waypoint are processed, including cleaning, formatting or conversion, and the processed data are stored in the database together with the trajectory information. Waypoints are key locations in the trajectory, such as specific points where a bus passes; a unique identifier of a corresponding reference trajectory or matching trajectory is generated or obtained for each processed waypoint, and this unique identifier is used to distinguish different trajectories and can be a number, letter combination or other form of identification; the longitude and latitude data of each waypoint are associated with the unique identifier of the corresponding reference trajectory or matching trajectory, so that each waypoint is linked to the trajectory information to which it belongs; the associated and bound data is stored in a preset database to ensure that the data of each waypoint is accurately associated with the corresponding trajectory information for subsequent query and analysis; specific trajectory information and waypoint data can be extracted from the database as needed. These data can be used for operational analysis, planning optimization and service improvement of public transportation systems.
[0150] The beneficial effects of the above technical solution are as follows: by associating and binding the latitude and longitude data of the waypoint with the unique identifier of the trajectory information, the accurate association of the data is ensured, and the consistency and availability of the data are improved; the use of the unique identifier helps the system to accurately identify and distinguish different trajectory information, and prevent confusion and erroneous association; storing the data in a database makes the storage and retrieval of the data more flexible and efficient, and facilitates subsequent data analysis and application; by extracting specific trajectory information and waypoint data from the database, the system can perform operational analysis and planning optimization of the public transportation system, and provide strong support for decision-making; the information stored in the database can be used to analyze the user's trajectory and behavior, which helps to improve the service of the public transportation system and enhance the user experience.
[0151] In another embodiment, obtaining the current location information of the driver includes:
[0152] Parse the driver's location request to obtain the driver's current traffic environment;
[0153] Get the process node of the positioning device used by the driver;
[0154] Acquire a trigger process node set corresponding to the positioning device, the trigger process node set comprising: a plurality of first trigger process nodes;
[0155] When the process node is consistent with any of the first triggering process nodes, the corresponding first triggering process node is used as the second triggering process node;
[0156] Obtaining a positioning collection strategy corresponding to the second trigger process node, and collecting a plurality of first target positioning data of the driver's current position based on the positioning collection strategy;
[0157] Obtain a standard trajectory library corresponding to the second trigger process node, match the first target positioning data with the first standard trajectory in the standard trajectory library, and if the match does not match, use the first standard trajectory that does not match as the second standard trajectory;
[0158] Obtaining a supplementary positioning strategy and anomaly confirmation strategy corresponding to the second standard trajectory;
[0159] Based on the supplementary positioning strategy, collecting a plurality of second target positioning data in the traffic environment;
[0160] Based on the abnormality confirmation strategy, confirm the positioning abnormality according to the second target positioning data;
[0161] If the confirmation is successful, the first matching trajectory line item corresponding to the second standard trajectory is obtained;
[0162] Based on the first matching trajectory line item obtained, the coordinates of the starting and ending bus stops of the trajectory line and the current location information of the driver are determined and provided, and the current location information includes longitude, latitude and an identification symbol corresponding to the driver.
[0163] The working principle of the above technical solution is as follows: the system first parses the positioning request sent by the driver to obtain the current traffic environment of the driver; the system obtains the process node of the positioning device used by the driver, which includes the positioning-related programs or tasks being executed by the device; obtains the trigger process node set corresponding to the positioning device, including multiple first trigger process nodes, which may represent different positioning trigger conditions or events; when the process node is consistent with any first trigger process node, the process node is identified as a second trigger process node; the positioning acquisition strategy corresponding to the second trigger process node is obtained, and the strategy guides how to collect multiple first target positioning data of the driver's current position; the standard trajectory library corresponding to the second trigger process node is obtained, and the library stores predefined standard trajectories, representing normal driving routes; the first target positioning data is compared with the first target positioning data ... The first standard trajectory in the standard trajectory library is matched. If the match does not match, the first standard trajectory that does not match the match is used as the second standard trajectory; the supplementary positioning strategy and the abnormal confirmation strategy corresponding to the second standard trajectory are obtained, the supplementary positioning strategy includes a method for collecting second target positioning data in the traffic environment, and the abnormal confirmation strategy is used to confirm the positioning abnormality; based on the supplementary positioning strategy, the system collects multiple second target positioning data in the traffic environment; based on the abnormal confirmation strategy, according to the second target positioning data, the system confirms the positioning abnormality; if the abnormal confirmation is successful, the system obtains the first matching trajectory route item corresponding to the second standard trajectory; based on the obtained first matching trajectory route item, the system determines and provides the coordinates of the starting and ending bus stops of the trajectory route, as well as the current positioning information of the driver, including longitude, latitude and the driver's identification symbol.
[0164] The beneficial effects of the above technical solution are as follows: by matching positioning data and standard trajectory, the system can confirm the driver's current trajectory route, which helps to accurately provide the coordinates of the starting and ending bus stops; the abnormal confirmation strategy and process help to detect and correct positioning abnormalities, and improve the accuracy and reliability of positioning data; by supplementing the positioning strategy, the system can collect more second target positioning data, enrich the understanding of the traffic environment, and help optimize services and planning; through real-time processing of positioning requests, the system can promptly provide the driver's current positioning information, including longitude, latitude and identification symbols, to provide support for real-time monitoring and scheduling; by adopting multi-level positioning strategies and abnormal confirmation, the system improves its adaptability to various situations and enhances the robustness of the entire positioning system.
[0165] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A method for constructing the most convenient point-to-point travel mode of online-booked micro-buses, characterized in that: include: S101: Obtaining reference trajectory information text and matching trajectory information text; S102: Based on the reference trajectory information text and the matching trajectory information text, obtain all bus stop waypoint information of the two routes; S103: Calculate the overlap of the two track information based on the bus stop waypoint information using a preset overlap algorithm; S104: Based on the overlap, obtain the bus stop information along the reference trajectory, the bus stop information including the starting and ending bus stop coordinates of the reference trajectory, the starting and ending bus stop coordinates of the successfully matched trajectory, and the bus stop type; S105: Based on the bus stop information, a new driving route is generated by comparing the difference between the reference trajectory and the bus stop waypoints of the matching trajectory; S106: providing new travel routes to users and microbuses, and realizing convenient online-booked microbus point-to-point travel services; Step S105 includes: S1051: Obtain the current location information of the driver, which includes the longitude, latitude and the identification symbol corresponding to the driver, and obtain the coordinates of the starting and ending bus stops of the matching trajectory route based on this information; S1052: Based on the driver's current location and the list of bus stops along the way, a new route generation algorithm is designed. The new route generation algorithm determines the starting point of the new route through the relative distance of the driver's current location, and then determines the end point of the new route according to the corresponding logic; S1053: Integrate the station information in the generated new route, including the coordinates and type of the station and the association information with the original track; Get the driver's current location information, including: Parse the driver's location request to obtain the driver's current traffic environment; Get the process node of the positioning device used by the driver; Acquire a trigger process node set corresponding to the positioning device, the trigger process node set comprising: a plurality of first trigger process nodes; When the process node is consistent with any of the first triggering process nodes, the corresponding first triggering process node is used as the second triggering process node; Obtaining a positioning collection strategy corresponding to the second trigger process node, and collecting a plurality of first target positioning data of the driver's current position based on the positioning collection strategy; Obtain a standard trajectory library corresponding to the second trigger process node, match the first target positioning data with the first standard trajectory in the standard trajectory library, and if the match does not match, use the first standard trajectory that does not match as the second standard trajectory; Obtaining a supplementary positioning strategy and anomaly confirmation strategy corresponding to the second standard trajectory; Based on the supplementary positioning strategy, collecting a plurality of second target positioning data in the traffic environment; Based on the abnormality confirmation strategy, confirm the positioning abnormality according to the second target positioning data; If the confirmation is successful, the first matching trajectory line item corresponding to the second standard trajectory is obtained; Based on the first matching trajectory line item obtained, the coordinates of the starting and ending bus stops of the trajectory line and the current location information of the driver are determined and provided, and the current location information includes longitude, latitude and an identification symbol corresponding to the driver.
2. The method for constructing the most convenient point-to-point travel mode of online-booked micro-bus according to claim 1, characterized in that: Step S101 includes: S1011: Obtaining reference trajectory information and matching trajectory information from a data source of a public transportation system, wherein each piece of trajectory information includes at least two or more bus stop site information; each bus stop site information includes longitude and latitude; S1012: for each acquired station information, the longitude and latitude are concatenated into a string using a comma, and then all station information in the same track are concatenated using a semicolon, so as to generate a track information text that meets the corresponding format requirements, and the text is String type data; S1013: storing the formatted track information text into a preset database, and generating a corresponding unique identifier ID for each track information.
3. The method for constructing the most convenient point-to-point travel mode of online-booked micro-bus according to claim 1 is characterized in that: Step S102 includes: S1021: split each track text using a string splitting method, so as to group each independent bus stop information, wherein each stop information is a string type data composed of longitude and latitude concatenated by commas; S1022: Process each grouped bus stop information, and extract longitude and latitude data from each comma-separated string; S1023: storing the processed longitude and latitude data in a preset database, and associating and binding each waypoint with a unique identifier of a corresponding reference track or matching track.
4. The method for constructing the most convenient point-to-point travel mode of online-booked micro-bus according to claim 1 is characterized in that: Step S103 includes: S1031: Split the longitude and latitude in the bus stop information of the obtained reference trajectory route and the matching trajectory route, and store the split longitude and latitude data in corresponding sets respectively; S1032: Setting a threshold to determine whether two points overlap, calculating the distance from each bus stop on the reference route to each bus stop on the matching route, and recording the minimum distance within a preset range; S1033: If the minimum distance is less than the threshold, it is considered that the bus stop coincides with a point on the matching route, and the same process is repeated for each stop on the matching route; S1034: Calculate the overlap ratio according to the number of overlap points and the total number of stations on the reference line, compare the two overlap ratios obtained, and take the value with the largest overlap ratio as the final overlap ratio.
5. The method for constructing the most convenient point-to-point travel mode of online-booked micro-bus according to claim 1 is characterized in that: Step S104 includes: S1041: Based on a preset coincidence algorithm, the reference trajectory line is matched with the matching trajectory line. When the preset coincidence threshold is reached or exceeded, the corresponding matching trajectory is selected, and the information of the corresponding starting and ending bus stops is obtained, which includes the station coordinates and the trajectory ID. S1042: Analyze the obtained bus stop information of the matching trajectory route, extract the corresponding coordinate information, and classify the coordinate information into a starting station, a passing station or a destination according to the geographical location of the station and the role in the trajectory; S1043: Integrate the bus stop information of the processed reference trajectory line and the matching trajectory line, including the starting and ending point coordinates and the station type.
6. The method for constructing the most convenient point-to-point travel mode of online-booked micro-bus according to claim 1, characterized in that: Step S106 includes: Providing the generated new driving routes to users through mobile applications to ensure that users can obtain the most optimized point-to-point travel services; After the user accepts the new driving route provided, the location of the minibus is tracked in real time, and the real-time location information and estimated arrival time of the minibus are provided to the user through the mobile application to enhance the user experience; Collect user feedback and travel data to continuously optimize route matching algorithms and route optimization algorithms to improve service quality and efficiency.
7. The method for constructing the most convenient point-to-point travel mode of online-booked micro-bus according to claim 2 is characterized in that: Obtain reference trajectory information and matching trajectory information from data sources of the public transportation system, including: Obtaining a preset data source set, the data source set comprising: data sources of multiple public transportation systems; Select at least one data source from the data source set, and obtain reference trajectory information and matching trajectory information provided by the data source, wherein the reference trajectory information and the matching trajectory information include: multiple trajectory information; For each track information, extract at least two bus stop site information contained therein, each bus stop site information includes: the longitude and latitude of the site; Analyze the reference trajectory information and matching trajectory information to determine the completeness and accuracy of each trajectory information, and ensure that each acquired trajectory information contains at least two bus stop site information, and each site information contains longitude and latitude data; Compare the information of each bus stop in the baseline trajectory information and the matching trajectory information with the preset geographic information database to verify the accuracy of the station information and the validity of the geographic location; Based on the comparison results, inaccurate or invalid station information is corrected or excluded to optimize the quality of trajectory information; The verified and optimized reference trajectory information and matching trajectory information are stored in a preset trajectory information database to facilitate subsequent data analysis and application.
8. The method for constructing the most convenient point-to-point travel mode of online-booked micro-bus according to claim 3 is characterized in that: Associating each waypoint with the unique identifier of the corresponding reference track or matching track, including: Obtain a preset database, and store the processed longitude and latitude data and trajectory information in the database; for each processed waypoint, generate or obtain a unique identifier of a corresponding reference trajectory or a matching trajectory; Associating and binding the longitude and latitude data of each waypoint with the unique identifier of the corresponding reference track or matching track; The associated and bound data is stored in a preset database to ensure that the data of each waypoint is accurately associated with the corresponding trajectory information; As needed, specific trajectory information and waypoint data are extracted from the database to support operational analysis, planning optimization, and service improvement of public transportation systems.
