Comments (3)
https://github.com/Telenav/open-source-spec/blob/master/osrm/doc/osrm_facade.md#initialization
from osrm-backend.
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.
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)
- Allowing u-turns in two way segments HOT 6
- Turn restriction ignored HOT 2
- Multi-metric or dynamic weight calculation support HOT 2
- ETA pipeline task collector
- Upgrade osrm-backend-dev env
- Isochrone service HOT 1
- Merge project-osrm/osrm-backend v5.23 release changes
- Support run unit test, cucumber test, code format in osrm-backend-dev HOT 5
- Upgrade base image to osrm-backend-dev:v2
- Enable cpp code format
- Build error on mac OS due to Apple Clang 12 HOT 1
- Filter osm invalid ways
- Unmatched speed unit between traffic flow(m/s) and OSRM traffic injection(km/h)
- Multi-metric prototype HOT 9
- Node Based Graph Representation vs. Edge Based Graph Representation HOT 3
- github-actions-deprecating-set-env-and-add-path-commands HOT 1
- Upgrade osrm-backend-dev - debian:buster HOT 1
- Merge project-osrm/osrm-backend v5.24 release changes
- Merge project-osrm/osrm-backend v5.24 release changes #377 HOT 1
- Upgrade osrm-backend-dev - debian:bullseye
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from osrm-backend.