-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wip: footpath component preprocessing (#76)
- Loading branch information
1 parent
ea35f57
commit 7f0c17b
Showing
20 changed files
with
632 additions
and
518 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#pragma once | ||
|
||
namespace nigiri { | ||
|
||
constexpr const auto kWalkSpeed = 1.5; // m/s | ||
|
||
} // namespace nigiri |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#include "nigiri/loader/match_set.h" | ||
|
||
namespace nigiri { | ||
struct timetable; | ||
} | ||
|
||
namespace nigiri::loader { | ||
|
||
match_set_t link_nearby_stations(timetable&, bool const store_matches); | ||
|
||
} // namespace nigiri::loader |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#include "nigiri/types.h" | ||
|
||
namespace nigiri::loader { | ||
|
||
using match_set_t = hash_set<pair<location_idx_t, location_idx_t>>; | ||
|
||
inline pair<location_idx_t, location_idx_t> make_match_pair( | ||
location_idx_t const a, location_idx_t const b) { | ||
return {std::min(a, b), std::max(a, b)}; | ||
} | ||
|
||
} // namespace nigiri::loader |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#include "nigiri/types.h" | ||
|
||
namespace nigiri { | ||
struct timetable; | ||
} | ||
|
||
namespace nigiri::loader { | ||
|
||
using match_set_t = hash_set<pair<location_idx_t, location_idx_t>>; | ||
|
||
unsigned find_duplicates(timetable& tt, | ||
match_set_t const& matches, | ||
location_idx_t const a, | ||
location_idx_t const b); | ||
|
||
} // namespace nigiri::loader |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.