Skip to content

Commit

Permalink
Start footpaths (#116)
Browse files Browse the repository at this point in the history
* change default value for use_start_footpaths_ to false

* adds search direction vs user perspective table comment

* adds search direction vs user perspective table comment

* adds search direction vs user perspective table comment

* Update include/nigiri/types.h

---------

Co-authored-by: Felix Gündling <[email protected]>
  • Loading branch information
mority and felixguendling authored Jul 23, 2024
1 parent 83d35a3 commit 22e62a7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/nigiri/query_generator/generator_settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ struct generator_settings {
routing::location_match_mode::kIntermodal};
transport_mode start_mode_{kWalk};
transport_mode dest_mode_{kWalk};
bool use_start_footpaths_{true};
bool use_start_footpaths_{false};
std::uint8_t max_transfers_{routing::kMaxTransfers};
unsigned min_connection_count_{0U};
bool extend_interval_earlier_{false};
Expand Down
2 changes: 1 addition & 1 deletion include/nigiri/routing/query.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ struct query {
nigiri::routing::location_match_mode::kExact};
location_match_mode dest_match_mode_{
nigiri::routing::location_match_mode::kExact};
bool use_start_footpaths_{true};
bool use_start_footpaths_{false};
std::vector<offset> start_;
std::vector<offset> destination_;
std::uint8_t max_transfers_{kMaxTransfers};
Expand Down
6 changes: 5 additions & 1 deletion include/nigiri/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,11 @@ enum class location_type : std::uint8_t {
};

enum class event_type { kArr, kDep };
enum class direction { kForward, kBackward };

enum class direction {
kForward,
kBackward // start = final arrival, destination = journey departure
};

using transport_mode_id_t = std::int32_t;

Expand Down

0 comments on commit 22e62a7

Please sign in to comment.