Jump to content

TransLink Journey Planner with maps


Recommended Posts

I would love to know what people think of this example for an application. It would be most useful to anyone in the forums who lives in South-East Queensland in Australia.

I live in South-East Queensland in Australia, and we have a public transport system known as "TransLink". Here is a link to the TransLink website for more information -> TransLink About us. The TransLink website includes a Journey Planner, and it's become quite a popular tool for locals and tourists (especially in Brisbane) to help them get around town using public transport. TransLink even have a mobile version of their Journey Planner which works on IPhones.

The TransLink Journey Planner allows people to enter start and end locations for a trip (using street address, and suburb, or bus stop name, etc), submit the search, and a number of options are returned which describe verbally how to perform the trip. The issue I have with this is that the verbal results don't show a geographical (map) display of the locations in the trip, so it's quite difficult to understand where the locations are in the results displayed. Quite often I've found myself copying and pasting the locations in Google Maps to see where they actually are (relative to where I live).

I've produced this example of the TransLink Journey Planner using Google Maps, to help visualise the results of Journey Planner onto a map. This example calls the Journey Planner service, and interprets and displays it's response to the user in an AutoIT GUI. This example also comes with geographic bus route and bus stop data sourced from the publically available QROTI website (http://qroti.com).

I'm guessing that one day TransLink will supply it's data to "Google Transit" and this tool will no longer be very useful. But I'm guessing we're still a year or two away from this.


AutoIt3 3.2 or higher


Download the source files below and unzip them all to a folder on your computer.

Open the file "TransLink Journey Planner with maps.au3" in AutoIT and run the script.

When the script is run, a GUI is displayed that allows the user to query bus routes, bus stops and trips by integrating TransLink's Journey Planner.

The GUI is divided into four parts:

  • The Google Map (left)
  • Bus Routes (top right)
  • Bus Stops (middle right)
  • Journey Planner (bottom right)

Note - all the information presented in the GUI is related to South-East Queensland (Brisbane) Australia.

Filling in the Journey Planner fields (Start Street, Start Suburb, End Street, End Suburb, Date and Time) and clicking "Find" will send a search request to TransLink's Journey Planner. Once the response comes back from Journey Planner, it is displayed in the "Option 1" listbox in the GUI. The user may then click "Show" to display the journey on the Google Map using markers. Hovering the mouse over these markers should display tooltips indicating what each marker is. Red markers indicate the points in the journey where the person must do something (like walk, get on a bus, or get off a bus). Black markers indicate bus stops that a person will pass through whilst on their journey.


Latest Version - v0.1 (29/06/10)

Source: TransLink Journey Planner with maps.zip

Edited by seangriffin

Cheers, Sean.

See my other UDFs:

Chrome UDF - Automate Chrome | SAP UDF - Automate SAP | Java UDF - Automate Java Applications & Applets | Tesseract (OCR) UDF - Capture text from applications, controls and the desktop | Textract (OCR) UDF - Capture text from applications and controls | FileSystemMonitor UDF - File, Folder, Drive and Shell Monitoring | VLC (Media Player) UDF - Creating and controlling a VLC control in AutoIT | Google Maps UDF - Creating and controlling Google Maps (inc. GE) in AutoIT | SAPIListBox (Speech Recognition) UDF - Speech Recognition via the Microsoft Speech (SAPI) ListBox | eBay UDF - Automate eBay using the eBay API | ChildProc (Parallel Processing) UDF - Parallel processing functions for AutoIT | HyperCam (Screen Recording) UDF - Automate the HyperCam screen recorder | Twitter UDF - Automate Twitter using OAuth and the Twitter API | cURL UDF - a UDF for transferring data with URL syntax

See my other Tools:

Rapid Menu Writer - Add menus to DVDs in seconds | TV Player - Automates the process of playing videos on an external TV / Monitor | Rapid Video Converter - A tool for resizing and reformatting videos | [topic130531]Rapid DVD Creator - Convert videos to DVD fast and for free | ZapPF - A tool for killing processes and recycling files | Sean's eBay Bargain Hunter - Find last minute bargains in eBay using AutoIT | Sean's GUI Inspector - A scripting tool for querying GUIs | TransLink Journey Planner with maps - Incorporating Google Maps into an Australian Journey Planner | Automate Qt and QWidgets | Brisbane City Council Event Viewer - See what's going on in Brisbane, Australia
Link to comment
Share on other sites

  • 2 months later...

I should like to test your script but i obtain an error !

D:\Program Files\Ride Runner\Skins\Carwings_Dynamic_pm_new\Scripts\GoogleMapsTrack\TransLink Journey Planner\ChildProc.au3(146,29) : WARNING: $sMsg_Rcvd: possibly used before declaration.
        while StringLen($sMsg_Rcvd)
D:\Program Files\Ride Runner\Skins\Carwings_Dynamic_pm_new\Scripts\GoogleMapsTrack\TransLink Journey Planner\ChildProc.au3(713,54) : ERROR: _ChildProcReciver(): undefined function.
    If Not IsKeyword($vPar) Then _ChildProcReciver($vPar)
D:\Program Files\Ride Runner\Skins\Carwings_Dynamic_pm_new\Scripts\GoogleMapsTrack\TransLink Journey Planner\TransLink Journey Planner with maps.au3 - 1 error(s), 1 warning(s)
!>08:51:28 AU3Check ended.rc:2

Thanks for your help

Link to comment
Share on other sites

  • 1 month later...

I too am getting errors. but clicked continue and the gui shows and whatnot.

Functionality looks awesome. a far bit of development still needed [array size exceptions is the main reason im crashing] but works well, follows my local bus route almost perfectly, (missing the end 3 stops)

But great work! keep working on it and ill definitely be using it.

Ill check out source when i get home.

thanks for this lovely program :graduated:

http://twentylinesofcode.blogspot.comLittle apps n crap. can be fun
Link to comment
Share on other sites

  • 3 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...