DEV Community

Cover image for Building a MaaS App: GTFS, GBFS, Taxi Integration and Fare Capping
Arpit Mishra
Arpit Mishra

Posted on

Building a MaaS App: GTFS, GBFS, Taxi Integration and Fare Capping

Quick Answer

A Mobility as a Service (MaaS) app combines public transit, taxis, ride-hailing, bike share and scooters into one trip planner with one account. Technically, it is an integration project: you consume open data feeds such as GTFS, GTFS-Realtime and GBFS, connect booking APIs from taxi and on-demand operators, and wrap everything in a routing engine and a single payment layer. The hardest parts are data quality, real-time accuracy and fare logic, not the mobile UI.

What data feeds does a MaaS app need?

Most of the open mobility data you need already exists in standard formats:

  • GTFS (General Transit Feed Specification): static schedules, stops, routes and fares for public transit.
  • GTFS-Realtime: live vehicle positions, trip updates and service alerts, usually as Protocol Buffers.
  • GBFS (General Bikeshare Feed Specification): station status, free-floating vehicle locations and availability for bikes and scooters.
  • Operator APIs: booking, pricing and ETA endpoints for taxi fleets, ride-hailing partners and microtransit services.

A practical tip: treat every feed as unreliable. Validate it on ingest, keep the last good version, and alert when a feed goes stale. A trip planner that suggests a bus that stopped running yesterday loses trust immediately.

How does multimodal routing work?

The core of a MaaS app is a routing engine that can combine walking, transit, bikes and car trips. Open-source engines such as OpenTripPlanner are widely used because they understand GTFS and GBFS natively. A typical flow looks like this:

  1. The rider enters origin, destination and departure or arrival time.
  2. The engine builds candidate itineraries across modes.
  3. Real-time data adjusts arrival predictions and removes cancelled trips.
  4. Itineraries are ranked by time, cost, transfers and walking distance.
  5. On-demand legs, such as a taxi for the last mile, are priced live through operator APIs.

The trick is combining scheduled and on-demand legs. A taxi ETA changes minute by minute, while a train follows a timetable, so the app needs to re-check on-demand availability before the rider commits.

Where does the taxi integration fit?

Taxi and ride-hailing legs are what make MaaS useful outside dense transit areas. The integration usually needs:

  • Real-time availability and ETA by location
  • Upfront fare quotes or fare estimates
  • Booking, cancellation and status webhooks
  • Driver location updates during the trip
  • Payment handled through the MaaS account, with settlement to the operator

If you are building the taxi side yourself, the dispatch system matters more than the rider screens. Teams working on taxi booking app development often expose a clean partner API from day one, because it lets the fleet join MaaS platforms, corporate travel tools and hotel concierge systems without separate integrations.

How do you handle payments and fares?

One account, one payment method and one receipt is the promise of MaaS. Behind it, the platform needs:

  • Account-based ticketing: the rider's account, not a physical card, holds entitlements.
  • Fare capping: frequent riders never pay more than a daily, weekly or monthly limit.
  • Split settlement: revenue from a combined trip is shared correctly between operators.
  • Concessions: discounted fares for students, seniors or low-income riders, verified once and applied automatically.

Fare rules differ by agency and change over time, so model them as configuration, not code.

What are the hard engineering problems?

  • Data freshness: real-time feeds drop or lag; the app must degrade gracefully.
  • Identity across operators: one rider may need accounts or tokens with several partners.
  • Offline use: riders lose signal underground, so tickets and itineraries should work offline.
  • Accessibility: step-free routes, wheelchair-accessible vehicles and screen reader support are essential, especially for public-sector clients.
  • Privacy: trip histories reveal where people live and work; minimize what you store and how long you keep it.

Who usually buys a MaaS platform?

In the US, MaaS projects often start with a city, a regional transit agency, a university campus or a large employer, rather than a consumer startup. That affects scope: procurement requirements, accessibility standards and data-sharing agreements can take as long as the build itself. Anyone planning MaaS solutions should budget for open data standards, open APIs and clear reporting, because public partners expect them.

A minimal architecture

  • Ingestion services for GTFS, GTFS-Realtime and GBFS, with validation and versioning
  • Routing engine (for example, OpenTripPlanner) with real-time updates
  • Partner gateway for taxi, ride-hailing and microtransit APIs
  • Account and payments service with fare capping and settlement
  • Mobile apps with offline tickets, live trip tracking and accessibility settings
  • Operator dashboard for service alerts, analytics and reporting

Final thoughts

MaaS succeeds when the data underneath is trustworthy and the payment experience feels like one product. Start with reliable feeds and one or two partner integrations, prove that riders complete trips end to end, and expand modes and partners from there.

Top comments (0)