Access API for Jacksonville State University

73 views
Skip to first unread message

Graham Lewis

unread,
Jul 16, 2013, 4:12:01 PM7/16/13
to transl...@googlegroups.com
We are wanting to pull or Estimated Time of Arrival into some Digital Signage - we can't find how to access our API much less (if I'm honest) what to do with that once we get it. Can anyone give me some help? 

Stu Zhao

unread,
Jul 17, 2013, 10:41:43 AM7/17/13
to transl...@googlegroups.com
Hi Graham,

Currently, the Jacksonville State University OpenAPI is not yet enabled for public usage. We have not received request from the university to enable the OpenAPI. Please submit your request through this portal https://transloc.zendesk.com/, or contact our customer care to enable the OpenAPI for Jacksonville State University.

For information on accessing the OpenAPI, please refer to http://api.transloc.com/. If you have any questions about the OpenAPI, feel free to ask here.

Thanks,

Stu

--
Yanglei (Stu) Zhao
TransLōc, Inc.


On Tue, Jul 16, 2013 at 4:12 PM, Graham Lewis <glew...@gmail.com> wrote:
We are wanting to pull or Estimated Time of Arrival into some Digital Signage - we can't find how to access our API much less (if I'm honest) what to do with that once we get it. Can anyone give me some help? 

--
You received this message because you are subscribed to the Google Groups "TransLoc API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to transloc-api...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Graham Lewis

unread,
Jul 17, 2013, 10:47:46 AM7/17/13
to transl...@googlegroups.com
Stu,

Thanks for that info - that would be a good place to start. I've contacted our Bus Manager and she is going to get that submitted.

Can you give me a bit of direction on what to do once that is enabled? I've never used an API before so I'm not sure where to begin.

Stu Zhao

unread,
Jul 17, 2013, 10:59:38 AM7/17/13
to transl...@googlegroups.com
Graham,

Since you care about estimated arrival times, you need to query the API about the arrival times and then process them. Please find the way to access arrival estimates API here: http://api.transloc.com/doc/#arrival-estimates. Also, you might need to get the internal ID for stops and routes. Please refer to http://api.transloc.com/doc/#routes and http://api.transloc.com/doc/#routes. Note that the IDs do change over time, whenever there schedule change or route/stop change. So you should to refresh the route/stop information every once an hour or so. The agency ID for Jacksonville State University will be 56.

--
Yanglei (Stu) Zhao
TransLōc, Inc.


Graham Lewis

unread,
Jul 17, 2013, 11:23:07 AM7/17/13
to transl...@googlegroups.com
Stu,

I've look at that page, I still don't know what to do with that information. I don't know what HTML or anything to put on the page to use it. Forgive me API ignorance, I have an art degree :)

Stu Zhao

unread,
Jul 17, 2013, 2:18:13 PM7/17/13
to transl...@googlegroups.com
Sure.

First, if you guys have computer monitors/TVs for the digital signage, you don't have to use OpenAPI. Open this link http://jsu.transloc.com/livedisplay/ in a browser and configure it as you would like. Then copy the URL in the browser URL bar and paste it to the browser that shows up on the signage.

Otherwise, what you need to do is to write a computer program that fetches and parses from the API. With different programming languages it will be slightly different. But in general you would want to make an HTTP request to the URLs that the documentation shows you and grab some JSON documents from there, then parse the document and extract useful information. After you have the information, you can write them to the signage. The program should repeat this process for up-to-date information.

Does this help you?


--
Yanglei (Stu) Zhao
TransLōc, Inc.


Graham Lewis

unread,
Jul 18, 2013, 4:51:42 PM7/18/13
to transl...@googlegroups.com
Very much so! Thanks! That makes things so much easier lol

Jason Baker

unread,
Jul 20, 2013, 11:38:33 AM7/20/13
to transl...@googlegroups.com
Stu,

I've been following this thread with interested - I hadn't seen the livedisplay webapp before. Very cool! I do have a question about it though. Is there a way to limit the view to a single agency? I was playing with triangle.transloc.com/livedisplay and could not find an easy way to have just one agency (just Chapel Hill Transit, or just Triangle Transit, for example) to display. While we're lucky in our area to have so many overlapping agencies, it does make for a cluttered display when folks are generally only interested in using the local service, and may be confused by the regional service or the local service from another agency showing up on the edge of the map.

Thanks,


Jason


Jason Baker
PO Box 14
Chapel Hill, NC 27514
(919) 442-8278

Stu Zhao

unread,
Jul 22, 2013, 11:15:24 AM7/22/13
to transl...@googlegroups.com
Hi Jason,

Thanks for your email.

No, currently the live display don't have a way to limit what agencies to look at. You suggestion is actually a very good one. We will consider adding this functionality to our live display.

Thanks,

--
Yanglei (Stu) Zhao
TransLōc, Inc.


Reply all
Reply to author
Forward
0 new messages