Skip to content

Remove assumptions about data location form osrm-datastore #4978

@TheMarex

Description

@TheMarex

Right now osrm-datastore needs to know from which file it can load the data that goes into a certain named block in memory. For example, for the street names we explicitly load the data from the file .osrm.names here. We already automated the block discovery, but to unlock loading from arbitrary files we would need to build an index, that maps storage block identifier, like /common/names/blocks, to a file path data.osrm.something.

The use-case that we would want to support here is being able to combine the output of multiple toolchain steps to a single archive:

Combining for easy handling and deployment

cat data.osrm.* | gzip - > data.osrm.gz

Extraction for loading to memory

cat data.osrm.gz | gunzip - > data.osrm
./osrm-datastore data.osrm

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions