osrm-backend | Open Source Routing Machine - C++ backend | Map library

 by   Project-OSRM C++ Version: v5.27.1 License: BSD-2-Clause

kandi X-RAY | osrm-backend Summary

kandi X-RAY | osrm-backend Summary

osrm-backend is a C++ library typically used in Geo, Map applications. osrm-backend has no bugs, it has no vulnerabilities, it has a Permissive License and it has medium support. You can download it from GitHub.

Open Source Routing Machine - C++ backend

            kandi-support Support

              osrm-backend has a medium active ecosystem.
              It has 5478 star(s) with 2948 fork(s). There are 224 watchers for this library.
              It had no major release in the last 12 months.
              There are 871 open issues and 3481 have been closed. On average issues are closed in 122 days. There are 37 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of osrm-backend is v5.27.1

            kandi-Quality Quality

              osrm-backend has 0 bugs and 0 code smells.

            kandi-Security Security

              osrm-backend has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              osrm-backend code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              osrm-backend is licensed under the BSD-2-Clause License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              osrm-backend releases are available to install and integrate.
              Installation instructions, examples and code snippets are available.
              It has 19911 lines of code, 2820 functions and 334 files.
              It has high code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of osrm-backend
            Get all kandi verified functions for this library.

            osrm-backend Key Features

            No Key Features are available at this moment for osrm-backend.

            osrm-backend Examples and Code Snippets

            No Code Snippets are available at this moment for osrm-backend.

            Community Discussions


            OpenStreetRoutingMap Docker
            Asked 2022-Jan-11 at 08:08

            I am trying to build a docker that imports the OSRM backend server, but then immediately imports and extracts the correct osm.pbf file. Now I am somehow not getting anywhere. My Dockerfile so far:



            Answered 2022-Jan-11 at 08:08

            So here is my working Dockerfile

            Source https://stackoverflow.com/questions/70135716


            How to run osrm in https using docker
            Asked 2021-Oct-11 at 09:02

            These lines of codes create a local http server, I want it in https (self cert)



            Answered 2021-Oct-11 at 09:02

            osrm-backend is a development server and does not support TLS. You should either run it behind reverse TLS proxy like nginx or use different server. See this thread for the additional information.

            Source https://stackoverflow.com/questions/69520779


            How to write a file to the host in advance and then start the Docker container?
            Asked 2020-Dec-10 at 06:52

            My task is to deploy a third-party OSRM service on Amazon ECS Fargate.

            For OSRM docker at startup, you need to transfer a file containing geodata.

            The problem is that Amazon ECS Fargate does not provide access to the host file system and does not provide the ability to attach files and folders during container deployments.

            Therefore, I would like to create an intermediate image that, when building, saved the file with geodata, and when starting the container, it would use it when defining volumes.




            Answered 2020-Dec-06 at 07:51

            As I understand it, Amazon ECS is a plain container orchestrator and does not implement docker swarm, so things like docker configs are off the cards.

            However, you should be able to do something like this :-

            Source https://stackoverflow.com/questions/65159049


            OSRM Traffic Prediction
            Asked 2020-Sep-22 at 14:21

            I understand that I can load traffic data into OSRM via osrm-contract:

            However, I want to perform a routing by time of day and day of week in the future. Eg:

            • From A to B next Wednesday at 8am
            • From A to B next Wednesday at 2pm
            • From A to B next Saturday at 8am

            So I want it to consider rush hour, weekend traffic, etc.

            I have lots of historical GPS data across cities that can be used to create the CSV file specified above for osrm-contract. However, it assumes traffic is the same across all days/hours and I need to have different "traffic profiles".

            I thought about creating multiple different extractions with varying traffic patterns. Eg:

            • Weekday morning traffic
            • Weekday afternoon traffic
            • Weekday evening traffic
            • Weekend morning traffic
            • Weekend afternoon traffic
            • Weekend evening traffic

            This would need 6 running instances of OSRM though.

            Is there a better way to do this?




            Answered 2020-Sep-22 at 14:21

            Unfortunately, it looks like OSRM does not support it at this time.

            Valhalla may be a better option:

            Source https://stackoverflow.com/questions/63995717


            Running OSRM docker on remote machine
            Asked 2020-Mar-11 at 18:10

            I am trying to run OSRM docker on remote machine. I followed setup instructions which are mention on https://github.com/Project-OSRM/osrm-backend



            Answered 2020-Mar-11 at 18:10

            Just posting an answer based on my comment to explain the firewall scopes when working with GCE instances.

            The Linux/Windows firewall rules (iptables, firewalld, etc.) will work at operating system level. However, consider that the instance itself exists within a VPC, which operates its own firewall rules.

            This means that if you have an incoming request, it'll hit the VPC first before getting into the instance. This means that you need to manage traffic at GCE firewall level separately from your OS firewall.

            The VPC firewall also controls traffic going from the instance to the internet and from instance to instance:

            Firewall rules apply to both outgoing (egress) and incoming (ingress) traffic in the network. Firewall rules control traffic even if it is entirely within the network, including communication among VM instances.

            At the end, you have to consider configuring rules in both places to avoid this type of scenarios.

            Source https://stackoverflow.com/questions/60599066


            OSRM Table API not returning distance
            Asked 2020-Feb-03 at 17:11

            I am trying to get the distance matrix for my desired locations. As mentioned in the OSRM-Table Service docs, I have tried modifying the same as http://router.project-osrm.org/table/v1/driving/13.388860,52.517037;13.397634,52.529407;13.428555,52.523219&annotations=distance. Response is showing error as:

            { "message": "Coordinate is invalid: 13.397634,52.529407&annotations=distance,duration", "code": "InvalidInput" }

            but, when I run it without annotations, then I am able to get the proper response.



            Answered 2020-Feb-03 at 17:11

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network


            No vulnerabilities reported

            Install osrm-backend

            The easiest and quickest way to setup your own routing engine is to use Docker images we provide.
            Contraction Hierarchies (CH)
            Multi-Level Dijkstra (MLD)


            Hosted documentationosrm-routed HTTP API documentationlibosrm API documentation
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
          • HTTPS


          • CLI

            gh repo clone Project-OSRM/osrm-backend

          • sshUrl


          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link