openplans/OpenTripPlanner — pull request #936 by flamholz (2012-12-05 22:26:12+00:00)
Title: Make CandidateEdge use heading information in scoring when available.

1) Update CandidateEdge to add a constructor with LocationObservation.
2) Set a heading variable when heading is available.
3) directionDifference is now the difference between the heading and the azimuth of the closest segment along the edge.
4) Scores are penalized for mismatches in direction when the heading information is provided.
5) There is a unit test checking that supplying the direction affects the edge returned.