Go to Metro.net

Nice start

 
jpfeiffer

Posted by: joachim pfeiffer on June 20, 2009

Nice start! I've test driven the trip planner and have a few comments. Unfortunately, the comment system is broken for me (see below), so let me try this avenue.

When calling a schedule query in the morning(PT-zone), a schedule query only returns PM departures. Example, issued on Saturday June 20 2009 at 8:58AM PT-zone:

http://developer.metro.net/tm/schedule.php?apikey=MYKEY&route=1194&stop_on=15839&stop_off=16474

The resulting departures are way in the future:

<------------- snip -------------->

N-MEMORIAL PARK STATION-AT






E-LAKE STATION-AT






<------------- snip -------------->

Queries sent in the afternoon or shortly after midnight (I suspect to the end of the operational day) seem to be correct.

Generally, I would recommend the use of an abstract time format that does not include AM/PM or other formatting.

Other feeds that include time data use the following:

  • TriMet web services: time in millis since midnight 1, January 1970 UTC (Basis in Java, used by TriMet's web service)
  • weather.gov/xml: A 24h time format with UTC as reference, e.g.: 2004-04-27T25:00
(I am using 25h transit format as an example)

I'd prefer TriMet's format - it's easy to process in Java as Java time/date conversions take the timezone of the processor in consideration, including daylight savings time and the differences involving the handling of daylight savings time around the globe.

I've run into a strange problem on this web site: After deleting a post, it is no longer possible to post; error message:

"sorry, your note appears to have been empty! Please use your back button to return to the previous page and try again "

This regardless of web browser, i.e. it seems this is a back end, not a caching problem.


Comments on this entry:

  • June 22, 2009

    Hello jpfeiffer,

    Thanks for the feedback! You're right, the trip planner has been designed around typical use cases even though we do operate late-night service and people plan trips 24/7. I'll send your suggestion over to the architect of the trip planner and keep you posted on the evolution of the service.

    As for the weblog comment issue, we've noticed that here too and we're working on it.

  •  

Please Login (or Sign Up) to leave a comment