Skip to content

Commit

Permalink
Kraken: get stop_points in a more direct way
Browse files Browse the repository at this point in the history
  • Loading branch information
l-vincent-l committed Jul 28, 2014
1 parent d53c139 commit c445422
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/routing/raptor_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ pbnavitia::Response make_pathes(const std::vector<navitia::routing::Path>& paths
if (path.items.front().stop_times.empty()) {
continue;
}
const auto sp_dest = path.items.front().stop_times.front()->journey_pattern_point->stop_point;
const auto sp_dest = path.items.front().stop_points.front();
type::EntryPoint destination_tmp(type::Type_e::StopPoint, sp_dest->uri);
bt::time_period action_period(path.items.front().departures.front(),
path.items.front().departures.front()+bt::minutes(1));
Expand Down Expand Up @@ -263,7 +263,7 @@ pbnavitia::Response make_pathes(const std::vector<navitia::routing::Path>& paths
if (path.items.back().stop_times.empty()) {
continue;
}
const auto sp_orig = path.items.back().stop_times.back()->journey_pattern_point->stop_point;
const auto sp_orig = path.items.back().stop_points.back();
type::EntryPoint origin_tmp(type::Type_e::StopPoint, sp_orig->uri);
bt::time_period action_period(path.items.back().departures.back(),
path.items.back().departures.back()+bt::minutes(1));
Expand Down

0 comments on commit c445422

Please sign in to comment.