Skip to content

alexanderquispe/osrm_python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pre requirements

Windows

  • Please download the release archive and unpack it at a location of your choice.

    • Recommended:
      • Make osrm directory into C:\:
    • Uncompress the folder osrm_win_v5.14 and dll-x64, and move all the files inside the C:\osrm folder.
    • At the end, the files inside the folder should have similar characteristics to this tree.
    |-- api-ms-win-crt-runtime-l1-1-0.dll
    |-- bicycle.lua
    |-- car.lua
    |-- debug_example.lua
    |-- examples
    |   `-- postgis.lua
    |-- foot.lua
    |-- lib
    |   |-- access.lua
    |   |-- destination.lua
    |   |-- guidance.lua
    |   |-- maxspeed.lua
    |   |-- pprint.lua
    |   |-- profile_debugger.lua
    |   |-- relations.lua
    |   |-- sequence.lua
    |   |-- set.lua
    |   |-- tags.lua
    |   |-- utils.lua
    |   `-- way_handlers.lua
    |-- libexpat.dll
    |-- lua.dll
    |-- msvcp140.dll
    |-- osrm-components.exe
    |-- osrm-contract.exe
    |-- osrm-customize.exe
    |-- osrm-datastore.exe
    |-- osrm-extract.exe
    |-- osrm-partition.exe
    |-- osrm-routed.exe
    |-- osrm.lib
    |-- osrm_contract.lib
    |-- osrm_customize.lib
    |-- osrm_extract.lib
    |-- osrm_partition.lib
    |-- osrm_store.lib
    |-- osrm_update.lib
    |-- psu_lat_long_radius.csv
    |-- rasterbot.lua
    |-- rasterbotinterp.lua
    |-- tbb.dll
    |-- tbbmalloc.dll
    |-- tbbmalloc_proxy.dll
    |-- test.lua
    |-- testbot.lua
    |-- turnbot.lua
    |-- vcomp140.dll
    |-- vcruntime140.dll
    
  • Add osrm to path

    • Edit the system enviroment variable, Environment Variables, System Variables, path, New (path/to/osrm/files/), ok (x3)

Work with osrm localy:

  • Download a pbf file: Link
  • Move the file to your working environment.
    • Recomend -> Make a data directory osrmdata
  • Open the terminal and change the directory to your working environment.
  • Execute the following codes.
    • osrm-extract.exe -p C:\\osrm\car.lua {where\is\the\dbf\file}.pbf (run one time) - Generate a osrm file extention
    • osrm-contract.exe {where\is\the\osrm\file}.osrm (run one time)
    • osrm-routed.exe {where\is\the\osrm\file}.osrm (run once for session)

Done!

About

OSRM in python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages