forked from Project-OSRM/osrm-backend
-
Notifications
You must be signed in to change notification settings - Fork 7
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
Multi-metric or dynamic weight calculation support #372
Comments
wangyoucao577
added
Ideas
Ideas for long-term discussion
Research
Read paper/issue/code for better understanding
labels
Sep 7, 2020
osrm-backend/src/storage/storage.cpp Lines 327 to 334 in d21e5dd
lists all the metric related files. osrm-backend/src/storage/storage.cpp Line 509 in d21e5dd
|
Another place need to pay attention to is here: template <> class ContiguousInternalMemoryAlgorithmDataFacade<MLD> : public AlgorithmDataFacade<MLD>
{
void InitializeInternalPointers(const storage::SharedDataIndex &index,
const std::string &metric_name,
const std::size_t exclude_index)
{
mld_partition = make_partition_view(index, "/mld/multilevelpartition");
mld_cell_metric =
make_filtered_cell_metric_view(index, "/mld/metrics/" + metric_name, exclude_index);
mld_cell_storage = make_cell_storage_view(index, "/mld/cellstorage");
query_graph = make_multi_level_graph_view(index, "/mld/multilevelgraph");
}
void InitializeInternalPointers(const storage::SharedDataIndex &index,
const std::string &metric_name,
const std::size_t exclude_index)
{
// TODO: For multi-metric support we need to have separate exclude classes per metric
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Some important references/discussion
The text was updated successfully, but these errors were encountered: