Jump to content



Photo

TransLink Journey Planner with maps


  • Please log in to reply
2 replies to this topic

#1 seangriffin

seangriffin

    Polymath

  • Active Members
  • PipPipPipPip
  • 223 posts

Posted 29 June 2010 - 07:26 AM

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.

REQUIREMENTS:

AutoIt3 3.2 or higher

INSTRUCTIONS:

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.


DOWNLOAD:

Latest Version - v0.1 (29/06/10)
Source: TransLink Journey Planner with maps.zip

Edited by seangriffin, 29 June 2010 - 01:54 PM.

Cheers,Sean.See my other UDFs:SAP UDF - Automate SAPJava UDF - Automate Java Applications & AppletsTesseract (OCR) UDF - Capture text from applications, controls and the desktopTextract (OCR) UDF - Capture text from applications and controlsFileSystemMonitor UDF - File, Folder, Drive and Shell MonitoringVLC (Media Player) UDF - Creating and controlling a VLC control in AutoITGoogle Maps UDF - Creating and controlling Google Maps (inc. GE) in AutoITSAPIListBox (Speech Recognition) UDF - Speech Recognition via the Microsoft Speech (SAPI) ListBoxeBay UDF - Automate eBay using the eBay APIChildProc (Parallel Processing) UDF - Parallel processing functions for AutoITHyperCam (Screen Recording) UDF - Automate the HyperCam screen recorderTwitter UDF - Automate Twitter using OAuth and the Twitter APIcURL UDF - a UDF for transferring data with URL syntaxSee my other Tools:Rapid Menu Writer - Add menus to DVDs in secondsTV Player - Automates the process of playing videos on an external TV / MonitorRapid Video Converter - A tool for resizing and reformatting videosRapid DVD Creator - Convert videos to DVD fast and for freeZapPF - A tool for killing processes and recycling filesSean's eBay Bargain Hunter - Find last minute bargains in eBay using AutoITSean's GUI Inspector - A scripting tool for querying GUIsTransLink Journey Planner with maps - Incorporating Google Maps into an Australian Journey PlannerAutomate Qt and QWidgetsBrisbane City Council Event Viewer - See what's going on in Brisbane, Australia







#2 pierrotm777

pierrotm777

    Wayfarer

  • Active Members
  • Pip
  • 90 posts

Posted 24 September 2010 - 06:54 AM

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

#3 C45Y

C45Y

    Wayfarer

  • Active Members
  • Pip
  • 54 posts

Posted 02 November 2010 - 02:10 AM

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




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users