GithubHelp home page GithubHelp logo

Comments (3)

CodeBear801 avatar CodeBear801 commented on August 23, 2024

https://github.com/Telenav/open-source-spec/blob/master/osrm/doc/osrm_facade.md#initialization

from osrm-backend.

CodeBear801 avatar CodeBear801 commented on August 23, 2024

facade layer is the one designed for service, so all data in all kind of model will be initialized by default.
This layer mainly designed for visiting data not updating data.

In customizer.cpp, it loads needed data to update cost metric, this step need loads and writes data, so not directly use current facade layer.

from osrm-backend.

CodeBear801 avatar CodeBear801 commented on August 23, 2024

In Customizer::Run, It will load data via

    auto graph = LoadAndUpdateEdgeExpandedGraph(
        config, mlp, node_weights, node_durations, node_distances, connectivity_checksum);

    partitioner::files::readCells(config.GetPath(".osrm.cells"), storage);

    extractor::files::readNodeData(config.GetPath(".osrm.ebg_nodes"), node_data);

    extractor::files::readProfileProperties(config.GetPath(".osrm.properties"), properties);

Then will recalculate metric by

    auto metrics = customizeFilteredMetrics(graph, storage, CellCustomizer{mlp}, filter);

And then dump result

   files::writeCellMetrics(config.GetPath(".osrm.cell_metrics"), metric_exclude_classes);
   MultiLevelEdgeBasedGraph shaved_graph{std::move(graph),
                                          std::move(node_weights),
                                          std::move(node_durations),
                                          std::move(node_distances)};
   customizer::files::writeGraph(
        config.GetPath(".osrm.mldgr"), shaved_graph, connectivity_checksum);

from osrm-backend.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.