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
1
vote
2 answers

JsonSerializer.Deserialize returns an empty object with null properties

I try to parse a response by the OSRM map matching service using the following code (here a .NET Fiddle too; UPDATED with fixed version): namespace OsrmMapMatch { public class OsrmResponse { public string code; public…
Alexander Farber
  • 21,519
  • 75
  • 241
  • 416
1
vote
1 answer

Unable to purrr::map multiple sfc_point to osrmIsochrone function in R

Relatively new to purrr question: I'm walking through the great tutorial available here and have been successful up until it requires generating isochrones for each major trauma centre per the following provided code: mtc_iso <- major_trauma_centres…
donovki
  • 13
  • 3
1
vote
1 answer

Wrong geometry in OSRM

I sent GET request https://router.project-osrm.org/route/v1/car/polyline(gwgsIidrdF|w`s@urwK)?alternatives=3&steps=true&annotations=false&geometries=polyline&overview=simplified polyline(gwgsIidrdF|w`s@urwK) is equivalent of coordinates [{lat:…
1
vote
0 answers

Using OSRM backend in Docker for routing bicycles

I am currently setting up the OSRM routing backend in Docker as described in the Github Repository: https://github.com/Project-OSRM/osrm-backend Currently, the routing service is working successfully for routing cars (using the car.lua file) and I…
1
vote
0 answers

Is it possible to create a docker image within my own R package to be able to run an osrm-backend server?

I am trying to use osrm::osrmTable() function to calculate a driving time distance matrix in my user-defined R package. Since the demo server from osrm package has a limit of 1000 queries I want to bypass it by creating a backend instance of the…
1
vote
1 answer

How to send GET request longer than 65535 symbols from rust?

I am rewriting part of my API from python to rust. In particular, I am trying to make an HTTP request to OSRM server to get a big distance matrix. This kind of request can have quite large URLs. In python everything works fine, but in rust I get an…
Dimitrius
  • 564
  • 6
  • 21
1
vote
0 answers

OSRM Configure blocking hours for a specific road

i'm working with OSRM(Open Source Routing Machine) and ran into some problems. I want configure blocking hours for a specific road(like Grab) Ex: The street called Cau Giay block taxis from 4.00pm to 7.00pm code detail: function restrict(way,…
the rocket
  • 11
  • 2
1
vote
1 answer

How to speed up code that finds shortest driving time between two sets of points using osrm

Say that I have two sets of coordinates, A and B. My goal is, for each element of A, to find the element of B with the shortest driving time (retaining B's index, driving time, and distance). Based on the answer by @Ben in this question (Calculating…
bill999
  • 2,147
  • 8
  • 51
  • 103
1
vote
1 answer

Is it possible to start OSRM routing from pre-existing route?

I currently have a leaflet implementation that uses L.Routing.OSRMv1, and it allows me to get a route, modify it on the fly with waypoints, and then save it as a trip. This works fine, current implementation looks like that : var control =…
Sim
  • 45
  • 1
  • 7
1
vote
0 answers

Osmdroid how to move position marker in animative way with animateTo function

Im doing car navigation app based on Osmdroid and selfhosted OSRM and Nominatim. What im trying to archive right now is simply smooth position marker and map movement while driving. Second is simple, using animateTo function of osmBonudPack. First…
1
vote
1 answer

OSRM - Create Direction Link using current position

Here's what I'm trying to do. I have two lat, lngs. One is the target or the end point, the other is a stop. I'm trying to open a map in a browser that finds the route from a individual or the current location to the endpoint via the stop using…
agi
  • 23
  • 2
1
vote
1 answer

How can I create an OSRM file from geojson data?

I have a geojson datafile containing highway=footway paths, and I'd like to use OSRM to find routings between multiple points (i.e., not just the most efficient path from A to B, but something like the travelling salesman). From the OSRM…
Thibaut B.
  • 172
  • 1
  • 12
1
vote
1 answer

Error while multi threading API queries in Python

I'm performing queries in a server with Open Source Routing Machine (OSRM) deployed. I send a set of coordinates and obtain a n x n matrix of network distances over a streets network. In order to improve the speed of the computations, I want to use…
1
vote
1 answer

Can I get full address with OSRM Backend

I want to find one what can inteads of google api with cheap cost so that I can get city , postal code, lat long, neighborhood from address string. I researhed and found osrm backend. I built it in my local. But It not support to get full…
1
vote
0 answers

Wrong results in osrm self hosted API

Happy new year 2022! This is my first question I've implemented a setup of OSRM + Vroom in GCP (Google Cloud Platform) following the instructions described in this tutorial:…
Rafael C.
  • 11
  • 1