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
19
votes
2 answers

Find locations with the same travel time to a destination: Heatmap/Contours based on transportation time (Reverse Isochronic Contours)

Note: Solutions in r or python are desired. I am trying to draw contours based on transportation time. To be more clear, I want to cluster the points which have similar travel time (let's say 10 minute interval) to a specific point (destination) and…
M--
  • 25,431
  • 8
  • 61
  • 93
9
votes
2 answers

How can i plot multiple isochrone polygons using OSRM in R?

I have successfully managed to recreate the drive time polygon in R using This Example Post The above post only deals with ONE single polygon with isochrones Problem - I want to plot MULTIPLE drive time polygons on 5 different map points I have…
mojo3340
  • 534
  • 1
  • 6
  • 27
9
votes
1 answer

How to decode encoded polylines from OSRM and plotting route geometry?

I'm using an instance of OSRM (OpenStreetMap Routing Machine) to evaluate distance and time from different points. Using the API, I can retrieve information that I want and need especially the real route as a polyline. Until today, I have plotted…
Aman Gast
  • 387
  • 1
  • 5
  • 11
8
votes
3 answers

How to create animation of vehicle moving form A to B along a route?

below is an example of finding route, travel time and travel distance from 'One World Trade Center, NYC' to 'Madison Square Park, NYC' using osrm package in R. (I learnt it from Road Routing in R). The travel time here is 10.37 minutes. I wanted to…
SiH
  • 1,378
  • 4
  • 18
8
votes
1 answer

Routing using OSRM for multiple profiles - does profile in the URL actually do anything?

With ORSM there are 3 profiles for different modes of transport, cycle, foot and car. These come with OSRM. According to the following post which was made 1 year ago, OSRM does not support multiple profiles: OSM routing (OSRM): do I need to…
Single Entity
  • 2,925
  • 3
  • 37
  • 66
8
votes
1 answer

How to compute single source shortest paths with OSRM?

I've been playing around with the OSRM routing library recently. It seems to be highly efficient at solving the shortest path problem. However, I didn't see how to compute single source shortest paths with it. More precisely, given a fixed starting…
Philipp Claßen
  • 41,306
  • 31
  • 146
  • 239
7
votes
3 answers

"[error] Input file not found!" Docker OSRM

I will preface this by saying I am a newbie. Nonetheless, I am trying to run OSRM with Docker. I have tried to run the first OSRM backend docker command they list on their github: docker run -t -v "${PWD}:/data" osrm/osrm-backend osrm-extract -p…
7
votes
1 answer

OSRM Extract Silently Fails

I'm trying to setup a OSRM backend server using Docker. The host machine is a MacBook Pro with 32GB RAM running OS 10.14 (Mojave). Having downloaded the england-latest.osm.pbf file I've tried to start the process with the following command. docker…
7
votes
1 answer

OSRM giving wrong response for distance between 2 points

I am trying to get distance between two geo locations through projects-osrm. through python. import requests source_coordinates = '18.21231,42.50830;' dest_coordinates = '18.20971,42.50075' url = …
Shubham R
  • 7,382
  • 18
  • 53
  • 119
6
votes
2 answers

Merge and plot multiple isochrones

What I like to do I like to plot isochrones from multiple locations on a map so I can visually find the travel time from an arbitrary town to the closest location. It should look like a kernel density 2D…
Birger
  • 1,111
  • 7
  • 17
6
votes
1 answer

Calculating driving distance between places

I have managed to get an autocomplete function to a form input with Maptiler API (OSMNames) (since I find Google Maps API even more confusing). So here comes the actual problem, I would like to get the driving distance between two places I entered…
6
votes
3 answers

Plotting Multiple Routes with OSMNx

I am using OSMNx to plot shortest path routes and I cannot figure out a way to plot multiple routes on the same map. Here's my code so far, route_list = [] for i in range(len(pick_drop_outliers_ratio)): coords =…
Klaus
  • 1,641
  • 1
  • 10
  • 22
6
votes
1 answer

How to use external data in an OSRM profile

It this Mapbox blog post, Lauren Budorick shares how they got working a routing engine with OSRM that uses elevation data in order to give cyclists better routes... AMAZING! I also want to explore the potential of OSRM's routing when plugging in…
p4bloch
  • 267
  • 1
  • 7
5
votes
2 answers

Problem extracting OSRM data using Docker

I am trying to extract OSRM data but having troubles. In a previous question (lua error when trying to extract osrm data), I was encountering an error. So I am not trying to do the same thing except with Docker. I am using a newer Mac with a Silicon…
bill999
  • 2,147
  • 8
  • 51
  • 103
5
votes
0 answers

create animation of vehicle moving along a route "with timeline of events"

This is a followup question on How to create animation of vehicle moving form A to B along a route?. I could learn how to animate vehicles moving from A to B along the route. Thanks for the help! But is it possible to make a self explanatory video…
SiH
  • 1,378
  • 4
  • 18
1
2 3
16 17