Skip to main content

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
0 votes
0 answers
87 views

I am facing a problem when mapping a route in which the bus should make a U-turn at Rua A (Recanto dos Lagos) at coordinates 21°42'34.6"S 43°19'49.7"W, but the route follows another street (...
Lara Dias's user avatar
2 votes
1 answer
848 views

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,759
1 vote
1 answer
1k views

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
4 votes
1 answer
991 views

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
2 votes
1 answer
215 views

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
1 vote
0 answers
885 views

Calling OSRM map matching returns coordinates and nodes: {"code":"Ok","matchings":[{"confidence":0.000854076,"geometry":{"coordinates":[[8....
Alexander Farber's user avatar
3 votes
1 answer
985 views

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
1 vote
0 answers
254 views

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
  • 127
0 votes
1 answer
455 views

How can I use a remote osrm server to calculate driving distances in the USA (or North America). If at all possible, I would really like to avoid having to set up my own local server. I am basing my ...
bill999's user avatar
  • 127
1 vote
0 answers
379 views

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
0 votes
0 answers
284 views

I have a basic Leaflet map (v1.7) <div id="map" class="map" style="width: 100%; height: 100%"></div> <script> // base map const map = L.map('...
Vincent Dc's user avatar
1 vote
0 answers
239 views

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
0 votes
0 answers
33 views

I am trying to create a route for a user based on a search of an area based on topography data. The criteria is an elevation property. E.G. a user can search an area and get a route based on elevation....
Antonio Pavicevac-Ortiz's user avatar
1 vote
0 answers
160 views

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
0 votes
0 answers
1k views

I'd like to change the Latitude and Longitude which make up a route. For example I have point A and point B the routing machine will create the coordinates and generate the details for the itinerary ...
Antonio Pavicevac-Ortiz's user avatar
1 vote
0 answers
199 views

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
3 votes
1 answer
1k views

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
0 votes
0 answers
1k views

We started to try the potential for OSRM but I have a question related to how is set the server. Those 2 queries: http://router.project-osrm.org/route/v1/foot/2.770657539367676,42.48209897188378;2....
Toucouleur's user avatar
1 vote
0 answers
62 views

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
  • 111
2 votes
0 answers
402 views

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
1 answer
538 views

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
0 votes
1 answer
529 views

I am trying to save few routes created by OSRM which is in Polyline or GeoJSON format in my PostGIS Database. How can I save the data in such a format which I can use to search with coordinates ...
Lijo John's user avatar
  • 101
1 vote
1 answer
175 views

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
0 answers
627 views

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

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,402
0 votes
1 answer
11k views

I am using leaflet-routing-machine with OSRM, How can I change OSRM server and do not use demo? I have the same warning: You are using OSRM's demo server. Please note that it is **NOT SUITABLE FOR ...
Miguel Herreros Cejas's user avatar
1 vote
1 answer
538 views

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
0 votes
1 answer
288 views

On calling API http://osrm.stackbox.xyz/table/v1/driving/78.4444076,11.6000205;78.5929274,11.5958152, I am getting a 2x2 matrix. When I put the same coordinates with some more co-ordinates like this: ...
shivankgtm's user avatar
3 votes
1 answer
3k views

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
1 vote
1 answer
785 views

How can I use OSRM to given a destination and 5 origins. Then OSRM should return the fastest origin, the distance between this origin and the destination and the duration of the route. Can I do it ...
Renato Junior's user avatar
0 votes
0 answers
806 views

I have a list of (lat,lng) coordinates. I want to map match them and get their corresponding OSM node ids? How can i do that using OSRM or any other map matching algorithm?
Filbadeha's user avatar
  • 109
0 votes
0 answers
322 views

I have RAW GPS trackers data, when I match those GPS coordinates to nearest NodeID, it gives me the No Match Error. I am using the following code snippet: import requests url = 'http://router....
Filbadeha's user avatar
  • 109
1 vote
1 answer
3k views

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,066
-1 votes
1 answer
668 views

Our company is searching for a routing service which provides free OSM database (high quality routing data) and preferably also considers the traffic parameters (traffic flow, day etc. similar to no-...
Mapos's user avatar
  • 607
1 vote
0 answers
3k views

I have a route between 2 points by means of OSM routing service. I want to get the distance between route and points around. How can I achieve this? I created this route by the following example ...
Abolfazl Mahmoodi's user avatar
1 vote
0 answers
42 views

I'm analyzing roads layer to create navigation layer. Each vector Linestring segment has direction of traffic. Turn defined as where 2 directional segments meet. However, I find it challenging to ...
michael's user avatar
  • 1,829
0 votes
0 answers
803 views

I had plotted the routes of some locations. The maximum number of locations allowed for routing using the OSRM package in R is 100 coordinate points. How can I extend beyond this restriction?
user7779697's user avatar
1 vote
2 answers
1k views

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
0 answers
805 views

I am using leaflet routine machine to get a route between 2 points. I want to be able to draw an invisible polyline around the route and use this as a geofence and if the user goes out of the bounds ...
larry chambers's user avatar
0 votes
1 answer
2k views

I have installed Docker Desktop for Windows and I'm trying to extract the California PBF file. My Docker instance has 16 GB of RAM. Is more RAM needed to extract California? PS D:\Datasets\...
fnllc's user avatar
  • 225
0 votes
1 answer
1k views

I am currently trying to use OSRM's Table service to get the durations of the fastest routes between two points, to be able to build a time matrix using Python and later use it as a parameter in an ...
monacroma's user avatar
5 votes
2 answers
11k views

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
4 votes
2 answers
3k views

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
2 votes
0 answers
104 views

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
1 vote
1 answer
1k views

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
0 votes
1 answer
1k views

I download a cartography bike from the open data data link to Postgres then I convert it to osm using: python ogr2osm.py "PG:dbname=x user=x host=localhost" --sql="SELECT * FROM bike_network" --...
Adil Blanco's user avatar
3 votes
1 answer
3k views

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
0 votes
1 answer
2k views

I'm trying to achieve some similar to Draw a polygon automatically through markers (points) in google maps but not exactly. Given a set of locations I'd like to know if it is possible to generate the ...
eestein's user avatar
  • 101
1 vote
1 answer
960 views

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 would ...
babygrogu's user avatar
0 votes
1 answer
1k views

Working for a client on a tracking package for delivery vehicles, I've been given an interesting requirement. Over the past several months, we've been collecting telemetry from the vehicles, ...
alzee's user avatar
  • 101