Skip to main content
10 votes
Accepted

TooBig: Increasing OSRM # of coordinates

If you're running your own instance of OSRM, you can set this in the arguments you pass to osrm-routed: --max-viaroute-size --max-trip-size --max-table-size --max-matching-size Use osrm-routed --...
Richard Fairhurst's user avatar
9 votes
Accepted

Query for WAY that connects two INTERSECTIONS

The following description assumes that you have a list of GPS positions, as well as the OSRM map matching service and Overpass API available. (1) Use OSRM Map Matching service to identify nearest ...
mmd's user avatar
  • 4,577
5 votes
Accepted

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

I think it is using the right point but is generalising the polygons differently. I tried comparing your isochrones up to 60 minutes: iso_orig <- osrmIsochrone(loc = c(locations$lon, locations$...
Spacedman's user avatar
  • 64.3k
4 votes
Accepted

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

The difference is that you plot only the intersections, whereas the OSRM Demo Server plots the whole route. To plot the whole route, use the geometry element in routes[0] in the JSON. The route is ...
Mesa's user avatar
  • 1,512
4 votes

Adjust leaflet routing machine draw (animate) route speed

I achieved this animation using only CSS. See the following tutorial: https://css-tricks.com/svg-line-animation-works/#article-header-id-7 (Note: the tutorial covers other interesting line animations ...
Ibra038's user avatar
  • 41
3 votes

OSRM foot / walking profile avoiding trunk roads

Modify foot.lua like so: speeds = Sequence { highway = { primary = walking_speed, primary_link = walking_speed, secondary = walking_speed, secondary_link = ...
Nikhil VJ's user avatar
  • 1,026
3 votes

OSM routing database with high quality data?

OSM data is typically always the same, independent of the provider or routing-engine. Routers can interpret this data in a different way and it is possible that providers will enhance / modify this ...
scai's user avatar
  • 6,185
3 votes
Accepted

OSRM how to use my own map

You have to change the used speed profile (defined in a .lua file) depending on the specific attributes of your edges/ways. By default, car.lua considers edges with common OSM attributes like ...
Mesa's user avatar
  • 1,512
3 votes
Accepted

Connecting own OSRM server on leaflet routing machine?

You have to configure the settings as mentioned here. so it would be like this L.Routing.control({ waypoints: [ L.latLng(57.74, 11.94), L.latLng(57.6792, 11.949) ], router:...
neogeomat's user avatar
  • 8,380
3 votes

Using OSRM with big queries?

You will need to set up your own instance of OSRM for a 5000x5000 input matrix. The hosted version at router.project-osrm.org only supports small matrices. When working with your own instance, you can ...
Richard Fairhurst's user avatar
3 votes
Accepted

Full address from OSM data

For obtaining the full address you have to use a geocoder such as Nominatim. There are other geocoders for OSM available, too. Also see your very similar question at help.openstreetmap.org.
scai's user avatar
  • 6,185
2 votes

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

64 RAM Yes this is not enough. The process is using a lot of swap memory making the pre-processing extremely slow. This takes about 6 hours on sufficiently sized machine for the car profile that ...
themarex's user avatar
  • 131
2 votes

Geocode free APi for internal application

This is the most comprehensive Python geocoding library I have came across. Easy install using Pip here is the link: https://pypi.python.org/pypi/geocoder/1.8.0 You can geocode with Google maps up ...
ziggy's user avatar
  • 4,516
2 votes

getting street distances locally

Set up a local instance of one of the OSM-based routers, e.g. GraphHopper or OSRM. Then just use their APIs. There should be python-bindings for the most popular routers available.
scai's user avatar
  • 6,185
2 votes

OSRM: no walking directions

The Project OSRM demo server only provides car directions. If you want walking directions, you can either use a third-party hosted service (such as that provided by Mapbox, who develop OSRM), or run ...
Richard Fairhurst's user avatar
2 votes
Accepted

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

Bus routes in OpenStreetMap are mapped with relations. Historically OSRM has not supported route relations, and so bus routing has not been possible unless you were prepared to pre-process the .osm....
Richard Fairhurst's user avatar
2 votes

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

As far as I'm aware, Bus is not an available parameter to be extracted via OSRM server. OSRM does not do transit routing. As mentioned here as well Routing of Public Transport based on GTFS #1961 ...
whyzar's user avatar
  • 12.1k
2 votes
Accepted

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

Your latitude and longitude are in the incorrect order. For example, this query works: http://router.project-osrm.org/table/v1/driving/-71.1936,-30.59464;-71.21342,-30.60386;-71.18429,-30.58654;-71....
alphabetasoup's user avatar
2 votes
Accepted

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

You need to specify the address of the routing server you're using as per the Leaflet Routing Machine tutorial: https://www.liedman.net/leaflet-routing-machine/tutorials/alternative-routers/ Routing ...
Richard Fairhurst's user avatar
2 votes
Accepted

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

It looks like you are using the wrong table. To obtain the node information you are looking for, you should be using the planet_osm_node table. Read more here.
Timothy Dalton's user avatar
2 votes

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

tl;dr: You can't, feasibly, and you shouldn't, really. But: If all you want is OSM way ids of ways that have been traversed at least partially, cross reference your list of input nodes (those sent to ...
geozelot's user avatar
  • 30.3k
2 votes
Accepted

Calculate the correct OSRM route distance in OpenLayers?

feature.getGeomentry().getLength() uses the units of the view projection (see respective section of the OpenLayers 7 API Documentation), which is Web Mercator (EPSG:3857) in the provided example. To ...
winnewoerp's user avatar
  • 1,504
1 vote

Service Area or Catchment Area in R

I'm not aware of an R package that does this in one simple step but some packages that may help are: dodgr Which can do routing over route networks within R opentripplanner Can interface with a ...
falcs's user avatar
  • 1,111
1 vote

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

When using PowerShell on Windows the proper command needs to have quotes around the paths: docker run -t -v "$(pwd):/data" osrm/osrm-backend osrm-extract -p "/opt/car.lua" "/data/california-latest....
fnllc's user avatar
  • 225
1 vote

Adjust leaflet routing machine draw (animate) route speed

It appears that there isn't a single way approach to achieve the outcome you are seeking. However, that are several ways that you may be able to have the change to adjust the speed of your route ...
whyzar's user avatar
  • 12.1k
1 vote

Identify OSM road ids based on coordinates

I suggest using Overpass API. You can test it at https://overpass-turbo.eu/ There you can find which ways are around certain coordinates. For example: [out:json]; way(around:50,-38.01261, -57....
José Bonadero's user avatar
1 vote

Identify OSM road ids based on coordinates

You can use route-annotator, which was developed for use with OSRM, to look up way data given a set of OSRM-generated coordinates: https://github.com/mapbox/route-annotator
Richard Fairhurst's user avatar
1 vote

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

As suggested by Mesa you can start by generating a route request which should provide you with an output json that you can parse to retrieve the route. You can then create a vector layer and add it to ...
pavankguduru's user avatar
1 vote

Generate polygon automatically based on locations

To create a box snapped to streets, take a street layer, make the polylines into polygons. Intersect your points with those polygons; merge those blocks together. If the blocks don't connect, create ...
Mox's user avatar
  • 1,036
1 vote
Accepted

OSRM Map Matching Output explanation

Referring to your second question: an empty street name is returned when the road where your original point snapped to has no name. In your example, the point is on a small service road without a name....
Mesa's user avatar
  • 1,512

Only top scored, non community-wiki answers of a minimum length are eligible