The index submodule provides efficient storage containers for preprocessed OSM data.
Node location can be cached in a LocationTable. There are different implementations available which should be choosen according to the size of data and whether or not the cache should be permanent. See the Osmium manual for a detailed explaination. The compiled in types can be listed with the map_types function, new storages can be created with create_map.
Return a list of strings with valid types for the location table.
Create a new location store. The string parameter takes the type and, where required, additional arguments separated by comma. For example, to create a array cache backed by a file foo.store, the map_type should be dense_file_array,foo.store.
A map from a node ID to a location object. This implementation works only with positive node IDs.
Remove all entries from the location table.
Return the location for a given id.
Set the location for a given node id.
Return the size (in bytes) currently allocated by this location table.