7

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 --help for a full list of options. If you're using someone else's OSRM server (such as the Project OSRM demo server), however, you're dependent on what options they ...


7

Solved by himself : Adding ?compression=false to the request query will output unencoded data. A proof that smeagol and gollum can work together. ( what is compression, my precious? )


6

When you get your route response (this is an encoded polyline) add it like so: // route is ol.geom.LineString var route = new ol.format.Polyline({ factor: 1e6 }).readGeometry(polyline, { dataProjection: 'EPSG:4326', featureProjection: 'EPSG:3857' }); var feature = new ol.Feature(route); feature.setStyle(styles.route); vectorSource.addFeature(...


6

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 roads for a trip OSRM Map matching service accepts a list of GPS positions, or some polyline and matches it to the corresponding OSM ways. This will be the first ...


5

The solution was launching the osrm-routed increasing the parameter --max-table-size with the desired size. osrm-routed --max-table-size=1000 map.osrm


4

Same problem - instructions on OSRM github are incomplete. I've fixed it by: sudo apt-get install libosmpbf-dev


3

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.


3

If you only want to use your own data, I would suggest writing a script that converts it to the OSM XML format. We have done this in the past with proprietary data sets and it works fine (albeit you might consider writing out the PBF format if the data size is very large). Merging OSM and non-OSM data is whole different story. That is nothing that can be ...


3

The costs you mention are from the Workshop (not the documentation and they are pretty much arbitrary. They were just set like this to give an example how to modify costs depending on road classes. OSRM defines its "costs" in the profile files in the profiles directory, for example for car: https://github.com/Project-OSRM/osrm-backend/blob/master/profiles/...


3

Instead of avoiding compression you can fix the real problem. If you have lots of points (which is the case for routing) and you send them as normal json numbers you have a big response and a problem. To reduce that size one could embed a binary form of the point list into the json. OSRM is doing this via googles algorithm, of course there are other ...


3

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 encoded using Google's polyline algorithm. If you want the route as GEOJSON linestring instead of the encoded polyline, add &geometries=geojson to your ...


3

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 highway=secondary which are suitable for cars.


3

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 data slightly. Real-time traffic is not contained in OSM and must always come from an external source. This is the tricky part. You can try to add traffic data ...


2

OSRM does not use a database, but tuned data structure that are sometimes (falsely) called index. The process to go from raw OSM data to actual query processing is a multi-step process, i.e. extract, prepare, route. As Mapperz said, it is possible to query a SQL data base for additional data during the extraction process. To query OSRM for routes from your ...


2

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 to 2,000 addresses per 24 hours, sign up for a free API key with bing maps (geocode 125,000 addresses per year) or you can use OpenStreetMap or OSM to I believe ...


2

You try to use the unstable version from the develop branch. We recently removed the dependency for OSMPBF.


2

The good way would be to Contribute your data to OSM so they would be included in the future osm extracts. If for some reason you cannot do that; Use data staging techniques. Download the extract somewhere, and call it source, duplicate source and add your extra nodes without breaking the topology, (OSM work in topological level if i remember correctly); ...


2

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 ships with OSRM. We usually run this on r3.4xlarge instances on AWS (120GB of memory). Please remember memory usage heavily depends on the profile that you use to ...


2

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 However, based on this comment I found in a thread in a different forum How setup for bus way? you may have this as a workaround. The profiles determine ...


2

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: new L.Routing.OSRMv1({ serviceUrl: url_to_your_service }) }).addTo(map);


2

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.


1

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 your own server with the OSRM software and OpenStreetMap data.


1

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.pbf source file somehow. Happily, support for route relations has just been added to OSRM. So as of the upcoming 5.13 release, or right now if you use master ...


1

This can be done with Dijkstra exploration of a graph, where you define multiple start locations and avoid overlapping. Regarding GraphHopper see this blog post


1

You can use OSRM for this purpose but you will require a hiking profile. The OSRM demo instance has just a car profile and won't do foot routing. However that's a limitation of this particular OSRM instance and not of the underlying OSM data. Alternatively just use a different online router. There are lots of different OSM-based routers available, many of ...


1

If OpenLayers is not a hard requirement there is https://github.com/perliedman/leaflet-routing-machine for Leaflet which support OSRM by default. Looking at the current OpenLayers plugins there seems to be none that supports the OSRM 5.x HTTP API. Which means you will need to write this yourself.


1

I can not talk about OTP, but OSRM works exactly that way, providing an .osm file where the routing will take place. Just have a look of the running instructions to getting a city up and running in 4 steps. Regarding multimodal, OSRM supports "partially" multimodal routing. You can specify that by a so-called profile, which is the way of personalized OSRM, ...


1

OSRM does not provide currently a public transportation feature. However, you can set different profiles as by foot or by bicycle by changing the routing profile. OSRM's routing profiles are located in the folder profiles of the Project-OSRM directory. You will find already there three profiles: bicycle.lua, car.lua and foot.lua. These profiles are written ...


1

You can use your own data with OSM data. Both have to be in OSM format. From my experience: This works when you want to combine OSM and custom data for neighbour regions. Little overlap in border areas is not a problem. For example when use OSM data for Europe countries/excluding Austria/ and custom data for Austria. For your custom data -> Use Id's in ...


1

Yep, thats about right. We haven't yet fully implemented outputting elevation profiles.


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