Calculation method and system for realizing metro and bus transfer discount based on bus taking code

By building a unified cross-system management platform and passenger identity recognition mechanism, the problem of subway and bus QR codes not being interoperable has been solved, seamless transfer benefits between subway and bus have been achieved, and the efficiency of the public transportation system and user experience have been improved.

CN120689944APending Publication Date: 2025-09-23PANDA ELECTRONICS +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510775401.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-11
Publication Date
2025-09-23

AI Technical Summary

Technical Problem

The QR code standards for subways and buses are not interoperable, which means passengers cannot enjoy a seamless payment experience when transferring, increases operational complexity and reduces the overall efficiency and service level of public transportation.

Method used

Build a unified management platform for cross-system transfer discount services to achieve data interaction and collaborative discount calculation between subway and bus ticketing systems. Through the unique passenger identity identification mechanism and multi-dimensional parameter settings, dynamically calculate the transfer discount amount, and implement intelligent discount decision-making with millisecond-level response on the unified management platform.

Benefits of technology

It realizes seamless transfer discounts between subways and buses, simplifies the passenger operation process, enhances the attractiveness of the public transportation system and the convenience of transfers, ensures the accuracy of discount calculations and the reliability of the system, and adapts to the operational needs of different cities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120689944A_ABST
    Figure CN120689944A_ABST
Patent Text Reader

Abstract

The invention discloses a calculation method and system for realizing metro and bus transfer preferential based on a riding code, and the method comprises the steps: building a passenger identity unique recognition mechanism through configuring multi-dimensional parameters including a time window, a preferential amount and transfer type limitation; a cross-system unified management platform is constructed, and data interaction and preferential cooperative calculation of subways and buses are realized; the subway system submits time-space transaction data after completing OD pairing and fee calculation, and the public transportation system transmits riding fee data in real time; the platform dynamically calculates a discount amount based on a preset rule and historical travel data, returns a result to the ticketing system for settlement, establishes a delay transaction processing mechanism, and audits abnormal transactions through night batch processing; according to the invention, automatic identification and dynamic preferential calculation technologies can be realized, non-sensitive transfer preferences are realized, the passenger operation process is simplified, the attraction and transfer convenience of a public transport system are improved, the travel experience is integrally optimized, and the operation efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of public transportation payment, and in particular relates to a calculation method and system for realizing subway and bus transfer discounts based on a boarding code. Background Art

[0002] With the acceleration of urbanization in recent years, public transportation has become a primary mode of transportation for residents. Many cities across China have built and operated subway and bus systems, while also actively promoting intelligent ticketing upgrades. Currently, rail and bus systems in most cities support QR code payment, allowing passengers to quickly scan a QR code to board a bus using their mobile devices. The widespread adoption of this technology has significantly improved the convenience of public transportation and promoted the widespread use of cashless payments in the transportation sector.

[0003] In existing technology, subway and bus systems typically use independent ticketing platforms, each generating a QR code that meets its own system standards. For example, subway systems in some cities use dedicated QR codes generated based on industry standards, while bus systems may use codes provided by third-party payment platforms (such as Alipay and WeChat). When using these platforms, passengers must open the corresponding app or switch to different QR code pages to complete payment. The system backend processes transaction data through an independent settlement system.

[0004] However, the current technical solution's QR code standards for subways and buses are not interoperable, preventing passengers from enjoying a seamless payment experience when transferring. Due to a lack of coordination between systems, transfers require multiple scans and no automatic discount calculations. This not only increases operational complexity but also reduces the overall efficiency and service level of public transportation. Summary of the Invention

[0005] Purpose of the invention: The purpose of the present invention is to provide a method for calculating discounts for subway and bus transfers based on a boarding code, which can optimize the public transportation travel experience through intelligent and convenient technical means and enhance the attractiveness and utilization efficiency of the public transportation system; on the other hand, to provide a calculation system for calculating discounts for subway and bus transfers based on a boarding code.

[0006] Technical solution: The method for calculating the subway and bus transfer discount of the present invention includes the following steps:

[0007] (1) Configure transfer discount business rules, set multi-dimensional parameters including transfer discount time window, discount amount, and transfer type restrictions, and establish a unique passenger identity identification mechanism to achieve flexible customization of discount rules and accurate user identification to meet the differentiated operation needs of different cities;

[0008] (2) Build a unified management platform for cross-system transfer discount services, realize data interaction and discount collaborative calculation between subway and bus ticketing systems, realize real-time data interaction between subway and bus systems, and provide basic support for cross-system discount collaborative calculation;

[0009] (3) The subway ticketing system processes passenger travel data, completes OD matching and basic fare calculation, and submits the complete transaction data including time and space information to the unified management platform to ensure the accuracy of transfer judgment and the reliability of fare calculation;

[0010] (4) The bus ticketing system calculates the single or segmented fare in real time and transmits the consumption data including the device identification to a unified management platform to ensure the data integrity in different vehicle types;

[0011] (5) The unified management platform dynamically calculates the applicable transfer discount amount based on preset rules by comparing passenger identity and historical travel data, achieving intelligent discount decision-making with millisecond response and improving user experience;

[0012] (6) The final approved fare and discount details are returned to the corresponding ticketing system, which then initiates fee settlement to the passenger terminal, thus achieving a seamless “ride equals discount” service and simplifying the passenger operation process;

[0013] (7) Establish a delayed transaction processing mechanism to audit and correct abnormal transactions through nightly batch processing, automatically identify and correct abnormal transactions, and ensure system fault tolerance and financial accuracy.

[0014] Preferably, the transfer discount business rules described in step 1 include the following control parameters: a Boolean parameter for whether subway transfers to subways are allowed to enjoy transfer discounts; a Boolean parameter for whether bus transfers to buses are allowed to enjoy transfer discounts; an order parameter for calculating the priority of transfer discounts and ordinary discounts; and a list of routes that enjoy transfer discounts.

[0015] By setting multiple control parameters, transfer discount policies are highly flexible and precisely controlled. Specifically, the subway / bus transfer type restriction parameter (Boolean) allows for flexible configuration of discount combinations across different modes of transportation; the calculation priority parameter ensures the accuracy of discount stacking logic; and the route list parameter supports targeted discounts for specific routes. The synergistic effect of these parameters enables the system to adapt to the operational needs of different cities, ensuring the uniformity of preferential policies while allowing for differentiated configuration based on actual conditions. This improves the passenger transfer experience while optimizing the rational allocation of public transportation resources.

[0016] Preferably, the control parameters of the transfer discount time window include: setting an adjustable window period of XX±5 minutes; a Boolean parameter that identifies whether it is a fixed window period. When the value is 0 or false, it indicates a non-fixed window period, and the transfer discount is only enjoyed when the time interval between two rides is within the XX±5 minute window period; when the value is 1 or true, it indicates a fixed window period, and all transfers within the XX±5 minute window period after the first ride are eligible for transfer discounts. After the window period expires, the timing starts again with the current ride time as the starting point.

[0017] Through the dual configuration of adjustable window durations and window type identifiers, intelligent dynamic management of transfer time limits is achieved. When set to a non-fixed duration (false), the timeliness of individual transfers is precisely controlled, ensuring accurate triggering of discounts; when set to a fixed duration (true), continuous discount windows are provided, enhancing the high-frequency transfer experience. This flexible time window mechanism not only meets the differentiated needs of different city operation strategies, but also dynamically optimizes discount rules based on actual passenger flow. This significantly improves passenger transfer convenience and discount coverage while ensuring system fairness.

[0018] Preferably, the passenger identity unique identification mechanism includes: a passenger identity unique identification code, which is a required option, using an ID card number or a unique index generated based on the ID card number, for identifying the passenger identity across systems; a boarding code carrier identifier, which is an optional option, for limiting the boarding code carriers for passengers to enjoy transfer discounts; wherein: when this identifier is selected, passengers can only enjoy transfer discounts when taking the bus or subway through the designated boarding code carrier; when this identifier is not selected, passengers can enjoy transfer discounts when taking the bus or subway through any boarding code carrier.

[0019] A mandatory unique identification code enables precise cross-system identity authentication, ensuring the accuracy of discount calculations. Optional ride-code carrier identification allows for flexible control over the scope of discounts, supporting both targeted discount scenarios limited to specific payment channels and a universal, all-channel inclusive model. This dual-identification mechanism, while ensuring system security and data consistency, provides operators with flexible control over payment channels, meeting the needs of commercial partnerships while ensuring broad coverage of preferential policies, effectively balancing the dual demands of operational management and user experience.

[0020] Preferably, the transaction data submitted by the subway ticketing system in step 3 includes at least: the entry station code, the entry station time, the exit station code, the exit station time, the pre-discount fare for this ride, the discount or amount for this ride, and whether it is a delayed upload transaction identifier; the data fed back to the subway ticketing system by the unified management platform includes at least: the original deduction request amount, the amount to be deducted this time, the transfer discount amount, and whether the transfer discount is enjoyed.

[0021] The complete spatiotemporal transaction data submitted by the subway ticketing system and the feedback data from the unified management platform together form a closed-loop data exchange mechanism. This mechanism ensures the accuracy of transfer decisions through precise OD spatiotemporal matching, enables the cumulative calculation of multiple discount levels using fare details, and ensures data integrity in the event of anomalies through delayed transaction identification. This structured data exchange not only supports real-time and accurate discount calculations, but also provides a complete data chain for subsequent audit tracking, improving the efficiency of discount processing while ensuring transaction traceability and system reliability.

[0022] Preferably, the data transmitted by the bus ticketing system in step 4 includes at least: the station machine code, the pre-discount fare for this ride, the discount or amount for this ride, and whether it is a delayed upload transaction identifier; the data fed back to the bus ticketing system by the unified management platform includes at least: the original deduction request amount, the amount to be deducted this time, the transfer discount amount, and whether the transfer discount is enjoyed.

[0023] The data exchange mechanism between the bus ticketing system and the unified management platform enables accurate fare calculation in public transportation scenarios by transmitting key information such as the on-board device identifier, original fare, and delay identifier, combined with the actual deduction amount and discount identifier fed back by the platform. This mechanism not only supports instant discount calculation for a single ride, but also identifies abnormal conditions such as device offline, ensuring a seamless integration of segmented billing and transfer discounts. This lightweight yet comprehensive data exchange design not only meets the real-time requirements of public transportation scenarios, but also ensures the accuracy and reliability of cross-system discount calculations, providing passengers with a consistent and seamless discount experience.

[0024] Preferably, the dynamically calculated applicable transfer discount amount in step 5 includes:

[0025] (51) The unified management platform receives deduction requests uploaded by the subway or bus ticketing system;

[0026] (52) Determine whether there is historical deduction information based on the passenger's unique identification code. If so, proceed to step (53); otherwise, proceed directly to step 6;

[0027] (53) Based on the ID of the boarding code carrier, the Boolean parameter indicating whether the transfer from subway to subway is allowed to enjoy the transfer discount, and the Boolean parameter indicating whether the transfer from bus to bus is allowed to enjoy the transfer discount, determine whether the transaction is eligible for the transfer discount service;

[0028] (54) When the condition of step (53) is met, further judging whether the current transaction time meets the preferential conditions based on the adjustable window period and the Boolean parameter of whether it is a fixed window period;

[0029] (55) For transactions that meet the preferential conditions, the final transfer discount amount is calculated according to the order parameters of the calculation priority of transfer discount and ordinary discount, combined with the current ride discount or amount in the deduction request.

[0030] Intelligent transfer discount decision-making is achieved through multi-level conditional judgment. This mechanism first confirms discount eligibility through the passenger's unique identity identification code, then combines transfer type parameters and precise time window control to screen valid transfer behaviors, and finally intelligently stacks various discounts according to preset priorities. This progressive calculation process not only ensures strict enforcement of discount rules, but also adapts to the complex billing strategies of different cities. It completes accurate discount calculations within millisecond response times, providing passengers with a seamless "conditional trigger - automatic reduction and exemption" discount experience, while also ensuring the accuracy and consistency of cross-system settlement.

[0031] Preferably, the delayed transaction processing mechanism described in step 7 includes: recalculating transfer discounts for delayed transactions caused by equipment failures in combination with historical transaction data during nighttime batch processing; and proactively initiating a difference adjustment application including refunds and recalculations when calculation anomalies are found.

[0032] The dual safeguards of "offline auditing + automatic error correction" effectively address discount calculation anomalies caused by network delays or equipment failures. This mechanism utilizes a nighttime batch processing window to fully review delayed transactions. By comparing historical travel data, it intelligently identifies missed or miscalculated discounts and automatically triggers a refund / rededuction process for the difference. This asynchronous processing approach avoids impacting the performance of the real-time transaction system while ensuring the accuracy of the final settlement amount. It safeguards system throughput while protecting passenger rights and the financial integrity of the operator, achieving an optimal balance between fault tolerance and eventual data consistency.

[0033] The system for calculating subway and bus transfer discounts of the present invention includes:

[0034] Rule configuration module: stores and manages multi-dimensional parameters including transfer discount window period, discount amount, and transfer type restrictions;

[0035] Unified management platform: This platform enables data interaction with the subway ticketing system and the bus ticketing system. It includes: a subway interface unit that receives complete transaction data including OD matching results; a bus interface unit that receives real-time calculated travel consumption data; and a discount calculation engine that dynamically calculates discount amounts based on passenger identity and historical travel data.

[0036] Audit unit: handles delayed transactions and performs fee corrections;

[0037] Subway ticketing subsystem: completes entry and exit OD matching and basic fee calculation;

[0038] Public transportation ticketing subsystem: Real-time calculation of single or segmented travel fees;

[0039] Settlement communication module: returns the approved fees and discount details to the corresponding ticketing system.

[0040] A modular architecture enables intelligent management of the entire process of subway and bus transfer discounts: the rule configuration module provides flexible parameterized management, a unified management platform enables real-time cross-system data exchange and dynamic discount calculation, subway and bus ticketing subsystems ensure accurate accounting for different billing models, and the settlement communication module ensures accurate feedback on discount results. While ensuring the independent operation of each subsystem, this system enables data interoperability and business collaboration through a unified platform. This not only meets the needs of real-time discount calculation in complex scenarios, but also ensures financial accuracy through a delayed transaction audit mechanism, providing an efficient and reliable integrated transfer discount solution for urban public transportation systems.

[0041] Preferably, the unified management platform adopts any one of the following architectures: an extension of the subway ticketing system as the basic architecture; an extension of the bus ticketing system as the basic architecture; a third-party public service platform architecture independent of the subway and bus systems.

[0042] The unified management platform's multiple architecture options provide flexible technology deployment paths for different cities, leveraging existing ticketing system resources for low-cost transformation while ensuring neutrality and scalability through an independent platform. This architectural flexibility effectively accommodates regional differences in information technology development. While ensuring cross-system collaboration, it allows for the selection of the optimal implementation based on actual infrastructure conditions. This reduces system transformation costs and risks while leaving ample room for subsequent functional upgrades, achieving an optimal balance between technological advancement and practical implementation.

[0043] Beneficial effects: Compared with the existing technology, the present invention has the following significant advantages: 1. It can automatically identify and dynamically calculate discounts to achieve "seamless" transfer discounts, simplify passenger operation processes, meet the personalized needs of different cities, effectively improve the attractiveness of the public transportation system and the convenience of transfers, optimize the travel experience as a whole and improve operational efficiency; 2. The innovative unified management platform breaks the data barriers between buses and subways, realizes real-time discount calculation with millisecond-level response, and is compatible with the hybrid mode of segmented billing (subway) and single billing (bus), ensuring the accuracy and efficiency of cross-system transfer discounts; 3. Through the dual mechanisms of delayed transaction identification and night batch auditing, abnormal transactions can be accurately identified and automatically repaired; the dynamic window period algorithm and difference adjustment system effectively avoid discount calculation errors caused by network delays or equipment failures, and ensure transaction reliability; 4. Modular parameter design supports dynamic adjustment of discount strategies (such as extending the discount window period during peak hours), and the passenger unique identification system provides an expansion basis for subsequent personalized services. The three-choice system architecture adapts to the information status of different cities, ensuring the wide applicability of the technical solution. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Figure 1 Schematic diagram of the method flow of the present invention;

[0045] Figure 2 This is a schematic diagram of the transfer discount calculation method of the present invention;

[0046] Figure 3 Schematic diagram of the transfer discount calculation result audit method of the present invention. DETAILED DESCRIPTION

[0047] The technical solution of the present invention will be further described below with reference to the accompanying drawings.

[0048] like Figure 1 As shown, the present invention proposes a calculation method for realizing subway and bus transfer discounts based on the boarding code, which includes the following key steps:

[0049] Step 1: Setting up transfer discount service judgment rules

[0050] The input elements for determining discounts for subway and bus transfers in the public transportation sector generally include the discount start time, the discount window period, and the discount amount. The industry's common design approach is: ① The discount start time is based on the first card swipe time, e.g., for subways, it's based on the time a passenger swipes into the station, and for buses, it's based on the first card swipe to board the bus; ② The discount window period is typically set at XX ± 5 minutes; and ③ The discount amount is generally fixed.

[0051] The following are specifically addressed in this method:

[0052] 1) Added transfer discount rule control parameters: Parameter 1-1: Whether to allow transfer discounts when transferring from subway to subway (0 / false means not allowed, 1 / true means allowed); Parameter 1-2: Whether to allow transfer discounts when transferring from bus to bus (0 / false means not allowed, 1 / true means allowed); Parameter 1-3: Priority of calculating transfer discounts and ordinary discounts (0 / false means ordinary discounts are calculated first and then transfer discounts, 1 / true means transfer discounts are calculated first and then ordinary discounts); Parameter 1-4: List of routes that enjoy transfer discounts.

[0053] 2) Added transfer discount window control parameters: Parameter 2-1: Transfer discount window period (XX ± 5 minutes); Parameter 2-2: Whether the window period is fixed (0 / false indicates an unfixed period, and transfer discounts are available if the time interval between two rides is within the transfer discount window period; 1 / true indicates a fixed period, and all transfers within the transfer discount window period are eligible for transfer discounts, and the timer will restart after the window period).

[0054] 3) Added parameters for transfer discount statistics: Parameter 3-1: Passenger Identity Unique Identifier: Required, such as an ID number or a unique index generated from the ID number, used to accurately identify the passenger. Parameter 3-2: Ride ID Carrier Identifier: Optional, used to identify the specific ride ID carrier used by the passenger. When this parameter is selected, the same passenger will only receive transfer discounts when using a specific ride ID carrier on the bus or subway; when not selected, the same passenger can receive transfer discounts using any ride ID carrier.

[0055] Step 2: Set up a unified management platform for transfer discount services

[0056] Most of the domestic urban bus and subway systems have an independent QR code management system, which is the fundamental reason for the inconsistency of QR code standards between bus and subway systems in the existing technology. This method clearly states that the unified management platform for transfer discount services is responsible for the unified management of transfer discounts for bus and subway QR code services. Based on the current status of industry technology development, there are three optional management options for the unified management platform for transfer discount services in this solution: ① Using the subway ticketing system as the unified management platform for transfer discount services; ② Using the bus ticketing system as the unified management platform for transfer discount services; ③ Using public transportation transfers as the unified management platform for transfer discount services.

[0057] Step 3: Calculation rules for subway and bus transfer discounts

[0058] 1) Subway transaction data collection and processing rules: The subway sector adopts a time-sharing and segmented consumption model. When a passenger completes the time-sharing and segmented consumption, the subway ticketing system first combines the passenger's unique identity identification code and the boarding code carrier identifier to perform OD (Origin-Destination, i.e., the starting station and the final station) pairing and calculate the fare for this trip. The data is then used to initiate a fee deduction application to the boarding code carrier used by the passenger (APP, such as: official APP, Alipay, WeChat and other boarding code cooperative carriers).

[0059] In this method, the subway ticketing system first combines the passenger's unique identity identification code and the boarding code carrier identifier to perform OD (Origin-Destination, i.e., the starting station and the ending station) pairing on the passenger's time-sharing and segmented travel consumption data and calculates the fare for this trip. The subway ticketing system then sends this to the unified management platform for transfer discount services to calculate the transfer discount fee. After obtaining the transfer discount fee calculation result, the data is used to initiate a fee deduction application to the boarding code carrier used by the passenger (APP, such as: official APP, Alipay, WeChat and other boarding code cooperative carriers).

[0060] Specifically, the data transmitted by the subway ticketing system to the unified transfer discount management platform includes at least the following information: entry station code, entry station time, exit station code, exit station time, pre-discount fare, discount or amount for this trip, and whether the transaction was uploaded late. The data fed back by the unified transfer discount management platform to the subway ticketing system includes at least the original deduction request amount, the current pending deduction amount, the transfer discount amount, and whether the transfer discount is available.

[0061] In particular, the calculation of transfer discounts involves the respective ticketing systems of the subway and bus. Two identifiers, "discount or amount for this ride" and "whether it is a delayed upload transaction identifier", are specially added to the deduction request message to solve the problem of inconsistent ticketing rules between the subway and bus systems and the confusion in transfer discount calculation caused by delayed transaction upload due to equipment failure.

[0062] 2) Public transportation transaction data collection and processing rules: The public transportation sector generally adopts a single-trip consumption model. When a passenger scans a QR code to board a bus, the bus ticketing system first calculates the fare for the trip based on the local configuration attributes of the on-board device, and then uses this data to initiate a fee deduction application to the passenger's boarding QR code carrier (APP, such as the official APP, Alipay, WeChat, and other bus QR code cooperative carriers). When some public transportation vehicles adopt a time-sharing and segmented consumption model, the bus ticketing system needs to calculate the fare for each segment based on the local configuration attributes of the on-board device, and then use this data to initiate a fee deduction application to the passenger's boarding QR code carrier (APP, such as the official APP, Alipay, WeChat, and other bus QR code cooperative carriers).

[0063] In this method, the bus ticketing system first calculates the fare for this trip based on the local configuration attributes of the on-board machine, and then sends it to the unified management platform for transfer discount services to calculate the transfer discount fee. After obtaining the transfer discount fee calculation results, the data is used to initiate a fee deduction application to the passenger's boarding code carrier (APP, such as: official APP, Alipay, WeChat and other boarding code cooperation carriers).

[0064] Specifically, the data transmitted by the bus ticketing system to the unified transfer discount management platform includes at least the following information: the station code, the pre-discount fare for this trip, the discount or amount for this trip, and whether the transaction was uploaded late. The data fed back to the bus ticketing system by the unified transfer discount management platform includes at least the original deduction request amount, the current pending deduction amount, the transfer discount amount, and whether the transfer discount is available.

[0065] In particular, the calculation of transfer discounts involves the respective ticketing systems of the subway and bus. Two identifiers, "discount or amount for this ride" and "whether it is a delayed upload transaction identifier", are specially added to the deduction request message to solve the problem of inconsistent ticketing rules between the subway and bus systems and the confusion in transfer discount calculation caused by delayed transaction upload due to equipment failure.

[0066] 3) Transfer discount calculation rules: The unified management platform for transfer discount business needs to determine the transfer discount amount based on the preset transfer discount business judgment rules. Figure 2 The specific rules are as follows:

[0067] S1: The unified management platform for preferential services receives a deduction request uploaded by the subway or bus ticketing system;

[0068] S2: Determine whether there is historical deduction information in the system based on "Parameter 3-1: Passenger Identity Unique Identification Code". If yes, execute S3; otherwise, execute S6.

[0069] S3: Determine whether this transaction is eligible for the transfer discount service based on "Parameter 3-2: Carrier ID of the QR Code", "Parameter 1-1: Whether the subway transfer to the subway is allowed to enjoy the transfer discount" and "Parameter 1-2: Whether the bus transfer to the bus is allowed to enjoy the transfer discount". If yes, execute S4; otherwise, execute S6.

[0070] S4: Determine whether this transaction meets the transfer discount conditions based on "Parameter 2-1: Transfer Discount Window Period" and "Parameter 2-2: Whether it is a fixed window period". If so, execute S5; otherwise, execute S6.

[0071] S5: Calculate the transfer discount amount based on "Parameter 1-3: Transfer discount and general discount calculation priority" and "the current ride discount or amount received in the deduction information", and execute S6;

[0072] S6: The unified management platform for transfer discount services feeds back the transfer discount calculation results to the subway or bus ticketing system.

[0073] 4) Audit rules for transfer discount calculation results, such as Figure 3 As shown, the unified management platform for transfer discount services will audit the delayed transactions at night and recalculate the transfer discount based on the passenger's historical transactions. If there is an abnormality in the calculation of the transfer discount amount, an application for difference adjustment should be proactively submitted to the subway or bus system. The application for difference adjustment includes refunding the deducted amount and recalculating the amount.

Claims

1. A calculation method for realizing subway and bus transfer discounts based on a ride code, characterized in that: The following steps are involved: (1) Configure transfer discount business rules, set multi-dimensional parameters including transfer discount time window, discount amount, transfer type restrictions, and establish a unique passenger identity identification mechanism; (2) Build a unified management platform for cross-system transfer discount services to achieve data interaction and discount collaborative calculation between subway and bus ticketing systems; (3) The subway ticketing system processes passenger travel data, completes OD matching and basic fee calculation, and submits the complete transaction data including spatiotemporal information to the unified management platform; (4) The bus ticketing system calculates the single or segmented fare in real time and transmits the consumption data including the device identification to the unified management platform; (5) The unified management platform dynamically calculates the applicable transfer discount amount based on preset rules by comparing passenger identity and historical travel data; (6) The final approved fare and discount details are returned to the corresponding ticketing system, which then initiates fare settlement to the passenger terminal; (7) Establish a delayed transaction processing mechanism to audit abnormal transactions and correct fees through nightly batch processing.

2. The method for calculating the subway and bus transfer discount according to claim 1, characterized in that: The transfer discount business rules described in step 1 include the following control parameters: A Boolean parameter indicating whether to allow transfer discounts when transferring from the subway to the subway; A Boolean parameter indicating whether bus transfers to public transport are allowed to enjoy transfer discounts; The order parameter for calculating the priority of transfer discounts and ordinary discounts; List of routes that enjoy transfer discounts.

3. The method for calculating the subway and bus transfer discount according to claim 1, characterized in that: The control parameters of the transfer discount time window include: Set an adjustable window period of XX±5 minutes; A Boolean parameter that identifies whether the window period is fixed. When the value is 0 or false, it indicates a non-fixed window period, and the transfer discount is only available when the time interval between two rides is within the XX±5 minute window period. When the value is 1 or true, it indicates a fixed window period, and all transfers within the XX±5 minute window period after the first ride are eligible for the transfer discount. After the window period expires, the timer starts again with the current ride time as the starting point.

4. The method for calculating the subway and bus transfer discount according to claim 1, characterized in that: The passenger identity unique identification mechanism includes: Passenger unique identification code, which is required and uses the ID card number or a unique index generated based on the ID card number, for cross-system identification of the passenger; The boarding code carrier identifier is an optional item, which is used to limit the boarding code carriers for passengers to enjoy transfer discounts; among them: when this identifier is selected, passengers can only enjoy transfer discounts when they take the bus or subway through the designated boarding code carrier; when this identifier is not selected, passengers can enjoy transfer discounts when they take the bus or subway through any boarding code carrier.

5. The method for calculating the subway and bus transfer discount according to claim 1, characterized in that: The transaction data submitted by the subway ticketing system in step 3 includes at least: the entry station code, the entry station time, the exit station code, the exit station time, the pre-discount fare for this ride, the discount or amount for this ride, and whether it is a delayed upload transaction identifier; the data fed back to the subway ticketing system by the unified management platform includes at least: the original deduction request amount, the amount to be deducted this time, the transfer discount amount, and whether the transfer discount is enjoyed.

6. The method for calculating the subway and bus transfer discount according to claim 1, characterized in that: The data transmitted by the bus ticketing system in step 4 includes at least: the station machine code, the pre-discount fare for this ride, the discount or amount for this ride, and whether it is a delayed upload transaction identifier; the data fed back to the bus ticketing system by the unified management platform includes at least: the original deduction request amount, the amount to be deducted this time, the transfer discount amount, and whether the transfer discount is enjoyed.

7. The method for calculating the subway and bus transfer discount according to claim 1, characterized in that: The applicable transfer discount amounts dynamically calculated in step 5 include: (51) The unified management platform receives deduction requests uploaded by the subway or bus ticketing system; (52) Determine whether there is historical deduction information based on the passenger's unique identification code. If so, proceed to step (53); otherwise, proceed directly to step 6; (53) Based on the ID of the boarding code carrier, the Boolean parameter indicating whether the transfer from subway to subway is allowed to enjoy the transfer discount, and the Boolean parameter indicating whether the transfer from bus to bus is allowed to enjoy the transfer discount, determine whether the transaction is eligible for the transfer discount service; (54) When the condition of step (53) is met, further judging whether the current transaction time meets the preferential conditions based on the adjustable window period and the Boolean parameter of whether it is a fixed window period; (55) For transactions that meet the preferential conditions, the final transfer discount amount is calculated according to the order parameters of the calculation priority of transfer discount and ordinary discount, combined with the current ride discount or amount in the deduction request.

8. The method for calculating the subway and bus transfer discount according to claim 1, characterized in that: The delayed transaction processing mechanism described in step 7 includes: For delayed transactions caused by equipment failure, transfer discounts will be recalculated during nighttime batch processing based on historical transaction data; When calculation anomalies are discovered, proactively initiate a difference adjustment application including refund and recalculation.

9. A calculation system for realizing subway and bus transfer discounts based on a ride code, characterized in that: include: Rule configuration module: stores and manages multi-dimensional parameters including transfer discount window period, discount amount, and transfer type restrictions; Unified management platform: This platform enables data interaction with the subway ticketing system and the bus ticketing system. It includes: a subway interface unit that receives complete transaction data including OD matching results; a bus interface unit that receives real-time calculated travel consumption data; and a discount calculation engine that dynamically calculates discount amounts based on passenger identity and historical travel data. Audit unit: handles delayed transactions and performs fee corrections; Subway ticketing subsystem: completes entry and exit OD matching and basic fee calculation; Public transportation ticketing subsystem: Real-time calculation of single or segmented travel fees; Settlement communication module: returns the approved fees and discount details to the corresponding ticketing system.

10. The calculation system for subway and bus transfer discounts according to claim 9, characterized in that: The unified management platform adopts any of the following architectures: It is formed by expanding the subway ticketing system as the basic framework; It is formed by expanding the bus ticketing system as the infrastructure; A third-party public service platform architecture that is independent of the subway and bus systems.