Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.

Dublin Bus Fare Calculator to Android

  • 06-12-2013 01:45PM
    #1
    Registered Users, Registered Users 2 Posts: 427 ✭✭


    I am trying to implement the Dublin Bus Fare calculator into an Android application but am wondering how to do so.

    Do I call the webpage within the application and scrape the result into my database?

    Do I ask Dublin Bus for access to their algorithm on their server?

    Just thinking of it from a high level approach so excuse the lack of detail.

    Any suggestions appreciated!

    Thanks!


Comments

  • Registered Users, Registered Users 2 Posts: 124 ✭✭shanefitz360


    Ask dublin bus for access to their API.

    If none exists or they won't, then you can try to reverse engineer it.


  • Registered Users, Registered Users 2, Paid Member Posts: 7,992 ✭✭✭The_B_Man
    Something about sandwiches


    This is something I'm looking at as well.
    Once u have the stops on the route, you're grand.
    Just count how many there is, if its under 3, its X, if its over 3, less than 10 or whatever, then it costs Y.


  • Registered Users, Registered Users 2 Posts: 1,019 ✭✭✭carlmango11


    The_B_Man wrote: »
    This is something I'm looking at as well.
    Once u have the stops on the route, you're grand.
    Just count how many there is, if its under 3, its X, if its over 3, less than 10 or whatever, then it costs Y.

    Correct me if I'm wrong but I don't think stages are the same as stops...?


  • Registered Users, Registered Users 2, Paid Member Posts: 7,992 ✭✭✭The_B_Man
    Something about sandwiches


    Well the way I was looking at it for my app was, since I'm already able to get a list of stops on any route, I can just count from the current stop to the destination stop, and count how many stops that is down the list.
    Once I have home many stops it is, then I can calculate the fare.


Advertisement