Skip to content

Commit

Permalink
TransitIndex API uses seconds not milliseconds
Browse files Browse the repository at this point in the history
  • Loading branch information
buma committed Apr 10, 2014
1 parent 94ccb26 commit 52177c9
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -184,8 +184,8 @@ otp.core.TransitIndex = otp.Class({
var params = {
agency: agencyId,
id: stopId,
startTime : startTime * 1000, // legacy TransitIndex API still uses milliseconds
endTime : endTime * 1000, // legacy TransitIndex API still uses milliseconds
startTime : startTime, //new TransitIndex API uses seconds
endTime : endTime, // new TransitIndex API uses seconds
extended : true,
};
if(otp.config.routerId !== undefined) {
Expand Down

0 comments on commit 52177c9

Please sign in to comment.