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