Sean,
OBA (currently) accepts tuples of: (bus location, trip_id, block_id, schedule_deviation). It generates all downstream stop level “predictions” based on schedule deviation only (i.e. “prediction” = scheduled time + schedule deviation).
Our recent experimentation shows that when you call certain functions to set externally-derived stop-level predictions, they don’t stick. This is something we mean to raise with the OBA community post-haste. You may run into this issue or not, but we should work together or at least coordinate our efforts to improve OBA’s functionality to accept and handle independently/externally-derived stop level predictions.
Thanks,
Mike
--
You received this message because you are subscribed to the Google Groups "onebusaway-developers" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/onebusaway-developers/-/P2rMJOkPmKAJ.
To post to this group, send email to
onebusaway...@googlegroups.com.
To unsubscribe from this group, send email to
onebusaway-devel...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/onebusaway-developers?hl=en.
>> To post to this group, send email to onebusaway-developers@googlegroups.com.
>> To unsubscribe from this group, send email to
>> onebusaway-developers+unsub...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/onebusaway-developers?hl=en.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "onebusaway-developers" group.
>> To post to this group, send email to onebusaway-developers@googlegroups.com.
>> To unsubscribe from this group, send email to
>> onebusaway-developers+unsub...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/onebusaway-developers?hl=en.
>
>
>
> --
> Jeff Maki
> OpenPlans Transportation
> 917-388-9088
> jm...@openplans.org
>
> --
> You received this message because you are subscribed to the Google Groups "onebusaway-developers" group.
> To post to this group, send email to onebusaway-developers@googlegroups.com.
> To unsubscribe from this group, send email to onebusaway-developers+unsub...@googlegroups.com.
>> To post to this group, send email to onebusaway-developers@googlegroups.com.
>> To unsubscribe from this group, send email to
>> onebusaway-developers+unsub...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/onebusaway-developers?hl=en.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "onebusaway-developers" group.
>> To post to this group, send email to onebusaway-developers@googlegroups.com.
>> To unsubscribe from this group, send email to
>> onebusaway-developers+unsub...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/onebusaway-developers?hl=en.
>
>
>
> --
> Jeff Maki
> OpenPlans Transportation
> 917-388-9088
> jm...@openplans.org
>
> --
> You received this message because you are subscribed to the Google Groups "onebusaway-developers" group.
> To post to this group, send email to onebusaway-developers@googlegroups.com.
> To unsubscribe from this group, send email to onebusaway-developers+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/onebusaway-developers/-/ORjG_Y65NvoJ.
To post to this group, send email to onebusaway...@googlegroups.com.
To unsubscribe from this group, send email to onebusaway-devel...@googlegroups.com.
--------------------
SELECT cps.vehicle_id AS vehicle, v.loc_x AS latitude, v.loc_y AS longitude, v.vehicle_position_date_time AS time, cps.deviation * -60 AS delay, v.predicted_deviation * -60 AS predicted_delay, v.average_speed AS speed,
v.heading AS bearing, cps.current_route_id AS route, LEFT(t.trip_id_external, LEN(t.trip_id_external) - 3) AS trip, bsp.bs_id AS stop, bsp.bs_seq AS sequence
FROM dbo.current_performance_status AS cps INNER JOIN
dbo.vehicle AS v ON cps.vehicle_id = v.vehicle_id INNER JOIN
dbo.trip AS t ON cps.trip_id = t.trip_id AND cps.sched_version = t.sched_version INNER JOIN
dbo.vehicle_schedule AS vs ON cps.sched_version = vs.sched_version INNER JOIN
dbo.booking AS b ON vs.booking_id = b.booking_id INNER JOIN
dbo.trip_timepoint AS ctp ON cps.trip_id = ctp.trip_id AND cps.tp_id = ctp.tp_id AND cps.sched_version = ctp.sched_version AND DATEDIFF(n, ctp.eta, cps.sched_time)
% 1440 = 0 INNER JOIN
dbo.bus_stop_pattern AS bsp ON b.booking_num = bsp.booking_num AND cps.current_route_id = bsp.route_id AND cps.direction_code_id = bsp.direction_code_id AND
t.variation = bsp.variation AND ctp.seq_num = bsp.tp_seq
WHERE (cps.vehicle_id <> 0) AND (v.logon_state = 1) AND (cps.transit_date_time =
(SELECT MAX(transit_date_time) AS Expr1
FROM dbo.current_performance_status))