2015-05-01 19:30:44 -04:00
## About
2013-07-31 07:04:04 -04:00
2015-05-01 19:30:44 -04:00
The Open Source Routing Machine is a high performance routing engine written in C++11 designed to run on OpenStreetMap data.
2013-07-31 07:04:04 -04:00
2015-05-01 19:30:44 -04:00
## Current build status
2016-04-22 08:49:27 -04:00
| build config | status |
|:-------------|:-------|
| Linux | [](https://travis-ci.org/Project-OSRM/osrm-backend) |
2016-06-01 13:22:31 -04:00
| Windows | [](https://ci.appveyor.com/project/DennisOSRM/osrm-backend) |
2016-05-11 16:45:07 -04:00
| Coverage | [](https://codecov.io/gh/Project-OSRM/osrm-backend) |
2015-05-01 19:30:44 -04:00
2016-07-28 05:01:51 -04:00
## Contact
- IRC: server `irc.oftc.net` , channel: `#osrm` (see: `https://www.oftc.net` , and for a webchat: `https://webchat.oftc.net` )
- Mailinglist: `https://lists.openstreetmap.org/listinfo/osrm-talk`
2015-05-01 19:30:44 -04:00
## Building
2013-07-31 07:04:04 -04:00
2015-05-01 19:30:44 -04:00
For instructions on how to [build ](https://github.com/Project-OSRM/osrm-backend/wiki/Building-OSRM ) and [run OSRM ](https://github.com/Project-OSRM/osrm-backend/wiki/Running-OSRM ), please consult [the Wiki ](https://github.com/Project-OSRM/osrm-backend/wiki ).
2013-07-31 07:04:04 -04:00
2015-05-01 19:30:44 -04:00
To quickly try OSRM use our [free and daily updated online service ](http://map.project-osrm.org )
2013-07-31 07:04:04 -04:00
2015-05-02 09:18:13 -04:00
## Documentation
2016-04-29 07:00:27 -04:00
### Full documentation
2016-04-29 06:20:51 -04:00
- [osrm-routed HTTP API documentation ](docs/http.md )
- [libosrm API documentation ](docs/libosrm.md )
2015-05-02 09:18:13 -04:00
2016-04-29 07:00:27 -04:00
### Quick start
Building OSRM assuming all dependencies are installed:
```
mkdir -p build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
cmake --build .
sudo cmake --build . --target install
```
Loading preparing a dataset and starting the server:
```
osrm-extract data.osm.pbf -p profiles/car.lua
osrm-contract data.osrm
osrm-routed data.osrm
```
Running a query on your local server:
```
2016-07-21 11:08:39 -04:00
curl http://127.0.0.1:5000/route/v1/driving/13.388860,52.517037;13.385983,52.496891?steps=true& alternatives=true
2016-04-29 07:00:27 -04:00
```
### Running a request against the Demo Server
First read the [API usage policy ](https://github.com/Project-OSRM/osrm-backend/wiki/Api-usage-policy ).
Then run simple query with instructions and alternatives on Berlin:
```
2016-07-21 11:08:39 -04:00
curl https://router.project-osrm.org/route/v1/driving/13.388860,52.517037;13.385983,52.496891?steps=true& alternatives=true
2016-04-29 07:00:27 -04:00
```
2013-07-31 07:09:25 -04:00
## References in publications
When using the code in a (scientific) publication, please cite
2013-07-31 07:12:25 -04:00
```
2013-07-31 07:09:25 -04:00
@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},
}
2013-07-31 07:12:25 -04:00
```
2013-07-31 07:09:25 -04:00