Notices


Reply
Thread Tools
Posts: 436 | Thanked: 2,194 times | Joined on Oct 2009
#1
Since the current version of Fahrplan (at https://github.com/smurfy/fahrplan) no longer supports the N900 and since plans to mate the backend part of that with a N900 compatible frontend seem to have died (Halftux posted an unfinished binary back in 2015 with no source code being posted and no further updates), I have taken the version of Fahrplan in extras-devel and added support for Translink here in Queensland, Australia.

It works by making the same HTTP POST requests as the journey planner web page that's built into the official Translink app for Android (at https://app.jp.translink.com.au/plan...ourney-planner) and parsing the JSON you get back.

GPS lookups (i.e. find the location closest to your current GPS coordinates) are supported as well as looking up by string (e.g. type "Beenleigh" and get "Beenleigh Station", "Beenleigh Mall", "Beenleigh Library" etc back for you to pick the one you want)

I have attached a source tarball with all my changes in it plus a binary .deb package.
Running it will require libqjson0 0.8.1 from extras-devel (http://repository.maemo.org/extras-d...tle0_armel.deb) to be installed on your phone and compiling it will require that plus libqjson-dev 0.8.1 from extras-devel (http://repository.maemo.org/extras-d...tle0_armel.deb) to be installed in your dev environment. Everything else is the same as stock Maemo.

Please let me know what you think (e.g. are there things I can do better/differently, things that dont work or information I should be displaying but don't)
Attached Files
File Type: gz fahrplan_0.0.34.tar.gz (326.9 KB, 42 views)
File Type: deb fahrplan_0.0.34_armel.deb (237.2 KB, 37 views)
 

The Following 4 Users Say Thank You to jonwil For This Useful Post:
Posts: 436 | Thanked: 2,194 times | Joined on Oct 2009
#2
Just made a small fix, now it should work properly.
Attached Files
File Type: gz fahrplan_0.0.34.tar.gz (326.9 KB, 40 views)
File Type: deb fahrplan_0.0.34_armel.deb (237.5 KB, 35 views)
 

The Following 3 Users Say Thank You to jonwil For This Useful Post:
Posts: 444 | Thanked: 1,211 times | Joined on Feb 2012 @ Germany
#3
Originally Posted by jonwil View Post
Since the current version of Fahrplan (at https://github.com/smurfy/fahrplan) no longer supports the N900 and since plans to mate the backend part of that with a N900 compatible frontend seem to have died (Halftux posted an unfinished binary back in 2015 with no source code being posted and no further updates)
Yeah fahrplan is at the last position on my priority list. I will only working on it if all other projects are finished and I fear this will never happen. My personal interest is very low because I never take the train. I am a car driver. The application still needs some love. At the moment no GPS, no Calendar support and the gui need some polishing. However the backend is much better than fahrplan1.

Packed what I found on my hdd into a zip:

https://www.file-upload.net/download...plan2.zip.html
 

The Following 3 Users Say Thank You to Halftux For This Useful Post:
Posts: 436 | Thanked: 2,194 times | Joined on Oct 2009
#4
What libraries are required for this code? Do I need anything beyond the standard QT libraries that are included on the N900? (and if so, what package(s) do I need to install and where do I get them from)
 
Posts: 444 | Thanked: 1,211 times | Joined on Feb 2012 @ Germany
#5
Originally Posted by jonwil View Post
What libraries are required for this code? Do I need anything beyond the standard QT libraries that are included on the N900? (and if so, what package(s) do I need to install and where do I get them from)
You will need qtmobility12 from extras at least I wanted to use it for the calendar and gps things and the project file is configured to use it.
The project file needs to be cleaned, if you want compile it for all supported targets, furthermore I not removed the qml fremantle stuff what was already there.
 

The Following User Says Thank You to Halftux For This Useful Post:
Posts: 436 | Thanked: 2,194 times | Joined on Oct 2009
#6
At this point I am going to stick with the existing Fahrplan code rather than trying to get the incomplete Farhplan2 Fremantle UI working.

There is one more feature I would like to add if I can figure out how, namely being able to click on a leg of a journey and have a map be displayed.

Firstly I have to figure out how to make the items for each leg clickable (dont know enough about QT to do that yet), secondly I have to figure out how to trigger microb to open and display a web URL (since implementing my own internal browser widget to display the maps is out of the question) and thirdly I need to figure out what sort of map to display.

Do I display the existing Google static maps image URLs (which aren't the best in terms of size or usefulness) I get back in the JSON Translink sends me? (e.g. something like this https://maps.google.com/maps/api/sta...sITUCziNZXiow= )

Do I figure out the mess of how to get an API key, figure out how to keep it secret (despite this program being 100% open source and despite reverse engineering Maemo apps being trivial) and somehow generate my own static maps URLs with better parameters (e.g. larger size image, different zoom level etc) all the while trying to figure out how not to exceed the limit on the number of static map requests you can get from Google before you have to start paying?

Do I try and somehow open Nokia Maps and display something there?

Do I find another web-based mapping solution that doesn't have the limits of Google?
 

The Following User Says Thank You to jonwil For This Useful Post:
Posts: 436 | Thanked: 2,194 times | Joined on Oct 2009
#7
Just fixed an issue with time conversion where times between 12:00 and 1:00 (AM or PM) would not convert properly and would return wrong results.

Still trying to figure out what, if anything, I want to do about maps and things.
Attached Files
File Type: gz fahrplan_0.0.35.tar.gz (327.1 KB, 35 views)
File Type: deb fahrplan_0.0.35_armel.deb (237.7 KB, 35 views)
 

The Following User Says Thank You to jonwil For This Useful Post:
Posts: 444 | Thanked: 1,211 times | Joined on Feb 2012 @ Germany
#8
Uploaded fahrplan 0.0.35 to extra-devel.

- changed app version in mainwindow.h
- added pkgconfig in pro for qjson
- added Jonwil to the author list

Selecting Translink and do a search was working tested nothing more.
Well done jonwil.
 

The Following 2 Users Say Thank You to Halftux For This Useful Post:
Posts: 436 | Thanked: 2,194 times | Joined on Oct 2009
#9
I have fixed another issue where it was displaying "-1 transfers" in the case where the journey only had a single walking leg and no actual transport journeys.

I am so glad I found that the Translink journey planner website had a nice clean JSON backend I could take advantage of

Still not sure what to do about the maps though, at this point I am thinking that if I can figure out how to make the individual legs of the journey clickable I will make it open the Google Maps Static Map URL that comes in the JSON response data in the microb browser (at least that would display something useful-enough to e.g. see where you need to walk for a walking leg)
Attached Files
File Type: deb fahrplan_0.0.36_armel.deb (237.7 KB, 30 views)
File Type: gz fahrplan_0.0.36.tar.gz (327.5 KB, 32 views)
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 02:07.