Skip to content

Latest commit

 

History

History
47 lines (34 loc) · 1.51 KB

File metadata and controls

47 lines (34 loc) · 1.51 KB

HOME

Installation Guide

Step 1

First check if your data comes with precomputed distances and if you are going to want to use the default driving connections when building your graph. Depending on your choices you will need to install the library with torch. To see what your use case requires check the table below and copy the command.

data has distances use driving edges planning to use build-in Haversine distance installation mode
YES YES / pip install multimodalrouter[torch]
YES NO / pip install multimodalrouter[torch]
NO YES / pip install multimodalrouter[torch]
NO NO NO pip install multimodalrouter
/ / YES pip install multimodalrouter[torch]

Tip: if unsure whether you will need torch or not, install without it first and install torch later if necessary

Step 2

RUN your command from the root of this project

Step 3

The library should now be installed to check you can test with this:

python -c "import multimodalrouter; print(dir(multimodalrouter))"

The result should look similar to this

[
'EdgeMetadata', 
'Hub', 
'OptimizationMetric', 
'Route', 
'RouteGraph', 
'VerboseRoute', 
'...', 
'preprocessor', 
'utils'
]