Discussion Forums  >  Uncategorized

Replies: 4    Views: 182

ur4mehk
I hate code!
Profile
Posts: 25
Reg: Nov 13, 2011
location unknow...
250
12/17/11 07:17 AM (14 years ago)

Bus Schedule Help

Hi guys, I'm trying to make a bus shedule the same way as the free app called Ontime HK With the countdown timer in the menu list. I got some help from Dave. He wrote the following but I dont have a experience to do this. If someone can help me create the data URL for one bus shedule I can edit it, to see how it has been done, and do the rest myself. To return the favour I can buy a few of your apps? This is what needs to be done... Frome Dave OK, I've looked at your data set and it's basic, as expected. I would do this: a) Figure out how to 'read' this data into an array using PHP. This means you'll put this file on your website and create a .php script to open it and read in the data. You'll be best off saving the file as a plain text .csv file instead of a .xls (excel spreadsheet. So, save the file as .csv, upload it to your website, then create .php script to read it. b) Create a menu list screen. Set the Data URL for this menu list screen to the web address of the .php script you created in the previous step. When the menu loads, the phone will make a request to the php script. The php script will output the menu items as they appear in your data file. This means you'll need to look at the docs to see how the menu list screen expects the data to be formated. It's JSON format in a certain way. Your php script will read the .csv data then output the json.
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
12/17/11 11:44 AM (14 years ago)
Hi, I think this would be pretty easy to accomplish. If you could put the CSV information online for us, we could access it and try to whip up a script for you. The rest would be easy after that. Mark
 
ur4mehk
I hate code!
Profile
Posts: 25
Reg: Nov 13, 2011
location unknow...
250
like
12/17/11 12:53 PM (14 years ago)
Hi mark, how can I get the file to you? You can mail me info at airlinecrewforum dot com Will reply with the file
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
12/17/11 01:31 PM (14 years ago)
Email sent!
 
farcat
buzztouch Evangelist
Profile
Posts: 1008
Reg: Jan 27, 2012
France
13,230
like
07/31/15 02:07 AM (10 years ago)
Hey guys, I am also trying to make a bus schedule app. I was wondering if you managed to get the app working the way you wanted? Cheers, Farcat
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.