Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add travel time performance indicator #279

Conversation

moradology
Copy link
Contributor

This commit includes indicator calculation parameter additions which make possible the use of observed data as well as the 'on time performance' indicator/tests.

}
.toMap
}
/*new ObservedStopTimes {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Leftover comment?

@ddohler
Copy link
Contributor

ddohler commented Oct 10, 2014

+1 could probably use another set of eyes though.

object ObservedStopTimes {
def apply(scheduledSystems: Map[SamplePeriod, TransitSystem])(implicit session: Session): ObservedStopTimes = {
// This is ugly: a thousand sorries. it also is apparently necessary -
// we have to index on SamplePeriod and again on trip id
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure that it's necessary to have the trips divided up by SamplePeriod; trip ids are supposed to be unique, so I think that a Map[String, Trip] would be sufficient here. That might simplify things; it would allow params.observedForTrip(period, trip.id) below to become something like params.observedTrips[trip.id]. I might be missing something though.

@moradology moradology force-pushed the feature/traveltime-performance branch from 28e1e9f to 5b47687 Compare October 13, 2014 15:52
moradology added a commit that referenced this pull request Oct 13, 2014
Add travel time performance indicator - creating issue for exploration of a simpler map from trip ID to observed 'real-time' trip
@moradology moradology merged commit 9ae5fbb into WorldBank-Transport:develop Oct 13, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants