osrm-backend | Open Source Routing Machine - C++ backend | Map library
kandi X-RAY | osrm-backend Summary
kandi X-RAY | osrm-backend Summary
Open Source Routing Machine - C++ backend
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of osrm-backend
osrm-backend Key Features
osrm-backend Examples and Code Snippets
Community Discussions
Trending Discussions on osrm-backend
QUESTION
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:
...ANSWER
Answered 2022-Jan-11 at 08:08So here is my working Dockerfile
QUESTION
These lines of codes create a local http server, I want it in https (self cert)
...ANSWER
Answered 2021-Oct-11 at 09:02osrm-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.
QUESTION
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.
Thanks!
...ANSWER
Answered 2020-Dec-06 at 07:51As 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 :-
QUESTION
I understand that I can load traffic data into OSRM via osrm-contract:
https://github.com/Project-OSRM/osrm-backend/wiki/Traffic
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?
Thanks
...ANSWER
Answered 2020-Sep-22 at 14:21Unfortunately, it looks like OSRM does not support it at this time.
Valhalla may be a better option:
https://valhalla.readthedocs.io/en/latest/thor/simple_traffic/
QUESTION
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
...ANSWER
Answered 2020-Mar-11 at 18:10Just 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.
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.
QUESTION
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.
ANSWER
Answered 2020-Feb-03 at 17:11It seems there is currently a problem with the osrm demo service. Check the issues below:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install osrm-backend
Contraction Hierarchies (CH)
Multi-Level Dijkstra (MLD)
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page