build using this https://github.com/Project-OSRM/osrm-backend#building-from-source
download .pbf file using this http://download.geofabrik.de/
then run using this https://github.com/Project-OSRM/osrm-backend/wiki/Running-OSRM
import pickle | |
from server.modules.logging.logger import log_error | |
def read_file(filename): | |
# file = 'static/data/pickle/r_data_20.pkl' | |
file = filename | |
data = None | |
with (open(file, "rb")) as openfile: | |
data = pickle.load(openfile) |
build using this https://github.com/Project-OSRM/osrm-backend#building-from-source
download .pbf file using this http://download.geofabrik.de/
then run using this https://github.com/Project-OSRM/osrm-backend/wiki/Running-OSRM