Travel matching method and device in independent route and storage medium

By setting a fixed time interval in the rail transit system for itinerary matching, the complexity of unilateral transaction processing and system resource occupation caused by open sites in independent lines is solved, and a simplified transaction processing process and improved passenger experience is achieved. .

CN119441565APending Publication Date: 2025-02-14PCI TECH & SERVICE CO LTD +3
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411551623.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-01
Publication Date
2025-02-14

AI Technical Summary

Technical Problem

In rail transit, open sites exist in independent lines, resulting in complex unilateral transaction processing, frequent itinerary matching, refunds, splitting and reassembly deductions, increasing system processing complexity and resource occupation, and reducing passenger rides Car experience.

Method used

By setting a fixed time interval in the backend system, unmatched incoming or outgoing sites are matched with open sites, and corresponding deduction orders are generated for deduction, simplifying the transaction processing process.

Benefits of technology

It effectively solves the itinerary matching complexity and system resource occupation caused by open sites in independent lines, improves passenger ride experience, and reduces the complexity of system processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119441565A_ABST
    Figure CN119441565A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of rail transit, and discloses a travel matching method and device in an independent line and a storage medium, the independent line comprises an origin station, a terminal station and an open station, the origin station is connected with the open station through at least one one-way entry point in a departure line, and the terminal station is connected with the open station through at least one one-way entry point in the departure line. The open station is connected with the origin station through at least one one-way outbound station in the return route, and the open station is in bidirectional connection with the station; the travel matching method comprises the following steps: acquiring unmatched transactions from a background system; the types of the unmatched transactions comprise unmatched inbound transactions and unmatched outbound transactions; and carrying out travel matching on the entry site or the exit site in the unmatched transaction and the open site. Reasonable route matching can be carried out on independent routes with open stations.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of rail transit technology, and in particular to a method, device and storage medium for itinerary matching in an independent line. Background Art

[0002] Rail transit transaction processing is the process of terminal devices generating transaction data, which are then uploaded to the backend system. The backend system will then process the transaction accordingly based on the transaction type, such as transaction warehousing, itinerary matching, and transaction fee deductions.

[0003] In actual rail transit, there is an independent line with a one-way path, that is, the outbound route of the independent line only allows users to enter the station; the return route only allows users to exit the station; if there is an open station in the independent line, there are no entry and exit gates in the open station, and users can directly take the outbound route or return route through the open station. At this time, it is necessary to perform special processing on the unilateral transaction in rail transit and automatically generate the corresponding itinerary. If the automatic generation of the corresponding itinerary is unreasonable, it will lead to frequent itinerary refunds, itinerary splitting, reassembly and deduction, increase the complexity of system processing, increase system resource usage, reduce passenger riding experience, and even cause customer complaints, resulting in reduced passenger trust.

[0004] Therefore, there is an urgent need for a method that can perform trip matching in an independent route with an open station. Summary of the invention

[0005] In view of this, the present application provides a method, device and storage medium for itinerary matching in an independent route, which can perform reasonable itinerary matching for an independent route with open sites. The technical solution is as follows.

[0006] In a first aspect, the present invention provides a method for itinerary matching in an independent route, the independent route comprising: a starting station, a terminal station and an open station, the starting station being connected to the open station via at least one one-way entry station in an outbound route, the open station being connected to the starting station via at least one one-way exit station in a return route, and the open station being bidirectionally connected to a station station.

[0007] The trip matching method includes:

[0008] Unmatched transactions are obtained from a background system; the types of the unmatched transactions include unmatched inbound transactions and unmatched outbound transactions; and inbound stations or outbound stations in the unmatched transactions are matched with open stations for itinerary matching.

[0009] The method for matching the travel distance in an independent circuit provided by the present invention has the following advantages:

[0010] The trip matching method in an independent route of the present invention is applied to the situation that there is an open station in the independent route, and the independent route includes a starting station, a terminal station and an open station, the starting station is connected to the open station through the outbound route, the open station is connected to the starting station through the return route, and the open station and the terminal station are bidirectionally connected; there is at least one one-way entry station in the outbound route, and the one-way entry station is only equipped with an entry gate, and can only enter the station but not exit the station; there is at least one one-way exit station in the return route, and the one-way exit station is only equipped with an exit gate, and can only exit the station but not enter the station; the starting station and the terminal station are both equipped with an entry gate and an exit gate, and can enter and exit the station; the open station has no gate equipment, and can enter and exit the station, but there will be no entry transaction record or exit transaction record. If a user enters the station from an entry station and then exits the station from an open point, the transaction will only have an entry transaction record but no exit transaction record; similarly, if a user enters the station from an open station and then exits the station from other exit stations, the transaction will only have an exit transaction record but no entry transaction record. It is the existence of this open station that requires the processing of transaction records to perform special processing on unilateral entry transactions and unilateral exit transactions. If there is a corresponding exit transaction record for the entry transaction, no special processing is required. The entry station and the exit station are matched for itinerary, and then a deduction order is generated and the fee is deducted. The existing related solutions will frequently perform itinerary matching, itinerary refunds, itinerary splitting, and reassembly deductions, which increases the complexity of system processing and occupies too many system resources. This solution sets a fixed time interval to match the entry or exit stations of unmatched transactions in the background system with the open station. This time interval needs to consider the entire travel time of the independent line and the buffer time reserved by the system. It can also count all unmatched records throughout the day after the subway stops running every day, and directly match the stations in these unmatched records with the open stations, and generate corresponding deduction orders for deduction. There is no need to frequently match itineraries. Just set a reasonable itinerary matching interval to reasonably match the itinerary and generate a reasonable deduction order, which greatly simplifies the transaction processing process, reduces system resource usage, greatly reduces the complexity of system processing, and improves the passenger riding experience.

[0011] In an optional implementation, the entry point or exit point in the unmatched transaction is matched with the open point for itinerary matching, including: if the unmatched transaction includes an unmatched entry transaction, the entry point of each unmatched entry transaction is matched with the open point for itinerary matching; if the unmatched transaction includes an unmatched outbound transaction, the exit point of each unmatched outbound transaction is matched with the open point for itinerary matching.

[0012] In an optional embodiment, when the unmatched transactions include unmatched inbound transactions, obtaining the unmatched transactions includes: obtaining unmatched inbound transactions that meet preset conditions in the background system; the preset conditions are that the difference between the transaction time of the unmatched inbound transaction and the current time is greater than a time threshold.

[0013] In an optional implementation, obtaining unmatched incoming transactions that meet preset conditions in the background system includes: periodically obtaining unmatched incoming transactions that meet preset conditions in the background system through a scheduled task; the execution time interval of the scheduled task is less than the time threshold.

[0014] In an optional implementation, the time threshold is the sum of the travel time of the independent line and the reserved buffer time.

[0015] In an optional implementation, if the unmatched transactions include an unmatched inbound transaction, the inbound station of each unmatched inbound transaction is itinerary matched with an open station, including: obtaining the outbound station from the current unmatched outbound transaction, and obtaining the previous transaction of the current unmatched outbound transaction; when the current unmatched outbound transaction is an online outbound transaction, if the current outbound station is the terminal station and the previous transaction is not an unmatched inbound transaction, or the current outbound station is not the terminal station and the previous transaction is not an unmatched terminal station inbound transaction, then the current outbound station is itinerary matched with an open station.

[0016] In an optional implementation, when the current unmatched outbound transaction is an offline outbound transaction, if the current outbound station is the terminal station and the previous transaction is not an inbound transaction, or the current outbound station is not the terminal station and the previous transaction is not an inbound transaction at the terminal station, the current outbound station and the open station are matched for the itinerary.

[0017] In an optional implementation, when the current unmatched outbound transaction is an offline outbound transaction, if the current exit station is the terminal station and the previous transaction is a matched inbound transaction, or the current exit station is not the terminal station and the previous transaction is a matched inbound transaction at the terminal station, the previous transaction is revoked, and the inbound station of the previous transaction is matched with the current exit station for itinerary matching.

[0018] In a second aspect, the present invention provides a stroke matching device in an independent circuit, which is applied to the stroke matching method in an independent circuit of the first aspect or any corresponding embodiment thereof, and the stroke matching device includes:

[0019] A transaction acquisition module, used to acquire unmatched transactions from the background system; the types of unmatched transactions include unmatched inbound transactions and unmatched outbound transactions;

[0020] The trip matching module is used to match the entry or exit stations in the unmatched transactions with the open stations for trip matching.

[0021] In a third aspect, the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the trip matching method in an independent circuit of the above-mentioned first aspect or any corresponding embodiment thereof by executing the computer instructions.

[0022] In a fourth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the method for matching trips in an independent route according to the first aspect or any corresponding embodiment thereof.

[0023] In a fifth aspect, the present invention provides a computer program product, comprising computer instructions for causing a computer to execute the method for matching trips in an independent circuit according to the first aspect or any corresponding embodiment thereof. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0025] Figure 1 It is a schematic diagram of an independent line with an open site provided by an embodiment of the present invention.

[0026] Figure 2 It is a schematic flow chart of a method for itinerary matching in an independent route provided in an embodiment of the present invention.

[0027] Figure 3 It is a schematic diagram of an online outbound transaction processing flow provided by an embodiment of the present invention.

[0028] Figure 4 It is a schematic diagram of the offline outbound transaction processing flow provided by an embodiment of the present invention.

[0029] Figure 5 It is a logic block diagram of online inbound transaction processing provided by an embodiment of the present invention.

[0030] Figure 6 It is a logic block diagram of offline inbound transaction processing provided by an embodiment of the present invention.

[0031] Figure 7It is a logic block diagram of online outbound transaction processing provided by an embodiment of the present invention.

[0032] Figure 8 It is a logic block diagram of offline inbound transaction processing provided by an embodiment of the present invention.

[0033] Fig. 9 It is a logic block diagram of the scheduled task processing of unmatched inbound transactions provided by an embodiment of the present invention.

[0034] Fig.10 It is a structural schematic diagram of a stroke matching device in an independent circuit provided by an embodiment of the present invention.

[0035] Fig.11 It is a structural schematic diagram of a computer device provided by an embodiment of the present invention.

[0036] Fig.12 It is a backend system architecture diagram of rail transit provided by an embodiment of the present invention.

[0037] Fig.13 It is a flow chart of the interaction between the rail transit terminal equipment and the background system provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0038] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without making creative work are within the scope of protection of this application.

[0039] It should be understood that the "indication" mentioned in the embodiments of the present application can be a direct indication, an indirect indication, or an indication of an association relationship. For example, A indicates B, which can mean that A directly indicates B, for example, B can be obtained through A; it can also mean that A indirectly indicates B, for example, A indicates C, and B can be obtained through C; it can also mean that there is an association relationship between A and B.

[0040] In the description of the embodiments of the present application, the term "corresponding" may indicate a direct or indirect correspondence between two items, or an association relationship between the two items, or a relationship between indication and being indicated, configuration and being configured, and the like.

[0041] In an embodiment of the present application, "predefinition" can be achieved by pre-saving corresponding codes, tables or other methods that can be used to indicate relevant information in a device (for example, including a terminal device and a network device). The present application does not limit its specific implementation method.

[0042] First, the terms involved in this application are introduced.

[0043] Terminal equipment: Automatic Gate Machine, Booking Office Machine, Ticket Vending Machine, etc. Independent line: A subway line that does not transfer to other lines. Open station: A station without gates. Transaction data: Online gate entry transactions, online gate exit transactions, offline gate entry transactions, offline gate exit transactions, etc. Backstage system: A diversified transaction processing system that processes transactions such as online gate entry, online gate exit, offline gate entry, and offline gate exit. Terminal equipment online: The network communication between the terminal equipment and the backstage system is normal, and the terminal equipment normally sends heartbeat information to the backstage system. Terminal equipment offline: The network communication between the terminal equipment and the backstage system is abnormal, and the terminal equipment cannot normally send heartbeat information to the backstage system. Online gate entry transaction: The gate entry transaction generated when the terminal equipment (gate machine) is online, the transaction is immediately sent to the backstage system. Online gate exit transaction: The gate exit transaction generated when the terminal equipment (gate machine) is online, the transaction is immediately sent to the backstage system. Offline entry transaction: The entry transaction generated when the terminal device (gate) is offline, and the transaction will be sent to the background system when the terminal device (gate) is back online. Offline exit transaction: The exit transaction generated when the terminal device (gate) is offline, and the transaction will be sent to the background system when the terminal device (gate) is back online. MQTT: MQTT (Message Queuing Telemetry Transport) is a "lightweight" communication protocol based on the publish / subscribe model. The protocol is built on the TCP / IP protocol and was released by IBM in 1999. The biggest advantage of MQTT is that it can provide real-time and reliable message services for connecting remote devices with very little code and limited bandwidth. EMQ X: EMQ / EMQ X is an implementation of MQTT Broker. EMQ X is an MQTT message server developed based on the Erlang / OTP platform and is the most popular MQTT message server in the open source community.

[0044] In actual rail transit, there is an independent line with a one-way path, that is, the outbound route of the independent line only allows users to enter the station; the return route only allows users to exit the station; if there is an open station in the independent line, there is no entry gate or exit gate in the open station, and users can directly take the outbound route or the return route through the open station, such as Figure 1As shown, the starting station A and the terminal station B are equipped with entry gates and exit gates, the stations B, C and D on the outbound route are only equipped with entry gates, and the stations B, C and D on the return route are only equipped with exit gates. The open station E has no gate equipment. This independent line is a one-way circular transfer line, and users can only enter and exit at specific stations.

[0045] Rail transit transaction processing is done by the terminal device generating transaction data, which is then uploaded to the backend system. The backend system will process the transaction data accordingly, such as transaction storage, itinerary matching, transaction fee deduction, etc. Fig.12 As shown, it includes database, background system application cluster, Redis cluster, emqx broker cluster and station terminal equipment.

[0046] The interaction process between the terminal device and the background system is as follows: Fig.13 As shown, including:

[0047] After the background system is started, it sends a subscription request to the mqtt message server (emqx) to subscribe to the topic ( / afc / +) that the terminal requests to upload, where "+" is a wildcard, and / afc / + means a request to subscribe to all terminal devices. The mqtt message server returns the subscription result; the terminal device is started, for example, the terminal device number is: 00000001; the terminal device sends a subscription request to the mqtt message server (emqx) to subscribe to the topic ( / device / 00000001) that the background system responds to the terminal device. The mqtt message server returns the subscription result; the terminal device sends the request information to the topic ( / afc / 00000001) of the mqtt message server; the mqtt message server returns a sending confirmation message. The backend system polls the request information from the mqtt message server. Since the backend system subscribes to the / afc / + topic, + is a wildcard. The backend system processes the terminal request. The backend system assembles the response information. The backend system sends the response information to the topic of the mqtt message server ( / device / 00000001). The mqtt message server returns a confirmation message. The terminal device polls the response information from emqx. Since the terminal device subscribes to the / device / 00000001 topic, the terminal device processes the response information.

[0048] When there is an open station on an independent line in rail transit, special processing is required for unilateral transactions in rail transit to automatically generate the corresponding itinerary. If the automatically generated corresponding itinerary is unreasonable, it will lead to frequent itinerary refunds, itinerary splitting, reassembly and deductions, increase system processing complexity, increase system resource usage, reduce passenger riding experience, and even cause customer complaints, resulting in reduced passenger trust.

[0049] Therefore, an embodiment of the present invention provides a method for itinerary matching in an independent route, wherein the independent route includes: a starting station, a terminal station and an open station, wherein the starting station is connected to the open station via at least one one-way entry station in the outbound route, the open station is connected to the starting station via at least one one-way exit station in the return route, and the open station is bidirectionally connected to the station station.

[0050] The process of the itinerary matching method is as follows Figure 2 As shown, including:

[0051] S201. Obtain unmatched transactions from the backend system.

[0052] Specifically, the types of unmatched transactions include unmatched inbound transactions and unmatched outbound transactions. Unmatched inbound transactions only have inbound transaction records, and unmatched outbound transactions only have outbound transaction records. They are unfinished transactions and need to be matched with corresponding inbound or outbound transactions to generate complete transaction records.

[0053] Optionally, in step S201, a time interval can be set to obtain unmatched transaction records from the background system at fixed intervals. The time interval can be set according to the travel time from the starting station to the terminal station, and some buffer time can be reserved. All unmatched transactions of the day can also be counted after the line is shut down to avoid frequent travel matching.

[0054] S202: Match the entry or exit sites in the unmatched transaction with the open sites.

[0055] Specifically, in step S202, unmatched entry sites and unmatched exit sites are obtained from unmatched transactions, and these unmatched sites are matched with open sites for itineraries, that is, corresponding open site entry transactions or open site exit transactions are generated for each unmatched transaction to obtain matched transactions, thereby generating corresponding orders and deducting fees based on the orders.

[0056] Optionally, in step S202, the types of unmatched transactions include unmatched inbound transactions and unmatched outbound transactions. If the unmatched transactions include unmatched inbound transactions, a corresponding open-site outbound transaction is generated for each unmatched inbound transaction to match it, and the inbound site of each unmatched inbound transaction is matched with the open site for itinerary matching. If the unmatched transactions include unmatched outbound transactions, a corresponding open-site inbound transaction is generated for each unmatched outbound transaction to match it, and the outbound site of each unmatched outbound transaction is matched with the open site for itinerary matching.

[0057] The trip matching method in an independent route provided by an embodiment of the present invention is applied to the situation that there is an open station in the independent route, and the independent route includes a starting station, a terminal station and an open station, the starting station is connected to the open station through the outbound route, the open station is connected to the starting station through the return route, and the open station and the terminal station are bidirectionally connected; there is at least one one-way entry station in the outbound route, and the one-way entry station is only equipped with an entry gate, and can only enter the station but not exit the station; there is at least one one-way exit station in the return route, and the one-way exit station is only equipped with an exit gate, and can only exit the station but not enter the station; the starting station and the terminal station are both equipped with an entry gate and an exit gate, and can enter and exit the station; the open station has no gate equipment, and can enter and exit the station, but there will be no entry transaction record or exit transaction record. If a user enters the station from the entry station and then exits the station from the open point, the transaction only has an entry transaction record but no exit transaction record; similarly, if a user enters the station from the open station and then exits the station from other exit stations, the transaction only has an exit transaction record but no entry transaction record. It is the existence of this open station that requires the processing of transaction records to perform special processing on unilateral entry transactions and unilateral exit transactions. If there is a corresponding exit transaction record for the entry transaction, no special processing is required. The entry station and the exit station are matched for itinerary, and then a deduction order is generated and the fee is deducted. The existing related solutions will frequently perform itinerary matching, itinerary refunds, itinerary splitting, and reassembly deductions, which increases the complexity of system processing and occupies too many system resources. This solution sets a fixed time interval to match the entry or exit stations of unmatched transactions in the background system with the open station. This time interval needs to consider the entire travel time of the independent line and the buffer time reserved by the system. It can also count all unmatched records throughout the day after the subway stops running every day, and directly match the stations in these unmatched records with the open stations, and generate corresponding deduction orders for deduction. There is no need to frequently match itineraries. Just set a reasonable itinerary matching interval to reasonably match the itinerary and generate a reasonable deduction order, which greatly simplifies the transaction processing process, reduces system resource usage, greatly reduces the complexity of system processing, and improves the passenger riding experience.

[0058] The unmatched transaction processing method provided in the above embodiment includes unmatched inbound transaction processing and unmatched outbound transaction processing. Therefore, based on the above embodiment, an itinerary matching method for unmatched inbound transactions and an itinerary matching method for unmatched outbound transactions are provided.

[0059] The itinerary matching method for unmatched inbound transactions is as follows Figure 3 As shown, the following steps are included.

[0060] S301. Obtain unmatched incoming transactions that meet preset conditions in the backend system.

[0061] Optionally, the preset condition is that the difference between the transaction time of the unmatched entry transaction and the current time is greater than the time threshold. The setting of the time threshold should take into account the one-way travel time of the independent line and reserve a certain system buffer time, that is, the time threshold is preferably greater than the sum of the one-way travel time of the independent line and the reserved buffer time. For example, if the one-way travel time of the independent line is thirty minutes, the reserved buffer time can be set to fifteen minutes. The reserved buffer time can be adjusted according to actual conditions, then the threshold time is forty-five minutes, that is, the unmatched entry transactions with an entry time of forty-five minutes ago (compared to the current time) are obtained from the background system. It is also possible to obtain all unmatched entry transactions of the day after the independent line is shut down on the day, so that transaction processing is more convenient, and there is no need to frequently process transactions to reduce the burden on the system.

[0062] Optionally, a scheduled task can be set to periodically process unmatched entry transactions, that is, to periodically obtain unmatched entry transactions that meet preset conditions in the background system, and the execution interval of the scheduled task should be less than the above time threshold. In the actual rail transit system, due to the different passenger flow in different time periods, the time it takes for the subway to go from the starting point to the end point is not exactly the same. Therefore, a task can be set to automatically obtain unmatched entry transactions and set the trigger condition. The arrival of the subway at the terminal station or the starting station can be used as the trigger condition of the task.

[0063] S302: Match the entry points of each unmatched entry transaction with the open stations.

[0064] Specifically, a corresponding open-site outbound transaction is generated for each unmatched inbound transaction obtained to match it, and the inbound site and open site of each unmatched inbound transaction are matched for itinerary and a deduction order is generated for deduction.

[0065] The itinerary matching method flow for unmatched outbound transactions is as follows Figure 4 As shown, the following steps are included.

[0066] S401. Obtain an outbound station from the current unmatched outbound transaction, and obtain the previous transaction of the current unmatched outbound transaction.

[0067] Specifically, the type of the previous transaction of the current unmatched outbound transaction includes an unmatched inbound transaction, a matched inbound transaction, an unmatched outbound transaction, and a matched outbound transaction. The processing of the unmatched outbound transaction requires determining the transaction type of the current outbound transaction and the previous transaction.

[0068] S402: Detect whether the current exit station is the terminal station and whether the previous transaction is an unmatched entry station.

[0069] Specifically, unmatched outbound transactions include online outbound transactions and offline outbound transactions. The online outbound transactions refer to the outbound transactions generated when the terminal device (gate) is online, and the transactions are immediately sent to the backend system; the offline outbound transactions refer to the outbound transactions generated when the terminal device (gate) is offline, and the transactions will be sent to the backend system when the terminal device (gate) is back online.

[0070] Optionally, in step S402, when the current unmatched outbound transaction is an online outbound transaction.

[0071] If the current exit point is the terminal and the previous transaction is an unmatched entry transaction, or the current exit point is not the terminal and the previous transaction is an unmatched entry transaction at the terminal, the entry and exit trips of the current exit and the unmatched entry transaction of the previous transaction will be matched.

[0072] If the current exit station is the terminal station and the previous transaction is not an unmatched entry transaction, or the current exit station is not the terminal station and the previous transaction is not an unmatched terminal station entry transaction, the current exit station is matched with the open station for itinerary matching.

[0073] When the current unmatched outbound transaction is an offline outbound transaction.

[0074] If the current exit point is the terminal station and the previous transaction is an unmatched entry transaction, or the current exit point is not the terminal station and the previous transaction is an unmatched terminal station entry transaction, the current exit point is matched with the entry point entry trip of the unmatched entry transaction of the previous transaction.

[0075] If the current exit station is the terminal station and the previous transaction is not an entry transaction, or the current exit station is not the terminal station and the previous transaction is not an entry transaction from the terminal station, the current exit station and the open station are matched for the itinerary.

[0076] If the current exit station is the terminal station and the previous transaction is a matched entry station, or the current exit station is not the terminal station and the previous transaction is a matched entry station transaction at the terminal station, it means that the entry station matched with the previous entry transaction is an open station and the previous transaction needs to be revoked. If the previous transaction has been charged, a refund will be made. If the previous transaction only generated a deduction order but no charge has been made yet, the previous order will be canceled and the entry station of the previous transaction will be matched with the current exit station for itinerary matching.

[0077] In summary, the itinerary matching method in an independent route provided by an embodiment of the present invention obtains unmatched transaction records when there are open sites in the independent route, generates corresponding open site entry transactions or open site exit transactions for the unmatched transactions, matches the entry or exit sites in the unmatched transaction records with the open sites, and initiates a deduction order for deduction based on the matched transactions. The process of itinerary matching and deduction operations for independent routes with open sites is simplified, avoiding the increase in system processing complexity caused by frequent itinerary refunds, itinerary splitting and reassembly deductions, and can also reduce system resource usage, thereby improving the passenger experience.

[0078] The following will be combined Figure 1 The specific example of an independent route with an open station is shown to illustrate the itinerary matching method in the independent route described in the above embodiment, including an online inbound transaction processing flow, an online outbound transaction processing flow, an offline inbound transaction processing flow, an offline outbound transaction processing flow, and an unmatched inbound transaction scheduled task processing flow. Figure 1 The starting station A and the terminal station B are equipped with entry gates and exit gates. Stations B, C and D on the outbound route are only equipped with entry gates, and stations B, C and D on the return route are only equipped with exit gates. The open station E has no gate equipment.

[0079] Online inbound transaction processing flow Figure 5 As shown, when uploading online inbound data to the backend system, it is necessary to perform duplication verification on transaction data and business, including the following steps.

[0080] Upload and parse the online inbound transaction data, and perform data duplication check and business duplication check on the inbound transaction data. If the check fails, it indicates that there is duplicate data, and the transaction processing flow ends. If the check succeeds, the status of the inbound transaction data is set to unmatched and stored in the warehouse, which can be stored in the database or redis cache.

[0081] Offline inbound transaction processing flow Figure 6 As shown, when uploading online inbound data to the backend system, it is necessary to perform duplication verification on the transaction data, including the following steps.

[0082] Upload and parse offline inbound transaction data, and perform data duplication check on the inbound transaction data. If the check fails, it indicates that there is duplicate data, and the transaction processing flow ends. If the check succeeds, the status of the inbound transaction data is set to unmatched and stored in the warehouse, which can be stored in the database or redis cache. The offline inbound transaction processing flow is similar to the online inbound transaction processing flow, except that there is no need to perform anti-duplicate check on the business.

[0083] Online outbound transaction processing flow Figure 7 As shown, when uploading offline outbound data to the backend system, it is necessary to perform duplication verification on transaction data and business. The transaction process is the same as the verification process for online inbound transactions, which will not be repeated here. After the verification is completed, the outbound transaction is matched in itinerary, including the following steps.

[0084] When the current exit point is station F, if the previous transaction is an unmatched entry transaction, station F and the entry point of the previous transaction will be assembled into an itinerary, and a trip order will be generated accordingly to initiate the deduction of fees.

[0085] When the current exit station is station F, if the previous transaction is not an unmatched entry transaction, an entry transaction record for station E is generated for the current unmatched exit transaction to match it, and the itinerary of stations F and E is assembled, and a trip order is generated accordingly to initiate deductions.

[0086] When the current exit point is station A / B / C / D, if the previous transaction is an unmatched entry transaction at station F, station F and the current exit point will be assembled into an itinerary, and a itinerary order will be generated accordingly to initiate the deduction.

[0087] When the current exit point is A / B / C / D, if the previous transaction is a matched entry transaction at F, an entry transaction record for E is generated for the current unmatched exit transaction to match it, and the current exit point and E are assembled into an itinerary, and a trip order is generated accordingly to initiate deductions.

[0088] Offline outbound transaction processing flow Figure 8 As shown, when uploading offline outbound data to the backend system, it is necessary to perform duplication verification on transaction data and business. The transaction process is the same as the verification process for offline inbound transactions, which will not be repeated here. After the verification is completed, the outbound transaction is matched in the following steps.

[0089] When the current exit point is station F, if the previous transaction is an unmatched entry transaction, station F and the entry point of the previous transaction will be assembled into an itinerary, and a itinerary order will be generated accordingly to initiate the deduction of fees.

[0090] When the current exit point is station F, if the previous transaction is a matched entry point transaction, it means that the entry point of the previous transaction is matched with the open station E. At this time, it is necessary to cancel the previous transaction, assemble the entry point and station F of the previous transaction into an itinerary, and generate a travel order based on this to initiate the deduction.

[0091] When the current exit station is station F, if the previous transaction is not an entry transaction, an entry transaction record for station E is generated for the current unmatched exit transaction to match it, and the itinerary of stations F and E is assembled, and a trip order is generated accordingly to initiate deductions.

[0092] When the current exit point is A / B / C / D, if the previous transaction is not an entry transaction at F, an entry transaction record for E is generated for the current unmatched exit transaction to match it, the current exit point and station are assembled into an itinerary, and a trip order is generated accordingly to initiate deductions.

[0093] When the current exit point is A / B / C / D, if the previous transaction is an unmatched entry transaction at station F, station F and the current exit point will be assembled into an itinerary, and a trip order will be generated accordingly to initiate the deduction.

[0094] When the current exit point is A / B / C / D, if the previous transaction is a transaction that has been matched with an entry point at F, it means that the entry point F of the previous transaction has been matched with the open station E. At this time, it is necessary to cancel the previous transaction, assemble the current exit point and F into an itinerary, and generate a itinerary order to initiate the deduction.

[0095] The processing of unmatched incoming transactions is completed through a scheduled task, setting Figure 1 The independent route shown (from Station A to Station F) takes about 30 minutes to complete. The system reserves a buffer time of 15 minutes. The reserved buffer time is a configuration parameter and can be modified according to actual conditions. The scheduled task will query the list of unilateral transactions that entered the station 45 minutes ago (compared to the current time). The backend system adds a scheduled task and sets the execution frequency of the scheduled task to be executed once every 10 minutes. The execution frequency can be modified according to actual conditions but should be less than the sum of the travel time of the independent route and the reserved buffer time.

[0096] like Fig. 9 As shown in the figure, the execution process of the scheduled task is as follows: query the list of unmatched inbound transactions in the system with a transaction time of 45 minutes before from the background system. The background system generates a corresponding E-station outbound transaction for each unmatched inbound transaction queried, and saves the generated E-station outbound transaction to the background system. The background system assembles the itinerary with the inbound unilateral transaction and the E-station outbound transaction and initiates the deduction.

[0097] In summary, this specific example Figure 1 The independent route shown in the figure has been analyzed for the itinerary matching process, and the inbound and outbound transaction processing is divided into unmatched inbound transaction processing and unmatched outbound transaction processing. Unmatched inbound records are processed through scheduled tasks, and unmatched inbound transactions can be processed in batches, and corresponding open station E outbound transactions are generated for unmatched inbound transactions to match them. The judgment of the outbound station and the previous transaction type for unmatched outbound transactions can well achieve accurate itinerary matching for different situations, avoid frequent transaction splitting, and better ensure the accuracy of itinerary matching.

[0098] On the basis of the above-mentioned embodiments, a stroke matching device in an independent circuit is also provided in the embodiments of the present application, and the device is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0099] Fig.10 A stroke matching device in an independent circuit provided in an embodiment of the present application includes:

[0100] The transaction acquisition module 1001 is used to acquire unmatched transactions from the background system. The types of unmatched transactions include unmatched inbound transactions and unmatched outbound transactions.

[0101] The itinerary matching module 1002 is used to perform itinerary matching between the entry station or the exit station in the unmatched transaction and the open station.

[0102] In an optional embodiment, the transaction acquisition module 1001 is specifically used to:

[0103] Obtain unmatched incoming transactions that meet preset conditions in the background system; the preset condition is that the difference between the transaction time of the unmatched incoming transaction and the current time is greater than a time threshold.

[0104] In an optional embodiment, the transaction acquisition module 1001 is further used to:

[0105] Unmatched incoming transactions that meet preset conditions in the transaction system are periodically obtained through a scheduled task; the execution time interval of the scheduled task is less than the time threshold.

[0106] In an optional embodiment, the itinerary matching module 1002 is specifically configured to:

[0107] If the unmatched transactions include unmatched entry transactions, the entry points of each unmatched entry transaction will be matched with the open points for itinerary matching; if the unmatched transactions include unmatched exit transactions, the exit points of each unmatched exit transaction will be matched with the open points for itinerary matching.

[0108] In an optional embodiment, the itinerary matching device in the independent route further includes an online transaction processing module 1003, which is specifically used to:

[0109] The outbound station is obtained from the current unmatched outbound transaction, and the previous transaction of the current unmatched outbound transaction is obtained. When the current unmatched outbound transaction is an online outbound transaction, if the current outbound station is a terminal station and the previous transaction is not an unmatched inbound transaction, or the current outbound station is not a terminal station and the previous transaction is not an unmatched terminal station inbound transaction, the current outbound station is matched with an open station for itinerary matching.

[0110] In an optional embodiment, the itinerary matching device in the independent route further includes an offline transaction processing module 1004, which is specifically used to:

[0111] The outbound station is obtained from the current unmatched outbound transaction, and the previous transaction of the current unmatched outbound transaction is obtained. When the current unmatched outbound transaction is an offline outbound transaction, if the current outbound station is the terminal station and the previous transaction is not an inbound transaction, or the current outbound station is not the terminal station and the previous transaction is not an inbound transaction at the terminal station, the current outbound station and the open station are matched for itinerary.

[0112] In an optional embodiment, the offline transaction processing module 1004 is further used to:

[0113] When the current unmatched outbound transaction is an offline outbound transaction, if the current exit station is the terminal station and the previous transaction is a matched entry station, or the current exit station is not the terminal station and the previous transaction is a matched terminal station entry transaction, the previous transaction will be revoked and the entry station of the previous transaction will be matched with the current exit station for itinerary matching.

[0114] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.

[0115] The stroke matching device in the independent circuit in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.

[0116] The embodiment of the present invention also provides a computer device having the above Fig.10 Stroke matching device in independent circuit shown.

[0117] See also Fig.11 , Fig.11 is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present invention, such as Fig.11As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process instructions executed in the computer device, including instructions stored in or on the memory to display graphic information in a graphical user interface on an external input / output device (such as a display device coupled to an interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Fig.11 A processor 10 is taken as an example.

[0118] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.

[0119] The memory 20 stores instructions executable by at least one processor 10, so that the at least one processor 10 executes the method shown in the above embodiment.

[0120] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0121] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.

[0122] The computer device further comprises a communication interface 30 for the computer device to communicate with other devices or a communication network.

[0123] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.

[0124] A part of the present invention may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present invention through the operation of the computer. Those skilled in the art should understand that the existence of the computer program instruction in a computer-readable medium includes, but is not limited to, a source file, an executable file, an installation package file, etc., and accordingly, the way in which the computer program instruction is executed by the computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium may be any available computer-readable storage medium or communication medium accessible to the computer.

[0125] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.

Claims

1. A method for matching the travel distance in an independent line, characterized in that: The independent line includes: a starting station, a terminal station and an open station, the starting station is connected to the open station via at least one one-way entry station in the outbound line, the open station is connected to the starting station via at least one one-way exit station in the return line, and the open station is bidirectionally connected to the station station; The itinerary matching method comprises: Obtaining unmatched transactions from the backend system; the types of unmatched transactions include unmatched inbound transactions and unmatched outbound transactions; Match the inbound or outbound stops in unmatched transactions with open stops for trip matching.

2. The method according to claim 1, characterized in that The step of matching the entry or exit station in the unmatched transaction with the open station for itinerary includes: If the unmatched transactions include unmatched entry transactions, the entry points of each unmatched entry transaction are matched with the open stations for itinerary matching; If the unmatched transactions include unmatched outbound transactions, the outbound stops of each unmatched outbound transaction are matched with the open stops for itinerary matching.

3. The method according to claim 2, characterized in that When the unmatched transaction includes an unmatched inbound transaction, the step of obtaining the unmatched transaction includes: Obtain unmatched incoming transactions that meet preset conditions in the background system; the preset condition is that the difference between the transaction time of the unmatched incoming transaction and the current time is greater than a time threshold.

4. The method according to claim 3, characterized in that The obtaining of unmatched incoming transactions that meet preset conditions in the background system includes: Unmatched incoming transactions that meet preset conditions in the background system are periodically obtained through a scheduled task; the execution time interval of the scheduled task is less than the time threshold.

5. The method according to claim 3 or 4, characterized in that: The time threshold is the sum of the travel time of the independent line and the reserved buffer time.

6. The method according to claim 2, characterized in that If the unmatched transactions include unmatched entry transactions, the entry points of each unmatched entry transaction are matched with the open stations for itinerary matching, including: Get the outbound point from the current unmatched outbound transaction, and get the previous transaction of the current unmatched outbound transaction; When the current unmatched outbound transaction is an online outbound transaction, if the current outbound station is the terminal station and the previous transaction is not an unmatched inbound transaction, or the current outbound station is not the terminal station and the previous transaction is not an unmatched terminal station inbound transaction, the current outbound station is matched with the open station for itinerary matching.

7. The method according to claim 6, characterized in that The method further comprises: When the current unmatched outbound transaction is an offline outbound transaction, if the current outbound station is the terminal station and the previous transaction is not an inbound transaction, or the current outbound station is not the terminal station and the previous transaction is not an inbound transaction at the terminal station, the current outbound station and the open station are matched for the itinerary.

8. The method according to claim 7, characterized in that The method further comprises: When the current unmatched outbound transaction is an offline outbound transaction, if the current exit station is the terminal station and the previous transaction is a matched entry station, or the current exit station is not the terminal station and the previous transaction is a matched terminal station entry transaction, the previous transaction will be revoked and the entry station of the previous transaction will be matched with the current exit station for itinerary matching.

9. A stroke matching device in an independent circuit, characterized in that: A stroke matching method for an independent circuit according to any one of claims 1 to 8, wherein the stroke matching device comprises: A transaction acquisition module, used to acquire unmatched transactions from the background system; the types of unmatched transactions include unmatched inbound transactions and unmatched outbound transactions; The trip matching module is used to match the entry or exit stations in the unmatched transactions with the open stations for trip matching.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the trip matching method in an independent route according to any one of claims 1 to 8.