Open Source Routing Machine - C++ backend
c-plus-pluscppcpp17isochronesmap-matchingopenstreetmaposmosrmroutingrouting-enginetraveling-salesman
Linkers also have options we can configure! The most usefull feature is to give every function its own section. This results in some bloat at compile time, but at link time now the linker can do dead code and data elimination by simply discarding appropriate sections. This works by splitting the `.text` section in a way that makes it possible to later only pull in sections that are actually referenced. That is, the basic idea is to keep the matching between sections and functions intact, so we can optimize based on it in the linking stage. Note: there's still an issue with how `libOSRM.a` gets build. CMake currently passes the linker flags on to ar, in order to create a static library. But ar does not understand the linker's flags. Referenes: - https://sourceware.org/binutils/docs/ld/Options.html#Options - http://elinux.org/images/2/2d/ELC2010-gc-sections_Denys_Vlasenko.pdfMCþ" - http://www.cmake.org/cmake/help/v3.0/variable/CMAKE_EXE_LINKER_FLAGS.html - http://www.cmake.org/cmake/help/v3.0/variable/CMAKE_MODULE_LINKER_FLAGS.html - http://www.cmake.org/cmake/help/v3.0/variable/CMAKE_SHARED_LINKER_FLAGS.html - http://www.cmake.org/cmake/help/v3.0/variable/CMAKE_STATIC_LINKER_FLAGS.html |
||
---|---|---|
algorithms | ||
benchmarks | ||
cmake | ||
config | ||
contractor | ||
data_structures | ||
descriptors | ||
docker | ||
extractor | ||
features | ||
include/osrm | ||
library | ||
plugins | ||
profiles | ||
routing_algorithms | ||
scripts | ||
server | ||
test | ||
third_party | ||
tools | ||
unit_tests | ||
util | ||
.clang-format | ||
.clang-tidy | ||
.gitignore | ||
.gitmodules | ||
.travis.yml | ||
appveyor-build.bat | ||
appveyor.yml | ||
build-local.bat | ||
CMakeLists.txt | ||
datastore.cpp | ||
Doxyfile.in | ||
extract.cpp | ||
Gemfile | ||
Gemfile.lock | ||
LICENCE.TXT | ||
prepare.cpp | ||
profile.lua | ||
Rakefile | ||
README.md | ||
routed.cpp | ||
taginfo.json | ||
typedefs.h |
About
The Open Source Routing Machine is a high performance routing engine written in C++11 designed to run on OpenStreetMap data.
Current build status
build config | branch | status |
---|---|---|
Linux | master | ![]() |
Linux | develop | ![]() |
Windows | master/develop | |
LUAbind fork | master | ![]() |
Building
For instructions on how to build and run OSRM, please consult the Wiki.
To quickly try OSRM use our free and daily updated online service
Documentation
See the Wiki's server API documentation as well as the library API documentation
References in publications
When using the code in a (scientific) publication, please cite
@inproceedings{luxen-vetter-2011,
author = {Luxen, Dennis and Vetter, Christian},
title = {Real-time routing with OpenStreetMap data},
booktitle = {Proceedings of the 19th ACM SIGSPATIAL International Conference on Advances in Geographic Information Systems},
series = {GIS '11},
year = {2011},
isbn = {978-1-4503-1031-4},
location = {Chicago, Illinois},
pages = {513--516},
numpages = {4},
url = {http://doi.acm.org/10.1145/2093973.2094062},
doi = {10.1145/2093973.2094062},
acmid = {2094062},
publisher = {ACM},
address = {New York, NY, USA},
}