Questions tagged [open-source-routing-machine]

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

Filter by
Sorted by
Tagged with
7 votes
1 answer
6k views

How can I increase limits of OSRM table function?

I want to generate a distance matrix for more than 50 points with my own OSRM server. Because I want to minimize the number of calls, I decided to increase the size of the query from 50 to 100 or even ...
Xavier Ruiz's user avatar
7 votes
1 answer
3k views

Query for WAY that connects two INTERSECTIONS

I'm trying the retrieve the "WAY", that passes two given "INTERSECTIONS". What I do is query for the NODE, that intersects the INTERSECTION using the locations of this ...
Erwin Poeze's user avatar
5 votes
2 answers
4k views

Unencoding JSON output from OSRM

I set up Open Source Routing Machine (OSRM). The documentation does a pretty good job of laying everything out and I was able to get a server set up and running on my machine. My question is about ...
kevinaskevin's user avatar
5 votes
3 answers
4k views

Using custom data in OSRM

I have my own routing server that uses OSRM as an routing engine. (I used this toturial.) I want to be able to add my own data (roads) and include that data in the routing. So in the beginning I ...
Shmuli's user avatar
  • 51
5 votes
2 answers
10k views

Adjust leaflet routing machine draw (animate) route speed

I use leaflet routing machine and it's working fine with me. Here is my code: <!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width" /> <...
AHMAD EZZAT's user avatar
5 votes
3 answers
3k views

Using OSRM with big queries?

I am experimenting with table service, the first restriction I thought about is the URL query length, as it work by http get request. I need to send 5000 location, considering location is 35 ...
simo's user avatar
  • 151
4 votes
1 answer
452 views

Retrieve map matched ways (and not just nodes) using OSRM and Overpass API

For my question I have prepared a jsFiddle demo requiring you to click at the map 5 times: If I understand this correctly, the OSRM does not care about ways. It only cares about nodes and their ...
Alexander Farber's user avatar
4 votes
2 answers
2k views

Identify OSM road ids based on coordinates

I have a trace of GPS coordinates. I would like to get the OSM road ids of the roads that lie on the route defined by the coordinates. I've used OSRM match service to match the coordinates to the ...
poroale's user avatar
  • 41
3 votes
1 answer
4k views

TooBig: Increasing OSRM # of coordinates

I'm trying to plan out a very specific route using OSRM. I have 100 coordinates & now I'm running into this error. Too many trip coordinates. Is there a way to increase the number of coordinates ...
Justin Young's user avatar
3 votes
1 answer
3k views

OSRM doesn't show actual route while plotting from osrm-backend JSON response

While trying to test routing using OSRM Demo server I sent GET request with the following url: http://router.project-osrm.org/route/v1/driving/90.4007354,23.7936502;90.3925568,23.7746739?steps=true ...
Fazle Rabbi's user avatar
3 votes
1 answer
1k views

OSRM 4.8 import planet-latest.osm.pbf 31G

I use OSRM version 4.8. My VM configuration: 16 CPU 64 RAM 150G SWAP 150G stxxl disk size 250G data directory 50G root When I import Europe-latest (17Gb) file - it takes about 6 hours to start ...
jfacow's user avatar
  • 31
3 votes
1 answer
398 views

How can I debug OSRM?

I am trying to map match GPS traces onto waterways using the Open Source Routing Machine (OSRM). I have a working set-up, but for some reason some waterways are not being map matched to, eventhough ...
Saaru Lindestøkke's user avatar
3 votes
1 answer
746 views

OSM pbf from Geofabrik call with bounding box

I want to use a limited area within a geofabrik dataset. I am wondering if I can use a wget call with a boundig box limitation. e.g. something like this. wget http://download.geofabrik.de/europe/...
shitathakin's user avatar
3 votes
1 answer
585 views

How use height tag data in Project-OSRM?

I am using Project-OSRM in my project . All is works . But I need use elevation data. Downloaded osmosis master . And SRTM plugin added to osmosis. Also this worked fine . SRTM plugin started and I ...
Sarkhan's user avatar
  • 31
2 votes
1 answer
10k views

OSRM Routing in Openlayers 3

I'd like to implement routing on my map using OSRM and Openlayers 3 but there don't seem to be any examples or tutorials anywhere. Everyone seems to be utilising Leaflet for this as there is a plugin ...
dvmac01's user avatar
  • 1,055
2 votes
1 answer
2k views

Using OSRM to create isochrones in R potentially problematic at < 10 minutes drive time?

I'm working on creating isochrones in R using osrm, and I keep finding problems with 0-10 minute travel times. Here's some code I've been using to test with a hand-picked test location: install....
Harry Chiti's user avatar
2 votes
2 answers
3k views

OSRM server for public transport not a trip on roads by cars

I implemented the OSRM server for routing but I want the path of a person using the public transport lines (Bus) ; instead of getting the road path. On building the OSRM from the pbf file I used the ...
Rabie Ben's user avatar
  • 1,216
2 votes
1 answer
5k views

Connecting own OSRM server on leaflet routing machine?

I have my OSRM running on UBUNTU. How do I change the demo server of routing machine to my own OSRM server on Leaflet?
Rabie Ben's user avatar
  • 1,216
2 votes
1 answer
433 views

Calculate the correct OSRM route distance in OpenLayers?

I extended this helpful fiddle by Jonatas Walker https://jsfiddle.net/jonataswalker/079xha47/ by a route distance output. Here's the JS Code used: var points = [], msg_el = document.getElementById('...
winnewoerp's user avatar
  • 1,508
2 votes
1 answer
111 views

Nodes returned by OSRM map match service not found in the PostGIS database

The call to OSRM map matching returns a list of nodes: {"code":"Ok","matchings":[{"confidence":0.000854076,"geometry":{"coordinates":[[8....
Alexander Farber's user avatar
2 votes
1 answer
2k views

OSRM: no walking directions

I am using the OSRM 'match' service to snap GPS coordinates to the road network. I want to use the 'foot' profile, however, the OSRM server insists on providing me with car routing. I send this ...
treecon's user avatar
  • 183
2 votes
1 answer
349 views

Osmium and OSM: Remove a relation from .pbf map file

I am trying to use osmium to remove a relation from a .pbf file (specifically the Denmark extract from Geofabrik)1. The relation is part of a cycle network. I essentially want to calculate routing ...
lenlen's user avatar
  • 63
2 votes
1 answer
98 views

Fire department coverage (voronoi equivalent)

I have a dataset of fire stations within an area. I would like to divide that area up into segments whereby each fire station covers a segment. This should be based on driving time. e.g. if I have 2 ...
Chris Evans's user avatar
2 votes
0 answers
296 views

OSRM Isochrone - straight/square edges

I am calculating 1 hour cycling distance using osrmIsochrone in R and Docker. I have noticed that the polygons have square/straight edges. (see below example) Increasing the res even to high values (...
lenlen's user avatar
  • 63
2 votes
0 answers
88 views

OSRM-extract Sorting edges by start seems to stop

I try to use planet-latest.osm.pbf (2018-05-23) from https://planet.openstreetmap.org/pbf/. I extract the pbf file on Ubuntu 16.04 and everything seems OK until Sorting edges by start ... On ...
phenric's user avatar
  • 121
2 votes
1 answer
2k views

Create my own OSRM for routing machine on leaflet [duplicate]

I am implementing the routing machine wich is leaflet extension for routing analysis but by default the routing in routing machine is for demo based on OSM data.I want my own route ;How I do to build ...
Rabie Ben's user avatar
  • 1,216
1 vote
2 answers
785 views

Trying to build OSRM: Could NOT find OSMPBF

I am trying to build OSRM on a Ubuntu system (14.04 LTS, up-to-date, 64 bit), but I am getting a "Could NOT find OSMPBF" error. First I followed the Ubuntu 14.04 instructions on the Building on ...
winwaed's user avatar
  • 1,314
1 vote
1 answer
2k views

OSRM foot / walking profile avoiding trunk roads

I have setup OSRM backend and frontend using profiles/foot.lua aka walking profile. The routing works well untill a trunk road (OSM tag: highway=trunk) comes along or between the origin and ...
Nikhil VJ's user avatar
  • 1,016
1 vote
1 answer
2k views

Full address from OSM data

I've built a routing application in C# that brings back a route object, with a series of steps, each of which has a name tag such as "Brooke Street (M50)" and nothing more. This application has been ...
James Gould's user avatar
1 vote
3 answers
1k views

Geocode free APi for internal application [closed]

I need opinions / experienced use on this issue: Which API can be used to geocode an internal application of a company that meets these requirements: Can be used for company internal application ...
csf's user avatar
  • 989
1 vote
1 answer
3k views

Is there a way to use OSRM with PostGIS

Is there a way to use OSRM with PostGIS (Windows)? Related: Why mobile routing is so fast?
Magno C's user avatar
  • 2,120
1 vote
1 answer
328 views

How to workaround OSRM map match {"message":"Too many trace coordinates","code":"TooBig"}

I have created a web page to test OSRM map match service (running locally in the latest osrm/osrm-backend docker image), before starting to integrate it into my app. And when sending just 4 locations (...
Alexander Farber's user avatar
1 vote
1 answer
147 views

Is it possible to use OSRM in order to calculate routing into a building?

I would like to know: If we save in the OSRM server a dataset of points stored from a GPS tracker into a building (a flat one). Is it possible to request the server in order to find the shortest way ...
DimitriLahaye's user avatar
1 vote
2 answers
1k views

Service Area or Catchment Area in R

I'm trying to find an R package to duplicate a specific bit of functionality of the ESRI network analyst: What ArcMap refers to as 'Service Areas'. Related terms include catchment areas isochrones '...
Mox's user avatar
  • 1,036
1 vote
1 answer
1k views

Generating route from user's current location to desired location on web map created in QGIS?

I am developing a GIS in QGIS and I want to get the user's current location, then according to the user's second point selection, I want to generate a route between these two points. If possible, I ...
Farai Mugaviri's user avatar
1 vote
1 answer
921 views

OSRM Map Matching Output explanation [closed]

I am trying to understand why the output includes None in tracepoints. What do these mean? [None, None, None, {u'waypoint_index': 0, u'name': u'West Washington Street', And then the algorithm ...
babygrogu's user avatar
1 vote
1 answer
254 views

Routing Engine / data for hiking trails (Austria)

I currently use OSRM for the routing in my apps. This works well for car/truck routing. However, I have an upcoming project that requires routing on hiking trails as well. Are there any available ...
Chris's user avatar
  • 291
1 vote
1 answer
486 views

Can I import my own data and Dijkstra function in Open Trip Planner or Open Source Routing Machine

I have a lot of geographical proprietary data that I want to use in routing algorithms. I was using pgRouting, but the requirements of the software changed (now includes multi-modal routes that ...
tvieira's user avatar
  • 331
1 vote
1 answer
1k views

set up transport modes osrm

I wondered if anyone could help. I have setup osrm on a spare computer it is running on Ubuntu 14. It works fine and I can query it using the default car setting for transport. I would like to be able ...
bill's user avatar
  • 11
1 vote
1 answer
390 views

min function not found compiling osrm

I'm trying to compile OSRM in a Xubuntu 12.04 virtual machine following these instructions. I had some problems installing boost (a requisite) and I compiled it manually. The error is this: /home/...
Jorge Arévalo's user avatar
1 vote
0 answers
471 views

How to get way ids from the OSRM map matching service

Calling OSRM map matching returns coordinates and nodes: {"code":"Ok","matchings":[{"confidence":0.000854076,"geometry":{"coordinates":[[8....
Alexander Farber's user avatar
1 vote
0 answers
140 views

Lua error when trying to extract OSRM data

I am using a newer MacBook Pro with a Silicon chip. Following the example here (https://github.com/stanfordfuturebay/osrm-local), I am trying to extract data downloaded from https://download.geofabrik....
bill999's user avatar
  • 125
1 vote
0 answers
272 views

Activating 'on click' event on the path created by router in Leaflet?

I have some points retrieved from the database, and with them, I draw and create my path and markers. I would like that when the user adds another marker to the route, a click event is activated. I ...
Douglas F's user avatar
1 vote
0 answers
170 views

R OSRM Iso giving Error

I'm trying to run osrmIsodistance and osrmIsochrone and keep getting the same error when I type a negative coordinate, been looking for an answer but couldn't find it. This is the code I'm running. ...
Gonzalo's user avatar
  • 11
1 vote
0 answers
96 views

OSRM ignoring roads without empty names

I want to ignore all roads that have an empty 'name' field when running match in OSRM. I have looked through the documentation, including the profiles, and cannot seem to figure it out. Is this ...
Sophie's user avatar
  • 11
1 vote
0 answers
155 views

Find corresponding OSM ways to a set of coordinates

I'm currently building a routing application that is based on the Open Source Routing Machine (OSRM), which uses OSM data. For the routes i am trying to generate elevation profiles using SRTM data. So ...
Theo's user avatar
  • 11
1 vote
0 answers
60 views

Add routing control to another div instead of map in Leaflet [duplicate]

I have a React app which shows bike stations on a Leaflet map. If the user clicks the station, it routes the user to that station (Leaflet routing machine). How can I add routing control div to ...
Saidamir's user avatar
1 vote
0 answers
497 views

OSRM Contract with multiple input OSM files stalling

I received multiple shapefiles for USA states map data split into different groups of states. Approach - 1: I can't merge multiple shapefiles and merge into a single .osm file because it's exceeding ...
KFC's user avatar
  • 111
1 vote
1 answer
2k views

Getting Leaflet routing control result outside map in a div or table [closed]

All of the examples of Leaflet routing control display the result (iterenary) inside the map area. I want to display it outside in a div or table element. There is ItineraryBuilder in the API but no ...
neogeomat's user avatar
  • 8,370
1 vote
1 answer
481 views

Issue with osrmIsochrone function in R

I have been using osrm package for a while and didn't ever come across this kind of issue before. It looks so weird and I have been trying to update package and reinstall R as well. But nothing is ...
Dinesh's user avatar
  • 267