Questions tagged [osrm]

Open Source Routing Machine is a high performance routing engine written in C++11 designed to run on OpenStreetMap data.

Open Source Routing Machine computes shortest paths in a graph. It was designed to run well with map data from the OpenStreetMap Project.

250 questions
2
votes
1 answer

How to simply compute the travel time from one point to an other? (Without a plot)

I spent a lot of time reading and testing the example notebooks of OSMnx but I couldn't figure out a way to simply calculate the travel time from a given point (GPS coordonates) to an other one. I would like to estimate, for each point from my list,…
Trag0
  • 25
  • 1
  • 6
2
votes
2 answers

R OSRM: Error in doTryCatch(return(expr), name, parentenv, handler): object 'res' not found

Trying to do a simple isochrone using the osrm package in R, following this example: https://rstudio-pubs-static.s3.amazonaws.com/259089_2f5213f21003443994b28aab0a54cfd6.html iso1 <- osrm::osrmIsochrone(loc=c(-93.2223, 44.8848),breaks=10) Yields the…
Ralph Asher
  • 192
  • 9
2
votes
1 answer

R igraph: Finding shortest path in igraph, adding weight to it and search for alternative

i play around with https://rdrr.io/rforge/osmar/src/demo/navigator.R (Navigator Demo). I would like to find several paths insted of just one. It seems i can not use the function all_simple_paths since it will never terminate. Would it be possible…
Andreas
  • 397
  • 4
  • 18
  • 37
2
votes
2 answers

Server with osrm walk or foot profile for use in R?

Default server only runs the 'driving' profile, as per the documentation. To change the profile ("driving" is set by default and it is the only profile available on the demo server), use the osrm.profile option: options(osrm.profile =…
Mox
  • 511
  • 5
  • 15
2
votes
1 answer

Updating Traffic Information OSRM

I'm trying to utilize the experimental Traffic Updates feature on OSRM. I want to be able to supply updates to the duration/weight of an edge for nodes. Following the documentation, I created a .csv file with some updates called…
Jason Cromer
  • 1,468
  • 3
  • 11
  • 21
2
votes
1 answer

Local OSRM installation cannot find routes

I installed the osrm-backend locally, following this steps, but it is not working. https://github.com/Project-OSRM/osrm-backend/wiki/Running-OSRM When I visit the official .org site the data is loaded…
2
votes
1 answer

OSRM: Why is the traveltime of route A -> B a factor 2 off route's traveltime B -> A?

As said: it even differs by a factor of 2 in time! How is that possible? I found this issue but it seems it is still there? It turns out that the highway is only taken in on direction (See leaflet map from map_route. Do I miss anything? Here is a…
Christoph
  • 6,841
  • 4
  • 37
  • 89
2
votes
1 answer

OSRM: Server not responding

I am unable to get a valid response from my server (Ubuntu 16.04) at DigitalOcean after installing OSRM succefully. I have followed the instructions here: https://github.com/Project-OSRM/osrm-backend/wiki/Running-OSRM When running the…
xfscrypt
  • 16
  • 5
  • 28
  • 59
2
votes
0 answers

Error using osrmIsochrone in R rCarto/osrm

devtools::install_github("rCarto/osrm") library(osrm) iso <- osrmIsochrone(loc = c(1.300658, 103.839696), breaks = seq(from = 0,to = 30, by = 5)) Gives me the following error: Error in spTransform(xSP, CRSobj, ...) : error in pj_transform:…
geo
  • 65
  • 4
2
votes
1 answer

add local osrm sever to mapbox gl direction

I am going to use my local osrm server in order to do routing in a map based on mapbox GL. In mapbox-gl-directions.js there is a server part: var initialState = { api: 'https://api.mapbox.com/directions/v5/', profile:…
rahram
  • 560
  • 1
  • 7
  • 21
2
votes
1 answer

OSRM-backend returns distance:0

So, we have installed OSRM to our server and tested it for http://router.project-osrm.org/route/v1/driving/40.415225,49.855988;40.356182,49.828279?steps=true. Public demo server returns distance as expected. Unfortunately when requesting route from…
Farid
  • 2,317
  • 1
  • 20
  • 34
2
votes
1 answer

How to use OSRM match api in leaflet to draw a route?

I have some gps generated data during a drive. var routeArr = [{lng1, lat1}, {lng2,lat2}, {lng3, lat3}.....]; I want to show this generated data as actual route traveled on a Leaflet powered Openstreet map. My naive approach is to show a polyline…
Anant
  • 3,047
  • 2
  • 27
  • 33
2
votes
1 answer

OSM routing (OSRM): do I need to duplicate all data for different profiles?

I use OSRM and would like to allow the user to select from different routing profiles (e.g. car / foot). The documentation states that I can define the profile during the extract and prepare process. Does this mean that I have to run seperate…
Chris
  • 13,100
  • 23
  • 79
  • 162
2
votes
1 answer

Calculating the distance between two postcodes using OSRM

I've been looking at OSRM for distance calculations and essentially have the following query which does a distance calculation between two postcodes in the…
jmood
  • 77
  • 2
  • 9
1
vote
2 answers

Dereference of a possibly null reference despite checking that the value is not null in the Linq Where() call

I have prepared a simple C# Fiddle, which calls an OSRM map matching service URL and parses the JSON response. My problem is, that there is a line producing the warning CS8602: Dereference of a possibly null reference: if (osrmResponse?.code == "Ok"…
Alexander Farber
  • 21,519
  • 75
  • 241
  • 416