Skip to content

OSRM converter

Jaak Laineste edited this page Nov 30, 2017 · 1 revision

Preparing OSRM packages

The OSRM packages are used for legacy-routing within CARTO Mobile SDK. The packages are usually split by country (or state) and by routing profile (either 'car', 'foot' or 'bicycle'). The following steps describe how to convert packages for a specified profile from OSM Planet data.

At the very high level, building packages involves executing 3 steps in parallel: osrm-extract, osrm-prepare and osrm-convert.

Prerequisites

The conversion process for the whole planet requires considerable resources. Namely, at least 128GB of RAM is required to run the osrm-extract, osrm-prepare and osrm-convert steps. The conversion tools can be compiled both for Windows and Linux targets.

osrm-extract and osrm-prepare

These steps require the osrm-backend project from osrm-backend-nutiteq. Note that the latest official OSRM package WILL NOT WORK as the data files are not compatible between OSRM versions and osrm-convert (which is a separate project) depends on specific version.

The instructions for building and running the osrm-backend can be found in the project repository.

osrm-convert

This step uses the osrm-converter project.

The instructions for building and running the osrm-backend can be found in the project repository.