Hot answers tagged

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? )


4

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


4

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(...


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 ...


2

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 ...


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

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


2

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/...


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

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


1

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 ...


1

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 ...


1

Switch to a 64 bit kernel installation of Linux and your problems should be fixed.


1

Question A: How many requests can I send until I get blocked? There is not a fixed limit. It is recommended to use a valid user-agent that you register before hand. This way it is less likely to get blocked. So write an Email to OSRM (infoATproject-osrm.org), explain them what you want to do, and give them the name of your user-agent. In your python code ...



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