+
Malaysia Transit shows live buses, trains and ferries across 13 areas of Malaysia, on a website and in apps for iPhone, iPad and Android. SG-JB Transit does the same for Singapore, Johor Bahru and the crossings between them. Both are free, with no ads and no subscription, and one person builds and runs them: Aliff, under TechMavie Digital in Penang.
Malaysia has good public transport in more places than most people think, and much of it publishes live data. What riders lacked was one clear, free place to see it all.
Each operator has its own app, website or nothing at all: Rapid KL and Rapid Penang, BAS.MY in each city, KTM, the ferries, Causeway Link. A trip that uses two of them meant two apps, or guesswork.
Apps such as Moovit and Transit ask for a subscription to remove ads or unlock some features. A rider waiting for a bus in Kangar shouldn't have to pay to see when it comes.
Google Maps and Apple Maps show some live times, but not a stop's whole timetable, the fare and how to pay each operator, whether buses keep their times, or the border crossings' details. Nor are they laid out the way riders here travel.
Visitors from Thailand, Indonesia, China, Korea or Japan, and Malaysians of every language, need the same clear answers. Both apps and websites speak 13 languages, including Tamil, Iban and Bidayuh.
Accountability. A timetable is a promise. Recording every bus shows, plainly and for everyone, how well each route keeps it, which helps riders plan and gives operators and agencies the evidence to improve. Section 10 and the arrival-times white paper describe how.
Both products started from one rider's real trips in Penang and beyond, and grew from what was missing on them: which bus is coming and where it is now, whether it has left its terminal, which stop to wait at, what to pay and how, and what to do at the border. Every feature since has been tried on real journeys first, on an iPhone, an iPad and Android, and fixed when it didn't hold up.
No ads, no paywall, no account needed. Riders who want to can leave a tip ("Buy me a matcha latte").
A live time says it's live; a timetabled one says it's scheduled; a bus at its terminal says "Not departed yet". Records say where they come from and their limits.
Timetables, fares and payment rules come from the operators and agencies, checked against their published sources and dated.
Neither is a government app, nor affiliated with or endorsed by any government body or operator, including the Ministry of Transport, APAD, Prasarana, KTMB, BAS.MY and LTA.
The websites and the apps share the same features and data, worked out by the same server. The apps add what phones do best: alerts, a lock-screen Live Activity, widgets and an offline copy of timetables.
Every bus with a live feed is on the map, labelled with its route and where it's going ("101 → Teluk Bahang"), with an arrow for its heading. Routes are drawn along OpenStreetMap's roads and railways, in one direction or both, with their stops. Nearby stops puts a pin where you are (or on a place you search for) and lists the closest stops with their next live buses.
A stop's sheet lists its live arrivals, coloured by punctuality, then its timetable. Bus approaching shows a bus coming to your stop on a map, the stops still to go numbered from the bus, and the buses after it. Today at this stop says how today's buses kept to their timetable ("13 of 16 on time · 3 late"). Stops that two areas share, such as Sungai Petani's, list both areas' buses.
From any address or place to any other, by bus, train and ferry, now or at a chosen time. Each option reads down a timeline: where to walk, board and change, each ride's next bus or train (tap a live time to watch the bus come, or a timetabled one for its departures), the fare for adults and concessions, and how to pay on each operator. Journeys are planned by our own MOTIS planner and places come from GrabMaps (section 18). Trips into Singapore hand over to SG-JB Transit.
Every route's next departures from its first stops, the operators' official timetables, and for Rapid KL, the MRT feeders and Rapid Penang, the times their buses usually leave, learned from four weeks of records, because their published timetables don't hold. Under each timetabled time, a coloured line says how its bus ran over the last week, and each route's actual timetable can be downloaded as a PDF, made fresh from the records whenever it's asked for.
The bell beside a live arrival follows that bus and alerts you at 10 and 5 minutes, when it's almost there, and when to get off, on the lock screen as a Live Activity on iPhone or a live notification on Android. Home-screen widgets (My Stops and Where I Am) show your places' next buses at a glance.
Since 21 November 2026 every bus with a live GPS feed is recorded every 30 seconds. The Trip history page shows each area's figures, the buses that just left, departures by the hour, how each service ran today, and any day or route since. On time means from 1 minute early to 5 minutes late against the bus's own timetabled time. Each area gets a weekly report (a PDF in 13 languages, ready every Monday at 04:00 from 30 November 2026), and Khazanah Research Institute's 2025 archive of Rapid KL and the MRT feeders is kept apart and labelled as such. SG-JB Transit records Singapore's cross-border services (160, 170, 170X and 950) and shows Johor Bahru's from Malaysia Transit's records.
The fare calculator and every journey give each operator's own fares, adult and concession, with notes where they matter (Bas Muafakat Johor free for Malaysians, KTMB's promotional fares, Causeway Link's section fares). How to pay lists each operator's ways to pay (cash, cards, QR, e-wallets and passes) with who can use each and how to get it, checked city by city: BAS.MY takes bank cards in Ipoh, Melaka, Johor Bahru and Kota Kinabalu, on some of Seremban's routes and rarely elsewhere, and Kangar takes cash only.
Thirteen areas of Malaysia are live, from Perlis to Sarawak, and SG-JB Transit covers Singapore, Johor Bahru and the crossings between them.
| Area | Buses | Trains and ferries |
|---|---|---|
| Klang Valley | Rapid Bus KL, MRT feeder buses | Rapid Rail KL (LRT, MRT, Monorail), KTM Komuter, KLIA Ekspres and KLIA Transit |
| Penang | Rapid Penang | Penang ferry, KTM Komuter Utara, SRT's shuttle to Hat Yai |
| Kangar | BAS.MY Kangar | KTM Komuter Utara, SRT's shuttle |
| Alor Setar | BAS.MY Alor Setar | KTM Komuter Utara, SRT's shuttle |
| Ipoh | BAS.MY Ipoh | KTM Komuter Utara |
| Kota Bharu | BAS.MY Kota Bharu | KTM Intercity |
| Kuala Terengganu | BAS.MY Kuala Terengganu | - |
| Kuantan | BAS.MY Kuantan | - |
| Seremban | BAS.MY Seremban (two operators) | KTM Komuter, KTM Intercity |
| Melaka | BAS.MY Melaka | KTM Komuter |
| Johor Bahru | BAS.MY Johor Bahru, Bas Muafakat Johor, Causeway Link, Singapore's cross-border buses | KTM Shuttle Tebrau, KTM Shuttle Selatan |
| Rest of Johor | Bas Muafakat Johor (Batu Pahat, Kluang, Muar, Segamat, Mersing and more) | KTM Shuttle Selatan |
| Kuching | BAS.MY Kuching, City Public Link's S19 to the Tebedu border | - |
| Kota Kinabalu | Coming soon | |
Live positions are shown wherever the operator publishes them; timetables and fares cover the rest.
Every bus service, with LTA's arrival times and where LTA places each bus, the MRT and LRT for journeys, and the cross-border buses: SBS Transit's and SMRT's 160, 170, 170X and 950, and Causeway Link's CW routes. Fares in Singapore dollars or ringgit, as the rider chooses.
Johor's buses as on Malaysia Transit, Causeway Link's routes as it publishes them, KTM's Shuttle Tebrau between JB Sentral and Woodlands, and the time it takes to clear the border, shown as its own step in every cross-border journey.
One server gathers the data, works out live times and records, plans journeys and answers the websites, the apps and other developers. Nearly everything it uses is open data or open source.
| Source | What it gives | Licence or terms |
|---|---|---|
| data.gov.my | Timetables (GTFS) and live bus positions (GTFS Realtime) for Rapid KL, the MRT feeders, Rapid Penang, BAS.MY and KTM | CC BY 4.0 |
| LTA DataMall | Singapore's bus arrivals, routes, stops and first and last buses | Singapore Open Data Licence |
| Operators' own pages | KTMB's timetable PDFs and fare tables, Causeway Link's routes and fares, Bas Muafakat Johor's live page (PAJ), the Penang ferry and SRT timetables | Published by the operators; checked and dated |
| OpenStreetMap | The base map, the streets for walking and planning, and the route lines along roads and railways (Appendix D) | ODbL (© OpenStreetMap contributors) |
| GrabMaps | Place and address search, through Amazon Location Service | Paid per request (section 20) |
| Khazanah Research Institute | A 2025 archive of Rapid KL's and the MRT feeders' bus positions, for history before our own records | As published, credited |
A live time is worked out from the bus's own position: it is placed on its route line, the distance left to the stop is measured along that line, and it is timed at the pace that service's buses are making right now, plus a short stop at each stop on the way. Run on the same buses at the same moments, times within 2 minutes of the real arrival went from 32% to 53%, and from 45% to 92% when the bus was under 3 minutes away. Punctuality is measured from the records, never assumed. The full method, with every figure, is in the white paper Live arrival times and punctuality (Appendix A).
Until November 2026 journeys and place search came from Google Maps. Two things made us move. Google's terms don't allow its route and place results to be shown on a non-Google map, and both products use their own OpenStreetMap map. And Google bills per request, so every new free rider would have raised the bill as the products grew.
An open-source journey planner (MIT licence), run on our own server. It plans on the operators' timetables and OpenStreetMap's streets, including the services Malaysia Transit puts together itself: KLIA Ekspres, the Penang ferry, SRT's shuttle to Hat Yai, Causeway Link's AA1, and Singapore's buses (from LTA's first and last buses and frequencies), MRT and LRT. Its data is refreshed every night and checked with a test journey before use. It was chosen over OpenTripPlanner, the best-known alternative, because it needs a fraction of the memory (it runs within 1.5 GB and answers in 9 to 110 milliseconds), so it fits beside the apps on one small server. On 25 test journeys across Malaysia it matched or beat Google on most, and it planned Seremban to KL Sentral, which Google couldn't.
Place and address search comes from GrabMaps, through Amazon Location Service, for Malaysia, Singapore and Thailand, reordered so places near the rider come first. GrabMaps is built for South-East Asia, its terms allow its results on our own maps, and it costs a fraction of Google's prices (section 21). It is weaker than Google on English descriptions and short names, which the server's reordering partly makes up for.
The planner's answers keep the same shape as before, so the websites and apps needed no change to use them. Fares, payment guides, live times and tracking are added on top, as before. Appendix E tells the whole story: how MOTIS and GrabMaps work, how they compare with OpenTripPlanner and Google, and what they cost. Appendix D explains how the route lines are drawn along OpenStreetMap's roads and railways.
Both products run on very little, by design: open data, open source and one small server, so they can stay free for riders.
| Item | What it does | Cost |
|---|---|---|
| Server (netcup VPS) | Both products' servers, the MOTIS journey planner, the trip history recorder and the analytics | €12.60 a month |
| Journey planning (MOTIS) | Every journey on both websites and both apps | Nothing per journey |
| Place search (GrabMaps) | Suggestions as you type, the chosen place, addresses | US$0.20 per 1,000 suggestions, US$0.50 per 1,000 lookups |
| Map tiles (Cloudflare) | The base map, stored on R2 and served by a Worker | Free tier; US$5 a month once traffic needs it |
| App builds and updates (Expo) | Building both apps, and over-the-air updates | US$19 a month, then US$0.005 per user over 3,000 |
| Apple Developer Program | Publishing on the App Store | US$99 a year |
| Google Play | Publishing on Google Play | US$25, once |
| Data, alerts | data.gov.my, LTA DataMall, OpenStreetMap; Apple's and Firebase's push alerts | Free |
| All in, at today's traffic | Server, Expo, the App Store fee spread over the year, and a little place search | About US$45 a month |
Prices as published on 27 November 2026: netcup's plan, Expo's Starter plan, Amazon Location Service in Asia Pacific (Malaysia), Cloudflare's Workers plans, Apple's and Google's developer fees. Amazon gives place search a free allowance for the first three months: 10,000 suggestions and 20,000 lookups a month.
What grows with riders: place search, a little per search; Expo's updates, once the apps pass 3,000 monthly users (US$85 a month at 20,000, for example); and in time, a larger server. What doesn't: journey planning, the map's data and the live feeds.
Google Maps Platform gives each service a free allowance of 5,000 to 10,000 requests a month, then charges for every 1,000 more. GrabMaps and MOTIS cost a fraction of that, and MOTIS nothing per journey:
| For | Google Maps Platform | Now |
|---|---|---|
| Planning a journey | Directions: US$5.00 per 1,000 after 10,000 free a month, and each plan made several calls | MOTIS: nothing per journey |
| Suggestions as you type | Autocomplete: US$2.83 per 1,000 after 10,000 free | GrabMaps: US$0.20 per 1,000 |
| The chosen place | Place Details: US$5 to US$20 per 1,000, by detail level | GrabMaps: US$0.50 per 1,000 |
| Address to position | Geocoding: US$5.00 per 1,000 after 10,000 free | GrabMaps: US$0.50 per 1,000 |
Google's prices from its pricing page and Amazon's from its price list for Asia Pacific (Malaysia), both read on 27 November 2026; one suggestion request and one lookup per search, after the free allowances. A rider typing sends several suggestion requests, so real searches cost a little more on both.
This paper is for anyone who wants to work in this field with Malaysia Transit and SG-JB Transit: government and agencies, operators and partners, developers and the media, funders and sponsors.
The records show how every route keeps its timetable, stop by stop and week by week. Live feeds with trip numbers, and timetables published as data rather than PDFs, would make every rider's times better. We would gladly share findings and help pilot improvements.
Your routes, timetables, fares and ways to pay, shown correctly, in 13 languages, beside every other operator a rider needs. Send us changes before they happen, or a live feed, and riders see them on day one.
The Malaysia Transit API (developer portal at developers.malaysiatransit.techmavie.digital) and AI assistant tools (MCP) give stops, live arrivals, timetables, fares and journeys. Journalists and researchers can ask for records and reports.
Support keeps both products free and lets them reach more places: Kota Kinabalu next, more live feeds, more languages. Sponsorship that keeps the apps ad-free and independent is welcome.
Email hello@techmavie.digital · Threads @hiiialanhere
Malaysia Transit: malaysiatransit.techmavie.digital · SG-JB Transit: sgjbtransit.techmavie.digital
Built by Aliff under TechMavie Digital, Penang, Malaysia.
| Document | Where |
|---|---|
| Enhanced route lines (white paper, Appendix D) | malaysiatransit.techmavie.digital/white-paper-route-lines.html, and as a PDF |
| MOTIS and GrabMaps (white paper, Appendix E) | malaysiatransit.techmavie.digital/white-paper-journey-planning.html, and as a PDF |
| Live arrival times and punctuality (white paper, PDF) | malaysiatransit.techmavie.digital/downloads/malaysia-transit-arrivals-and-punctuality.pdf |
| How arrival times are worked out | malaysiatransit.techmavie.digital/arrival-times.html |
| Trip history, and how punctuality is measured | malaysiatransit.techmavie.digital/trip-history.html |
| Weekly reports (PDF, each area, 13 languages) | From the Trip history page, every Monday |
| Actual timetables (PDF, each route) | Under each route's timetable on Departures |
| How to use (with clips) | malaysiatransit.techmavie.digital/how-to.html |
| Frequently asked questions | malaysiatransit.techmavie.digital/faq.html |
| Changelog | malaysiatransit.techmavie.digital/changelog.html · sgjbtransit.techmavie.digital/changelog.html |
| Privacy policies | malaysiatransit.techmavie.digital/app-privacy.html, and in each app |
| Developer API | developers.malaysiatransit.techmavie.digital |
| GTFS | General Transit Feed Specification: the standard file format for timetables, routes and stops. |
| GTFS Realtime | The live companion to GTFS: where each vehicle is, updated every few seconds. |
| MOTIS | An open-source journey planner, run on our own server. |
| GrabMaps | Grab's maps and place data for South-East Asia, offered through Amazon Location Service. |
| OpenStreetMap | The free, open map of the world, made by volunteers. |
| ODbL | Open Database Licence: OpenStreetMap's licence. Its data, and data built from it, may be used by anyone, with credit, under the same licence. |
| pfaedle | An open-source tool from the University of Freiburg that matches timetables to OpenStreetMap's roads and railways, to draw route lines. |
| Map matching | Finding the path along a map's roads or railways that best fits a set of positions, such as a route's stops. |
| OTA update | An over-the-air update: new app code delivered without a new store release. |
| MCP | Model Context Protocol: a standard way for AI assistants to use tools such as transit data. |
| Not departed yet | A live bus still at its trip's first stop: its time counts from its departure, not from now. |
Live and timetable data: data.gov.my (Ministry of Transport and the operators, CC BY 4.0); LTA DataMall (Land Transport Authority, Singapore Open Data Licence); KTMB, Causeway Link, Perbadanan Pengangkutan Awam Johor (Bas Muafakat Johor), Penang Port and the State Railway of Thailand's published timetables and fares. Maps and streets: © OpenStreetMap contributors (ODbL), drawn from Protomaps' builds. Place search: GrabMaps through Amazon Location Service. Journey planning: MOTIS (motis-project, MIT licence). Historical positions: Khazanah Research Institute's 2025 archive. Figures on live times and records: Live arrival times and punctuality, version 1.1, 23 November 2026.
Malaysia Transit and SG-JB Transit are independent apps, not government apps. They do not represent, and are not affiliated with or endorsed by, any government entity or transit operator.
A route line is what the map draws for a route between its stops. Since 26 November 2026, Malaysia Transit and SG-JB Transit draw their Enhanced route lines from OpenStreetMap, the open map of the world, instead of Google Directions. Buses are matched to the roads with pfaedle, an open-source tool from the University of Freiburg made for exactly this job, and trains follow the railway track by a method of our own that also finds stations a timetable puts in the wrong place.
Riders read a route from its line. Most of the timetables we show don't draw one that follows the roads, and the service that used to draw them for us came with terms our maps can't meet.
A route line is the path the map draws for a bus or train route between its stops. Riders use it to see which roads a bus takes, where it turns and where to wait for it, and the apps draw each ride of a planned journey along it. Both products offer two styles, switched on the map under Route Style:
The stops joined by straight lines, or the operator's own line where its timetable has one. Always available, and honest about what the timetable says.
The route along the roads it really takes, and trains along their track. Labelled "✓ Enhanced along OpenStreetMap" where the line comes from this work.
Timetables in the GTFS format may carry each route's path (the optional shapes.txt file), but most of the ones we show don't carry one that follows the roads:
Prasarana's feeds (Rapid KL's buses and trains, the MRT feeders and Rapid Penang), BAS.MY's for Johor Bahru and Melaka (5 to 20 points per stop) and Rapid Kuantan's already have good lines of their own, and keep them. The server uses an Enhanced line where a timetable's own is too sparse to follow the roads: fewer than 1.5 points per stop, no line at all, or a KTM train.
Until 26 November 2026, Enhanced lines came from Google Directions, in three ways:
Google's Service Specific Terms say Directions results "must not" be used "in conjunction with a non-Google map" (section 4.2). Our websites draw with Leaflet on an OpenStreetMap map, and the apps with MapLibre: neither is Google's.
Only latitudes and longitudes may be cached, for up to 30 days (section 4.3), and the general terms forbid storing Google's content or making new content from it (section 3.2.3). Lines saved into timetables, or cached for good, did both.
A directions service finds its own best way between each pair of stops: it doesn't know which roads the bus takes. Where a stop sat a little off the road, Google's line sometimes swerved onto another road to reach it.
Every line asked for is a billed request (US$5.00 per 1,000 Directions calls after 10,000 free a month), and the risk was larger than the bill: breaking the terms lets Google suspend the account's Maps services, all at once.
On 26 November 2026 the first plan was to fall back to Basic lines everywhere, until we asked whether Enhanced lines could come from somewhere other than Google. These were weighed:
| Option | How it works | Verdict |
|---|---|---|
| Basic lines only | The stops joined up, or the operator's line | Allowed and free, but gives up the road-following lines riders had |
| pfaedle | Matches whole timetables to OpenStreetMap's roads and railways ahead of time | Chosen Made for exactly this, open source, offline, about a minute per timetable |
| MOTIS's route shapes | The journey planner can work out lines for trips without one from its own street routing (its route_shapes setting) | Not yet running when the lines were needed, and it would tie the route views to the planner. The planner now draws its rides along pfaedle's lines instead |
| Valhalla | An open-source router with a bus profile, which can snap points to the roads when a line is asked for | One more service to run and call while riders wait, as Google was. Building lines ahead of time is simpler, and each can be checked before anyone sees it |
| Google Directions | Directions through the stops | Not allowed on our maps or to keep (section D3) |
We trialled pfaedle on the server first (section D11). Its first lines looked better than Google's had, and they became the new Enhanced the same day.
Buses and trains are drawn by two methods, on the same OpenStreetMap data, into the same kind of file. Both run ahead of time, so riders never wait on them.
OpenStreetMap is the free, editable map of the world, made by volunteers and published under the Open Database Licence. Besides drawing the base map of both products, it describes everything a route line needs:
| What | How OpenStreetMap records it | Used for |
|---|---|---|
| Roads | highway=* ways, from motorways to service roads, with oneway and access tags | Bus lines |
| Turn rules | type=restriction relations (no right turn, only straight on…) | Bus lines |
| Railway track | railway=rail ways, with service=siding, yard, crossover or spur for side track | Train lines |
| Stops and stations | Bus stops, platforms, stop positions and stations, with their names | Placing stops; station positions |
pfaedle is a free, open-source tool that gives a GTFS timetable its route lines by matching every trip to OpenStreetMap. It comes from the Chair of Algorithms and Data Structures at the University of Freiburg in Germany (Professor Hannah Bast's group), where Patrick Brosi wrote it and still develops it. It first appeared in 2018, with the paper "Sparse Map-Matching in Public Transit Networks with Turn Restrictions" (Bast and Brosi, ACM SIGSPATIAL 2018), and its method is the first part of Brosi's doctoral thesis, Automated Generation of Transit Maps (2022). It is written in C++ and published under the GNU General Public Licence, version 3.
It reads a whole GTFS feed and works from what a timetable already has: each trip's stops in order, their positions and names, and their times.
Its settings cover buses and coaches, trams and subways, trains, ferries, gondolas and funiculars, each matched only to the kind of way it runs on.
It writes the lines into the timetable's shapes.txt. Nothing is asked of any service while riders use the apps.
In the thesis it matched every trip in Germany in 8.5 minutes (not counting reading the map), and got 90% of trips right on at least nine hops in ten, against 84% for the usual distance-based method, with lines 6.9 m from the true path on average.
Map matching usually starts from a GPS trace: a position every second or so, close together. A timetable gives far less: only the stops, often hundreds of metres apart. Between two stops many paths are possible, and the job is to pick the one the bus really takes. pfaedle treats this as a hidden Markov model, the standard tool for map matching: the stops are what is observed, and where each stop really sits on the network is hidden. With the settings it ships with, it works like this:
One script, scripts/osm-lines/build.mjs, builds every line. It runs on the server beside the live apps, so it is careful with memory.
| Step | What happens |
|---|---|
| 1. Pick the timetables | From the service areas the apps serve: every BAS.MY city but Kuantan, Bas Muafakat Johor, Causeway Link, City Public Link S19, the Singapore cross-border buses and, given LTA DataMall's routes, every Singapore bus service; for trains, KTMB, KLIA Ekspres and SRT's shuttle. A new BAS.MY city is picked up at the next build. |
| 2. Find the trip patterns | A pattern is one distinct sequence of stops: a route, a direction, a variant. Every trip with that sequence shares its line, so 1,338 patterns stand for all the trips. The stops are the ones the server lists, after it merges a timetable's stops into places, so the line's stop ids are the ones the apps receive. |
| 3. Write a small timetable | One trip per pattern, with its stops and times, as a GTFS folder for pfaedle. |
| 4. Run pfaedle | In a container from an image pinned to one exact build, matching buses only and every trip afresh. Each run is capped at 3 GB of memory and 2 CPUs at low priority, one at a time; none starts with less than 3.5 GB free, and a run is stopped after 45 minutes. |
| 5. Check each line | The quality gate below. A line that fails is not kept, and the server goes on showing the timetable's own line for that pattern. |
| 6. Pin the stops | Each stop is pinned to its point on the line, in the stops' order. A stop's choices are its nearest points on up to 8 pieces of the line and the nearest point of every pass the line makes within 250 m of it: a loop that starts and ends at its terminal passes it twice, and the first stop belongs on the first pass even where the nearest pieces all lie on the last. A line that can't pass its stops in order isn't kept. The server can then cut the line between any two stops. |
| 7. Simplify and store | Points closer than 2 m (buses) or 4 m (trains) to the simplified line are dropped, as the eye can't see them; stop points are always kept. Each line is stored as an encoded polyline (to about a metre), in one JSON file per timetable with its build time, the map data's date, the credit and the licence. |
| 8. Report | Each timetable's patterns kept and not kept, and why; lines with a straight piece over 1.5 km (a road pfaedle couldn't follow there); and the stations left out of train lines. |
A line is kept only if it passes its stops in order, every stop is within 200 m of it, and, for patterns longer than 300 m, it is between 0.7 and 3 times as long as its stops joined up. The trial's worst kept cases were a stop 115 m from its line (a pole recorded well off the road) and a two-stop route 2.5 times its straight length, because its road really goes round. A line that is too short has cut a corner; one that is far too long has wandered.
pfaedle draws a train's line through every station, as it should. But KTMB's timetable places some stations well away from the railway, and a station in the wrong place pulls the line off the track: out to Sedenak, 509 m from the railway between Layang-Layang and Kulai; out to Kalumpang, placed about 7 km from the real station; and zigzagging to East Coast halts several kilometres off the line. So trains are drawn by a method of our own (scripts/osm-lines/railPaths.mjs), on the railway track pfaedle extracts from the map:
Left-out stations stay in the timetable and on the map; only the drawn line doesn't bend to them, and the server lists them with the line (skippedStops). Where stations are placed correctly, this method and pfaedle give the same line: on Komuter Utara both sit on the railway, and the track method places stations a few metres closer (17 m and 28 m on average, against 22 to 32 m). Long hops are real track, not errors: Ipoh to Kuala Kangsar is 51.7 km by rail for 25.3 km in a straight line, and Dabong to Kuala Krai 55.0 km for 27.3 km. Two settings were tuned on such cases: at 2 times the straight distance the method wrongly dropped Ipoh and Kuala Krai, and without the 5-to-1 weight lines started 261 m from Dabong and 198 m from Gua Musang, joined through a short station siding.
pfaedle was tried in three rounds on 26 November 2026 before anything went live, on the same server and with the same caps as the build uses today.
| Timetable | Time | Peak memory | Trips matched | Stop to line |
|---|---|---|---|---|
| Singapore cross-border buses | 73 s | 437 MB | 1,565 of 1,565 | 11.4 m |
| Causeway Link | 73 s | 446 MB | 1,015 of 1,015 | 9.6 m |
| BAS.MY Kangar | 48 s | 353 MB | 344 of 344 | 6.5 m |
| KTMB (rail) | 36 s | 131 MB | 265 of 265 | 20.1 m |
Stop to line: the median, over a timetable's patterns, of the average distance from each stop to the line. Most of each run (about 65 seconds) is spent reading the map file; the matching itself takes about a second per timetable.
| Timetable | Time | Peak memory | Patterns | Stop to line |
|---|---|---|---|---|
| Alor Setar | 61 s | 498 MB | 26 | 6.7 m |
| Kota Bharu | 55 s | 397 MB | 32 | 8.4 m |
| Kuala Terengganu | 49 s | 282 MB | 17 | 8.1 m |
| Kuching (with stand-in times) | 48 s | 293 MB | 22 | 6.6 m |
| Ipoh | 55 s | 328 MB | 29 | 11.2 m |
| Seremban A | 61 s | 489 MB | 19 | 8.0 m |
| Seremban B | 73 s | 562 MB | 22 | 8.1 m |
Ipoh's figure is the highest because its feed lists a separate pole for every route at shared stops. Komuter Utara's lines were good too: all 40 straight pieces over 2.5 km stay within 6 m of the real track, half within 1 m, because pfaedle draws straight track with few points.
| KTMB timetable | Time | Stations | Lines | Stations left out | Straight gaps |
|---|---|---|---|---|---|
| Malaysia Transit's copy | 17 s | 184 | 45 | 23 | 0 |
| data.gov.my's live feed | 54 s | 156 | 86 | 14 | 0 |
Every train line followed the railway with no straight gaps; each straight piece over 2.5 km is a single piece of mapped straight track (the longest, 5.8 km, crosses the Perlis and Kedah paddy belt). Kept stations sit within 150 m of their line, except two whose recorded positions are that far from the track.
| Timetable | Method | Patterns kept | File |
|---|---|---|---|
| Singapore's buses (LTA DataMall) | pfaedle | 802 of 802 | 943 KB |
| KTMB (every KTM service) | Track | 121 of 121 | 417 KB |
| BAS.MY Melaka | pfaedle | 66 of 66 | 113 KB |
| Bas Muafakat Johor | pfaedle | 57 of 57 | 51 KB |
| BAS.MY Johor Bahru | pfaedle | 45 of 45 | 66 KB |
| Causeway Link | pfaedle | 36 of 36 | 38 KB |
| BAS.MY Kota Bharu | pfaedle | 32 of 32 | 70 KB |
| BAS.MY Ipoh | pfaedle | 30 of 30 | 50 KB |
| BAS.MY Alor Setar | pfaedle | 27 of 27 | 33 KB |
| BAS.MY Kangar | pfaedle | 23 of 23 | 40 KB |
| BAS.MY Kuching | pfaedle | 23 of 23 | 31 KB |
| BAS.MY Seremban B | pfaedle | 22 of 22 | 53 KB |
| BAS.MY Seremban A | pfaedle | 18 of 19 | 33 KB |
| BAS.MY Kuala Terengganu | pfaedle | 19 of 19 | 32 KB |
| Singapore cross-border buses | pfaedle | 6 of 6 | 10 KB |
| KLIA Ekspres and KLIA Transit | Track | 4 of 4 | 5 KB |
| Causeway Link AA1 | pfaedle | 2 of 2 | 2 KB |
| City Public Link S19 | pfaedle | 2 of 2 | 3 KB |
| SRT Padang Besar–Hat Yai | Track | 2 of 2 | 2 KB |
| 19 timetables | 1,211 pfaedle, 127 track | 1,337 of 1,338 | 1.94 MB |
Built on 26 November 2026 from OpenStreetMap data until 17 November 2026 (SRT's railway: an extract of 28 July 2026); on 27 November the bus lines' stops were pinned again, as step 6 of section D8 describes, the cross-border buses' lines built again on LTA DataMall's stop positions, and those and Singapore's built again with the 160, the 950 and the 170X drawn out to JB Sentral and back (section D10). One line doesn't pass its stops in order and isn't kept: Seremban A's Desa Rhu loop. KTMB's file serves all 11 KTM services in the apps, from Komuter Klang Valley to Shuttle Tebrau and the Intercity trains to Kota Bharu. BAS.MY Johor Bahru's and Melaka's own lines already follow the roads, so their route views keep them.
| Google Directions (before) | OpenStreetMap (now) | |
|---|---|---|
| On our own maps | Not allowed (section 4.2) | Allowed, with the credit |
| Keeping them | Coordinates only, for 30 days | Ours to keep, and to share under the same licence |
| Which roads | Google's own best way between each pair of stops | The quickest way through all the stops in order, weighing each stop's distance, road class, turns and mapped bus routes |
| A stop set back from the road | Could swerve onto another road to reach it | Pinned to the road beside it; a line too far from any stop isn't kept |
| Trains | Through every station, even one placed off the line | Along the track, leaving out stations placed off it, and reporting them |
| Fit with the map | Google's road geometry over an OpenStreetMap map | The same roads the map draws |
| Cost | US$5.00 per 1,000 requests after 10,000 free a month | Nothing per line; about 20 minutes of our server per rebuild |
| Fresh roads | Google's current map | As fresh as the extract: rebuilt every month or two |
| If it fails | No line, or a line that bends wrong | The quality gate falls back to the timetable's own line |
On ordinary roads the two are very close: CW2's new line is 2.5 m from Google's on average. The difference shows where it matters to riders: at stops set back from the road, at terminals and interchanges, and on trains whose timetable puts a station in the wrong place.
Drawing lines carefully is also a close check of the timetables. These findings are worth sending to KTMB and data.gov.my, and are listed with every build:
KTM stations off the railway. More than 5 km off: Mela, Sg Mengkuang Baru, Kuala Gris, Kemubu, Sri Mahligai, Kalumpang (placed near Lembah Beringin), Tembeling and Padang Piol. Closer in: Sri Bintang 4.5 km, Pahi 4.4 km, To' Uban 2.9 km, Aur Gading 1.6 km, Sri Jaya 1.4 km, Kg Berkam 1.1 km, Bertam 666 m, Sedenak 509 m, Dura 412 m, Sungai Temau 341 m and Holiday Plaza 307 m.
In the wrong place or order. "Mengkuang" is timetabled between Triang and Kemayan in Pahang but placed south of Kuala Krai in Kelantan, about 330 km up the line. Kubang Rusa and Teluk Gunong are listed in swapped order, and so are Kg Telang and Pdg Tungku.
Other timetable issues. On Kuching's Q11 to Q16 every stop has the same time (section D10). KTMB's live feed has no route lines at all, and codes its five Komuter services, Shuttle Selatan among them, as trams. The KTMB copy used in the trial had 8 stop times pointing at a station (37200) missing from its stop list, and 39 Komuter trips with no stops. BAS.MY's feeds, all but Johor Bahru's and Melaka's, have one line point per stop, and some poles recorded 40 to 115 m off the road. (Hat Yai is left out of KTM's lines only because the main extract stops at the border: not a timetable error.)
The lines are plain files in the server's code. The server reads them when it starts, and riders get them with no outside service in the way.
Lines are rebuilt when a timetable's trips change a lot, and every month or two for newer map data. The whole build takes about 20 minutes on the server:
Per timetable a run takes about a minute and under 0.5 GB of memory; extracting the railway for the train method takes 43 seconds at a 139 MB peak, and the track method itself seconds.
pfaedle: github.com/ad-freiburg/pfaedle (code, default settings and README, read 27 November 2026); H. Bast and P. Brosi, "Sparse Map-Matching in Public Transit Networks with Turn Restrictions", Proceedings of ACM SIGSPATIAL 2018, pp. 480–483, doi:10.1145/3274895.3274957; P. Brosi, Automated Generation of Transit Maps, doctoral thesis, University of Freiburg, 2022, chapter 2, "Map-Matching Schedule Data", doi:10.6094/UNIFR/228990.
OpenStreetMap: openstreetmap.org/copyright (credit and licence); the Open Database Licence 1.0, opendatacommons.org/licenses/odbl/1-0; Geofabrik's Malaysia, Singapore and Brunei extract, download.geofabrik.de/asia/malaysia-singapore-brunei.html; the Overpass API, overpass-api.de.
Timetables: data.gov.my's GTFS feeds (CC BY 4.0); LTA DataMall's bus routes and stops (Singapore Open Data Licence); the GTFS reference for shapes.txt, gtfs.org.
Google Maps Platform: Service Specific Terms (version of 24 November 2026), cloud.google.com/maps-platform/terms/maps-service-terms; Terms of Service, cloud.google.com/maps-platform/terms; pricing, developers.google.com/maps/billing-and-pricing/pricing (read 27 November 2026).
Malaysia Transit's own records: how the lines are built (docs/osm-route-lines.md), the builder (scripts/osm-lines/), the line files (data/osm-lines/, built 26 November 2026, the bus lines' stops pinned again on 27 November), and the pfaedle trial report of 26 November 2026, with its three rounds.
Since 27 November 2026, every journey on Malaysia Transit's and SG-JB Transit's websites and apps is planned by MOTIS, an open-source journey planner we run on our own server, and every place search is answered by GrabMaps, through Amazon Location Service. Together they replaced Google Maps Platform, whose terms don't allow its results on our own maps, and whose bill grows with every rider.
Google planned our journeys and found our places for years. Its terms never fitted products with their own maps, and its bill was set to grow with every free rider.
| Feature | Google service | Used by |
|---|---|---|
| Planning a journey | Directions API: a transit search with alternatives, walking legs, and extra searches to piece together the S19, SRT and Causeway Link corridors by hand | Both websites and both apps |
| Search as you type | Places Autocomplete | Both websites and both apps |
| The chosen place's position | Place Details | Both websites and both apps |
| Naming a point on the map | Reverse geocoding and Place Details | Both websites and both apps |
| A typed address to a position | Geocoding API | The developer API and the chatbot |
| Route lines along the roads | Directions API (replaced first: Appendix D) | Both live maps |
The apps never called Google themselves: they draw with MapLibre and ask only our servers. So everything could be replaced on the two servers, and the websites and apps kept working unchanged.
On 26 November 2026 we read Google Maps Platform's terms as they stood (the Service Specific Terms of 24 November 2026) against how both products used Google. For every service we used, the terms say Google's content "must not" be used "in conjunction with a non-Google map". Our websites draw with Leaflet on an OpenStreetMap map, and the apps with MapLibre.
| Service | Not with a non-Google map | What may be cached |
|---|---|---|
| Directions | Section 4.2 | Latitudes and longitudes only, for 30 days (4.3) |
| Places | Section 14.2 | Latitudes and longitudes only, for 30 days (14.3) |
| Geocoding | Section 6.2 | 30 days; longer only per end user (6.3) |
| Places UI Kit | Allowed "with or without any map" (15.1) | We would answer for not exporting its content or making content from it (15.3) |
The review found five problems, the most serious first:
Breaking the terms lets Google suspend access. If it did, everything Google-backed would stop at once: the journey planner, place search, geocoding and the AI tools, and possibly other projects on the same Google account. And a business partner can't take Google-derived routes or data from us, which closes off working with others on the planner's results.
Google gives each paid service a free monthly allowance, then charges for every 1,000 calls:
| For | Google item | Free each month | Then, per 1,000 |
|---|---|---|---|
| Journey planner | Directions (Essentials) | 10,000 | US$5.00 |
| Directions Advanced (Pro) | 5,000 | US$10.00 | |
| Suggestions as you type | Autocomplete requests | 10,000 | US$2.83 |
| The chosen place | Place Details: Essentials, Pro, Enterprise | 10,000 / 5,000 / 1,000 | US$5 / 17 / 20 |
| Address to position | Geocoding | 10,000 | US$5.00 |
| Places UI Kit | Autocomplete, per session; Query | 10,000 each | US$10.00; US$1.00 |
Google Maps Platform's pricing list, read on 27 November 2026: the first paid tier after the free allowance.
At today's traffic the bill was small. But one journey search made several Directions calls (the main transit search, the walking legs, and the corridor searches), and both products are free for riders: a cost per search grows with every new rider and earns nothing back. The RTS Link between Johor Bahru and Singapore would bring far more people to the planner.
MOTIS is an open-source journey planner from the research world, built to plan across whole countries on modest hardware. It reads the same open timetables and map the apps already use.
MOTIS began at the Technical University of Darmstadt in Germany, in Professor Karsten Weihe's algorithms group, as a research journey planner developed with Deutsche Bahn and the consultancy datagon. Its name first stood for "Multi Objective Travel Information System"; its own documentation now calls it the "Modular Open Transportation Information System". It became open source in 2020, and was rewritten from 2023 as MOTIS 2 (version 2.0 in December 2024), led by Felix Gündling of TU Darmstadt, whose company triptix offers support and hosting for it. It is written in C++ and published under the MIT licence. The version we run, 2.11.4 of 21 October 2026, was the newest release when this paper was written.
| Part | What it does | Licence |
|---|---|---|
| nigiri | The timetable and the transit search | MIT |
| osr | Routing on OpenStreetMap's streets: walking, wheelchair, bike and car, with indoor levels and lifts | MIT |
| cista | Storing all of it as compact binary data the server reads straight from disk | MIT |
| adr | Place search and naming points (switched off in our setup) | AGPL 3.0 |
| tiles | Map tiles from OpenStreetMap (not used: our maps have their own) | MIT |
Proven at scale. MOTIS powers Transitous, a free, community-run journey planning service started at the FOSDEM conference in 2024. By early 2025 it covered 94 regions with 1,417 timetables and 167 live feeds, and apps such as GNOME Maps, KDE Itinerary and Träwelling plan with it. Its public service is for open-source, non-commercial apps only, which is why we run our own copy (section E7).
The import reads the OpenStreetMap extract and every timetable, and builds MOTIS's own data: the street network for walking, each stop matched to the streets beside it, walking transfers between nearby stops routed along the streets, and the timetable for the days asked for. Each trip's running days are kept as a row of bits, so a year of timetable costs little more memory than a month. The data is written as binary images the server reads straight from disk, partly through memory-mapped files, without unpacking them first. That is why the server runs in a few hundred megabytes.
The search answers each journey from that data:
MOTIS also reads timetables in NeTEx, live updates (GTFS Realtime, SIRI and others) and bike and scooter sharing (GBFS). Our setup needs none of these today.
OpenTripPlanner, the best-known open-source planner, was the first idea. On 26 November 2026 it was compared with everything else on offer, on licence and cost, memory, features, whether it would fit our server, and the work involved:
| Option | Licence and cost | Memory and server | Verdict |
|---|---|---|---|
| MOTIS 2, self-hosted | MIT: free, commercial use allowed; credit OpenStreetMap | Measured: import 1 min 16 s at a 2.7 GB peak, then about 365 MB to run | Chosen |
| OpenTripPlanner 2, self-hosted | LGPL: free | Keeps all its data in memory: its documentation puts all of Finland at a little over 10 GB | Too heavy for our server |
| Transitous (hosted MOTIS) | Free, but only for open-source, non-commercial apps, and it may stop serving any app | Nothing to run | Ruled out by its usage policy |
| Valhalla, GraphHopper | Open source | — | Strong for walking and driving, weaker for timetabled transit: walking routers only |
| Our own planner engine | Ours | — | Possible (there was one before Google), but it would rebuild what MOTIS does |
| Paid routing services | Per request | Nothing to run | The same per-request bill and terms questions as Google |
| Keep Google Directions | US$5.00 per 1,000 after 10,000 free | Nothing to run | Not allowed with our maps |
OpenTripPlanner is the best-known open-source planner. It was started in 2009 with funding from Portland's transit agency, TriMet, is written in Java and published under the LGPL, and runs national journey planners for Entur in Norway and Digitransit in Finland. Its second version (2020), led by Entur, brought a RAPTOR-based transit search. It is mature and well documented. But it keeps all its data in memory, and its own documentation puts all of Finland at a little over 10 GB, and Germany at 95 GB: more than our server could spare beside the live apps. MOTIS imported our whole region at a 2.7 GB peak and serves it in a few hundred megabytes.
Two comparisons published elsewhere point the same way:
Where OpenTripPlanner is ahead: a longer record as a national planner, a larger community and more documentation. For one small server, MOTIS's memory use decided it.
| From | Timetables |
|---|---|
| data.gov.my (15) | KTMB; BAS.MY in Alor Setar, Ipoh, Johor Bahru, Kangar, Kota Bharu, Kuala Terengganu, Kuching, Melaka and Seremban (two); Prasarana's Rapid KL buses, Rapid KL trains, MRT feeder buses and Rapid Penang |
| Ours (10) | Causeway Link, and its AA1 airport bus (the only bus to Senai Airport); the Singapore cross-border buses; City Public Link S19; SRT's Padang Besar–Hat Yai shuttle; KLIA Ekspres and KLIA Transit; the Penang ferry; BAS.MY Kuantan; Bas Muafakat Johor, in Johor Bahru and the rest of Johor |
| Built from LTA DataMall and OpenStreetMap (2) | Singapore's buses, and Singapore's MRT and LRT (section E9) |
MOTIS reads timetables strictly, and plans only on dates a timetable's calendar covers. A preparation step repairs what it can before every import, and prints what it changed:
| Setting | Ours | What it means |
|---|---|---|
| Days loaded | 45, from today | Journeys can be planned up to six weeks ahead |
| Walking transfers | Along the streets, up to 15 minutes | Changing between nearby stops follows real footpaths, not straight lines |
| Least time to change | 2 minutes | Where a timetable doesn't say |
| Walking links between stops | Within 100 m | Stops this close are joined by a walking transfer |
| Stops matched to streets | Within 25 m (250 m worked out ahead) | How far a stop may be from the street it is matched to for walking |
| Route shapes | Kept | A timetable's own lines are kept for each ride |
| Place search, live updates | Off | GrabMaps finds places; data.gov.my publishes no delay predictions to feed in |
Every night at 04:15 Malaysia time (03:15 in Europe's summer), a script fetches data.gov.my's feeds (keeping the last good copy of any that fails), takes our own timetables from the running Malaysia Transit server and Singapore's data from SG-JB Transit's, rebuilds Singapore's two timetables, readies them all and imports them into a copy of MOTIS's data. MOTIS switches to the new data only if the import worked, and switches back if it then can't plan a test journey from KL Sentral to KLCC. An import of new timetables alone takes about 35 seconds at a 1.2 GB peak; with new streets, about 1½ minutes at a 2.7 GB peak. No import starts with less than 3.5 GB of memory free.
Neither place had what MOTIS needs out of the box, so we built it.
LTA DataMall publishes each service's stops, its first and last buses, and how often it runs in four parts of the day, but no timetable. So trips run from the first bus to the last, at the middle of LTA's range for that part of the day ("09–16" minutes becomes every 12½); AM peak 06:30–08:59, AM off-peak 09:00–16:59, PM peak 17:00–19:29, and PM off-peak the rest. Times along the route come from LTA's distances at 25 km/h, at least a minute a stop. Weekdays, Saturdays and Sundays run apart, and public holidays on Sunday times. Result: 584 services and 152,170 trips. Services 160, 170, 170X and 950 come from our cross-border timetable instead.
LTA publishes station codes and order, but no timetables or positions. So each line's stations, in order, and their positions come from OpenStreetMap's route relations, and trains run at the usual headways: every 3 minutes in weekday peaks (07:00–09:00, 17:00–20:00), 5 otherwise and 6 after 20:00; LRT every 4, 6 and 8; the Changi Airport branch every 7. First trains 05:30 (06:00 on Sundays and holidays), last 23:45 from each end; 45 km/h between stations (LRT 30), plus half a minute at each. Result: 9 lines and 434 platforms, each drawn along its track. The Jurong Region Line joins when it opens.
The websites and apps never talk to MOTIS. They ask our servers, which ask MOTIS and turn its answer into the journeys riders see.
| Step | What the server does |
|---|---|
| Ask | One plan request (/api/v6/plan) from the start to the destination, leaving at or arriving by the time asked, over a one-hour search window, with up to 20 minutes' walk at each end and up to 30 minutes for a walk-only trip. |
| Choose | MOTIS gives every good journey in the hour searched: 28 for Tampines to HarbourFront at 08:30, with a train every few minutes. The server keeps those arriving soonest (leaving latest, for "arrive by"), at most two of each combination of routes so other ways still show, and drops any journey more than twice as long as the shortest, or more than 30 minutes longer, whichever allows more. (With AA1 hourly, Senai Airport to Eco Galleria once also offered a 763-minute overnight trip through Singapore beside a 155-minute one.) |
| Hard-to-place points | A point MOTIS can't place on its street map, such as a footway inside a mall that doesn't join the streets, is planned from the nearest stop within 700 m, with a straight walk to it. |
| Same shape as before | The answer is turned into the shape Google's answers had (walking and transit steps), so the planner's route matching, stops, fares, filters and sorting stay exactly as they were, and the websites and apps needed no change. |
| Draw | Each ride is drawn along its route's Enhanced line from OpenStreetMap (Appendix D), as the route views draw it. |
| Add | Fares in ringgit and Singapore dollars (with Causeway Link's free-transfer rule), how to pay on each operator, live times and approaching buses on top of the plan, share links, and the hand-off between the two apps. |
The switch is a setting on each server. Until Google's code is deleted, removing one setting brings Google back with a redeploy, as a way back if anything goes badly wrong.
MOTIS 2.11.4 on the VPS, capped at 3 GB and 2 CPUs at low priority, with the Malaysia–Singapore–Brunei map and 23 timetables. The import took 1 minute 16 seconds at a 2.7 GB peak and 918 MB on disk; the server then used about 365 MB and answered each journey in 9 to 110 milliseconds. It was as good as or better than the Google-based planner on most of 22 test journeys, and planned directly on our own timetables, the ferry, S19, Causeway Link and SRT's shuttle among them. What it got wrong at first came from our data, not from MOTIS:
| In the trial | Cause | Fix |
|---|---|---|
| KLIA T1 to KL Sentral offered the next day's 05:00 train | Our KLIA timetable held one sample train per direction | All 305 trains (118 KLIA Ekspres, 187 KLIA Transit): 08:39 by KLIA Ekspres, 30 minutes |
| No Penang ferry trips | Service names in two cases; a calendar that ended on 31 December 2025; terminals marked as stations | Rebuilt from the ferry's schedule with all three fixed |
| Komtar to Penang Airport by bus 302 (117 minutes) | The test's airport point was off the terminal | At the terminal MOTIS offers 401E and 102 |
| No trip to a point in Hat Yai | Thailand's streets weren't in the map | Songkhla merged in: Kangar to Hat Yai town plans door to door |
| No trip from a point inside Ipoh Parade | The point couldn't be placed on the street map | Planned from the nearest stop within 700 m |
| Calendars ending too soon | Today-only calendars; KTMB's ending 10 December, Rapid Penang's 20 December | Calendars run on for 60 days before each import |
| Causeway Link trips after midnight ran backwards | Times written 00:xx instead of 24:xx | Fixed in the build script (28 trips) |
Fixing our timetables for a strict planner also fixed the live sites' departure pages, which read the same files.
| Journey | MOTIS | Routes | |
|---|---|---|---|
| KL Sentral → Suria KLCC | 19 | 30 | Kelana Jaya line (both) |
| Bangsar South → Mid Valley | 25 | 37 | |
| SS2 Petaling Jaya → Bukit Bintang | 52 | 55 | T816, Kajang line (both) |
| KLIA T1 → KL Sentral | 30 | 35 | KLIA Ekspres (both) |
| Shah Alam Seksyen 7 → KL Sentral | 75 | 106 | 753, 750; Google: LRT |
| Kajang → Putrajaya Sentral | 63 | 76 | |
| Seremban → KL Sentral | 122 | error | N50, N57, KLIA Ekspres |
| Komtar → Penang Airport | 67 | 50 | 401E (102 also offered, 52); Google: 102 |
| Penang Sentral → Weld Quay | 19 | 39 | Ferry (both) |
| Batu Ferringhi → Komtar | 43 | 45 | 102 (both) |
| Bukit Mertajam → Penang Sentral | 56 | 45 | 701; Google: CT14, KTM |
| JB Sentral → Larkin Sentral | 29 | 22 | CW2 (both) |
| JB Sentral → Kranji MRT | 21 | 26 | 160; Google: 170X |
| Taman Universiti → JB Sentral | 64 | 53 | J31, J30; Google: P211, J30 |
| Kulai → JB Sentral | 64 | 99 | J30; Google: P411, J30 |
| Kuching Waterfront → Kuching Sentral | 14 | 36 | Q15; Google: Q14 |
| Serian → Tebedu | 62 | 60 | S19 (both) |
| Ipoh station → Ipoh Parade | 10 | 12 | A33B (both) |
| Melaka Sentral → Jonker Street | 22 | 22 | M22; Google: M13 |
| Kangar → Hat Yai town | 187 | 176 | R11, SRT shuttle; Google adds R105 |
| Kangar → Hat Yai Junction | 179 | 169 | The same |
| KB Mall → Kota Bharu bus terminal | 29 | 27 | D50 (both) |
| Pasar Payang → UMT Kuala Terengganu | 60 | 66 | T10 (both) |
| Kuantan Sentral → East Coast Mall | 41 | 26 | C30, C50; Google: C33 |
| Alor Setar station → Aman Central | 12 | 18 | K50; Google: K30 |
Minutes door to door; the quicker in bold. MOTIS was quicker on 15, level on 1, and Google quicker on 9, by 2 to 17 minutes.
A journey starts with a place a rider types: a mall, a condominium, a clinic, an address. GrabMaps knows South-East Asia's places, and its terms let us show them on our own maps.
GrabMaps is the map of Grab, South-East Asia's ride-hailing and delivery company. Grab began building it in 2017, launched it as a service for businesses in June 2022, and runs its own apps on it. Its data comes from Grab's own community: millions of rides and deliveries a day, its driver and delivery partners (some paid to collect places, street names and street-level imagery with Grab's own cameras), merchants and customers, on OpenStreetMap as the base layer. Amazon says a local team of more than 1,000 people maintains it.
Amazon Location Service has offered GrabMaps since January 2023, and since March 2026 through its newer Places operations, with nothing to set up beyond a key, in two regions: Asia Pacific (Singapore) and Asia Pacific (Malaysia), which we use. It covers eight countries and over 500 cities: Malaysia, Singapore, Thailand, Indonesia, the Philippines, Vietnam, Myanmar and Cambodia. Brunei is not among them.
Our servers call four of Amazon Location Service's Places operations, in its Asia Pacific (Malaysia) region, where they answer with GrabMaps' data:
| Operation | Used for | Price bucket |
|---|---|---|
| Suggest | The search box: suggestions as the rider types (GrabMaps has no Autocomplete) | Label: US$0.20 per 1,000 |
| GetPlace | The position and address of the suggestion picked | Core: US$0.50 per 1,000 |
| ReverseGeocode | A name for a point picked on the map, and "where am I" | Core: US$0.50 per 1,000 |
| SearchText | A typed address or place name to one position, for the developer API | Core: US$0.50 per 1,000 |
Google's own answer to the terms problem is Places UI Kit, which may be shown on any map. It would have done, had it worked the way our search does. It doesn't, and the comparison on 26 November 2026 went like this:
| Google Places UI Kit | GrabMaps through Amazon | Photon (OpenStreetMap) | |
|---|---|---|---|
| With our maps | Allowed (15.1) | Allowed: Amazon's terms (Service Terms, section 82) put no limit on showing GrabMaps' results on our maps | Allowed, with the credit |
| Places | Google's: the most complete | Grab's own, curated for South-East Asia | OpenStreetMap's: thinner for shops, condominiums and buildings |
| Works like our search | No: Google's own widget, not our list; no React Native version, so native work in both apps; a suggestion gives only an id, and its position needs a second, paid component | Yes: our server calls it and answers as before, so nothing else changes | Yes, self-hosted |
| Planning from the place | A grey area (15.3): would need Google's written OK | Fine: don't store results unless the request says so, keep Grab's credit, and don't merge Grab's places into OpenStreetMap data | Fine |
| At 100,000 searches a month | About US$990 | About US$70 | Free, on our server |
GrabMaps was chosen, with self-hosted Photon recommended as a fallback (and for Brunei, which GrabMaps doesn't cover). MOTIS has an OpenStreetMap place search of its own, but OpenStreetMap has fewer of Malaysia's shops and condominiums than Google or Grab, so it is switched off and GrabMaps does the job.
| Amazon, Asia Pacific (Malaysia) | Per 1,000 |
|---|---|
| Suggest (Label, what we ask for) | US$0.20 |
| Suggest with extra fields (Core) | US$0.50 |
| GetPlace, ReverseGeocode, SearchText (Core) | US$0.50 |
| With hours, contacts and similar (Advanced) | US$1.50 |
| Marked for keeping (Stored) | US$4.00 |
| Searches a month | GrabMaps | Places UI Kit |
|---|---|---|
| 10,000 | US$7 | Nothing (free allowance) |
| 100,000 | US$70 | US$990 |
Amazon's price list for Asia Pacific (Malaysia), published 11 September 2026, and Google's pricing list, both read on 27 November 2026. One suggestion request and one lookup per search, after the free allowances; Amazon's free tier gives 10,000 suggestions and 20,000 lookups a month for the first three months. Suggestions go out as the rider types: a search with five suggestion requests costs about US$1.50 per 1,000 searches, still a fraction of Google's.
MOTIS and GrabMaps each do one job well. Together they cover everything Google did for our planner, on terms that fit our products.
| Google alone (before) | MOTIS and GrabMaps (now) | |
|---|---|---|
| Allowed with our maps | No: Directions, Places and Geocoding results may not be shown on a non-Google map | Yes: MOTIS is ours (MIT licence, OpenStreetMap streets), and Amazon allows GrabMaps' results on our maps |
| Suspension risk | Planner, search and geocoding could all stop at once | No Google dependency left in the planner or search |
| Journey cost | US$5 per 1,000 Directions calls after 10,000 free, several calls per search | Nothing per journey, on the server already paid for |
| Search cost | US$2.83 to US$20 per 1,000 calls after the free allowance | US$0.20 per 1,000 suggestions, US$0.50 per 1,000 lookups |
| As riders grow | Grows with every free rider | Planner: only server capacity. Search: grows, slowly |
| Our own timetables | Google planned on its own data; our services needed hand-built workarounds (S19, SRT, Causeway Link) | Planned directly on our timetables, plus Singapore's |
| Trips Google failed on | Seremban to KL Sentral returned an error | Planned: peak Seremban Line trains when they run, otherwise a bus and KLIA Ekspres |
| Speed | A call out to Google for each search | 9 to 110 ms per plan, inside our server |
| Keeping and sharing | Coordinates only, for 30 days; nothing passed on | Journey results are ours; GrabMaps' answers aren't kept |
| Working with partners | A partner can't take Google-derived routes or data | Routing and route lines are ours to offer, with the OpenStreetMap credit |
MOTIS is one more container to keep healthy on a server whose memory is tight. A failed nightly refresh keeps yesterday's data, so someone has to notice. New street maps are loaded by hand every month or two, and MOTIS's version is pinned, so upgrades are a deliberate job.
data.gov.my's feeds have quirks (today-only calendars, descriptions where route numbers go, stop positions that slow some trips), and the preparation step repairs what it can. Singapore's timetables are built from frequencies, not published.
data.gov.my publishes bus positions, not delay predictions, so plans follow the timetable. Our own live-arrival times are shown on top of each planned ride.
With Google switched off, there is nothing to fall back to if MOTIS is down. Place search deliberately doesn't fall back to Google, since that is exactly what the terms forbid: a GrabMaps outage says suggestions are unavailable. Everything runs on one server.
English descriptions, short names and Brunei (section E14). The recommended Photon fallback isn't built yet.
Credit "© OpenStreetMap contributors" where its data shows. Don't store GrabMaps' answers, keep Grab's credit, and never merge Grab's places into OpenStreetMap-licensed data. MOTIS's own code is MIT, but its place-search library, adr, is under the AGPL, whose extra duties apply to changed copies offered over a network; we run the official image unchanged, with place search off.
MOTIS: github.com/motis-project/motis (README, setup guide, API specification, and release 2.11.4 of 21 October 2026); its libraries nigiri, osr and tiles (github.com/motis-project), cista (github.com/felixguendling/cista) and adr (github.com/triptix-tech/adr); the FOSDEM 2025 talk "GNOME Maps meets Transitous meets MOTIS". RAPTOR: D. Delling, T. Pajor and R. F. Werneck, "Round-Based Public Transit Routing", ALENEX 2012.
Transitous: transitous.org, and its usage policy, transitous.org/api.
OpenTripPlanner: docs.opentripplanner.org (history, version comparison, system requirements and deployments).
Comparisons: SKI+, "Open Source Routers – A comprehensive comparative market research", version 1.1, November 2025 (oev-info.ch); TransCAPI, "Replacing OpenTripPlanner with MOTIS for Great Britain", 16 October 2026 (transcapi.com).
Other planners: Navitia, github.com/hove-io/navitia; R5, github.com/conveyal/r5; Valhalla, github.com/valhalla/valhalla; GraphHopper, github.com/graphhopper/graphhopper.
GrabMaps' history: Grab's press release of 8 June 2022; Amazon's announcements of 10 January 2023 and 31 March 2026; Amazon's GrabMaps page (countries, regions and data).
Google Maps Platform: Service Specific Terms (version of 24 November 2026), cloud.google.com/maps-platform/terms/maps-service-terms; Terms of Service, cloud.google.com/maps-platform/terms; pricing, developers.google.com/maps/billing-and-pricing/pricing; Places UI Kit, developers.google.com/maps/documentation/javascript/places-ui-kit (all read 26–27 November 2026).
Amazon Location Service and GrabMaps: pricing and free tier, aws.amazon.com/location/pricing; AWS's price list for Asia Pacific (Malaysia), published 11 September 2026; Places price buckets, docs.aws.amazon.com/location/latest/developerguide/places-pricing.html; GrabMaps' countries and regions, docs.aws.amazon.com/location/latest/developerguide/GrabMaps.html; data attribution, docs.aws.amazon.com/location/latest/developerguide/data-attribution.html; AWS Service Terms, section 82, aws.amazon.com/service-terms (read 26–27 November 2026).
Place search fallback: Photon, github.com/komoot/photon.
Data: data.gov.my's GTFS feeds (CC BY 4.0); LTA DataMall (Singapore Open Data Licence); OpenStreetMap (© OpenStreetMap contributors, ODbL), through Geofabrik's extracts.
Malaysia Transit's own records: the plan, comparisons and trial results (docs/google-maps-replacement-plan.md), the server scripts and nightly refresh (scripts/motis/), the planner client (lib/motisPlanner.js) and the place search client (lib/grabMapsPlaces.js).