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
14 views

OSRM-backend routing gives exception bad access

I have installed the osrm-backend and included this in my C++ project. To test the library, I picked three lat/lon coordinates with Google Maps that are definitely connected to each other. When I try ...
user avatar
2 votes
1 answer
22 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/...
user avatar
0 votes
0 answers
56 views

OSRM API provides various results for route, is this server issue?

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....
user avatar
1 vote
0 answers
55 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 ...
user avatar
1 vote
0 answers
62 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 (...
user avatar
  • 53
2 votes
1 answer
41 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 ...
user avatar
  • 53
0 votes
0 answers
54 views

OSRM API response to frontend

I want to plot the steps or map from following API request to some frontend. http://router.project-osrm.org/trip/v1/driving/25.1733863,75.7769079;26.8851417,75.6504708;28.6466772,76.8130671?overview=...
user avatar
0 votes
1 answer
118 views

Storing route in PostGIS Database

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 ...
user avatar
  • 101
0 votes
0 answers
94 views

How to compute an n*n time matrix in R if n points with longitude and latitude is given?

The basic idea here is, I will provide a dataframe with name/id, longitude and latitude as input and will be able to generate a time matrix. osrmTable from the osrm package is doing the intended job ...
user avatar
0 votes
1 answer
51 views

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

I would to know : If we save in 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 from a ...
user avatar
1 vote
0 answers
174 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 ...
user avatar
  • 111
1 vote
1 answer
631 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 ...
user avatar
  • 8,119
0 votes
1 answer
4k views

How can I change OSRM server with leaflet-routing-machine

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 ...
user avatar
1 vote
1 answer
350 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 ...
user avatar
  • 267
0 votes
1 answer
75 views

OSRM giving different results

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: ...
user avatar
2 votes
1 answer
1k 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....
user avatar
0 votes
1 answer
191 views

Nearest / Fastest Point using OSRM

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 ...
user avatar
0 votes
0 answers
501 views

Get Corresponding OSM Node IDS from list of Lat,Long (CSV): Map Matching

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?
user avatar
0 votes
0 answers
140 views

{'code': 'NoMatch'} OSRM API: What does it mean? And how can I avoid it?

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....
user avatar
1 vote
1 answer
866 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 ...
user avatar
  • 901
-1 votes
1 answer
483 views

OSM routing database with high quality data? [closed]

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-...
user avatar
  • 481
1 vote
0 answers
2k views

Getting distance between route and points around that route?

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 ...
user avatar
1 vote
0 answers
28 views

Determine left/right based on headings of in & out legs

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 ...
user avatar
  • 1,679
0 votes
0 answers
467 views

How to increase capacity of osrmRoute in osrm package in R

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?
user avatar
1 vote
2 answers
605 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 '...
user avatar
  • 980
1 vote
0 answers
398 views

Draw a polyline around a route to act as geofence with leaflet routing machine [closed]

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

Extracting OSRM PBF file using Docker osrm/osrm-backend image?

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\...
user avatar
  • 225
0 votes
1 answer
821 views

OSRM Table service returns empty array when I use a HTTP Server

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 ...
user avatar
5 votes
2 answers
7k 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" /> <...
user avatar
3 votes
2 answers
1k 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 ...
user avatar
  • 31
2 votes
0 answers
55 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 ...
user avatar
  • 21
1 vote
1 answer
787 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 ...
user avatar
0 votes
1 answer
660 views

OSRM how to use my own map

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" --...
user avatar
3 votes
1 answer
2k 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 ...
user avatar
0 votes
1 answer
1k views

Generate polygon automatically based on locations

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 ...
user avatar
  • 101
1 vote
1 answer
682 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 ...
user avatar
0 votes
1 answer
646 views

Converting GPS track to turn by turn directions

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, ...
user avatar
  • 101
5 votes
3 answers
2k 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 ...
user avatar
  • 151
0 votes
1 answer
215 views

getting street distances locally [closed]

I need a few thousands of street distances between cities in germany. I know that there are a few web APIs where I get the distance thru a REST request, but I wonder if I can do that locally on my ...
user avatar
  • 109
1 vote
1 answer
1k 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 ...
user avatar
  • 173
2 votes
2 answers
2k 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 ...
user avatar
  • 1,084
2 votes
1 answer
4k 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?
user avatar
  • 1,084
1 vote
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 ...
user avatar
  • 1,084
0 votes
1 answer
2k views

how to draw route from start point to destination point with intermediate points on Open Source Routing Machine?

I have four points like this: Lat Log 43.532284 -6.060434 43.533880 -6.065279 43.534269 -6.067436 43.533484 -6.071405 If I put these points in Open Source Routing ...
user avatar
  • 111
7 votes
1 answer
2k 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 intersections (which is returned ...
user avatar
0 votes
1 answer
1k views

OSRM - trucks and cars routes should differ

I am working on logistic software that includes building routes by points given. So I've got my local OSRM server and it's working fine. But now I faced the problem of dividing vehicles into cars ...
user avatar
  • 3
1 vote
1 answer
82 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 ...
user avatar
2 votes
1 answer
3k 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 ...
user avatar
1 vote
1 answer
178 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 ...
user avatar
  • 291
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 ...
user avatar