jsprit requires Java 1.7.0 or later.
jsprit is a multi-module project and consists of:
- jsprit-core
- jsprit-analysis
- jsprit-instances
- jsprit-examples
- jsprit-io
If you want to use the latest release of jsprit-core, add the following lines to your pom:
<dependency>
<groupId>com.graphhopper</groupId>
<artifactId>jsprit-core</artifactId>
<version>{version}</version>
</dependency>
Find the latest versions here: mvn repository
If you want to build the master branch yourself, do this:
git clone https://github.com/graphhopper/jsprit.git
cd jsprit
mvn clean install
the following documentation is recommended:
Here you learn to setup the Java environment and an Integrated Development Environment (IDE). In the subsection Adding Jars to your Project you learn to integrate external libraries in your project. Just copy/paste the above jsprit releases/snapshots to your pom.xml instead of the GeoTools-artifacts.
to manage your dependencies, go to maven central, search for jsprit and download the latest binaries to put them into your classpath.
Go ahead and show me a simple example of how to setup and solve a vehicle routing problem.