Search in sources :

Example 1 with MatchCommand

use of com.graphhopper.application.cli.MatchCommand in project graphhopper by graphhopper.

the class GraphHopperApplication method initialize.

@Override
public void initialize(Bootstrap<GraphHopperServerConfiguration> bootstrap) {
    bootstrap.addBundle(new GraphHopperBundle());
    bootstrap.addBundle(new RealtimeBundle());
    bootstrap.addCommand(new ImportCommand());
    bootstrap.addCommand(new MatchCommand());
    bootstrap.addBundle(new AssetsBundle("/com/graphhopper/maps/", "/maps/", "index.html"));
    // see this link even though its outdated?! // https://www.webjars.org/documentation#dropwizard
    bootstrap.addBundle(new AssetsBundle("/META-INF/resources/webjars", "/webjars/", null, "webjars"));
}
Also used : ImportCommand(com.graphhopper.application.cli.ImportCommand) RealtimeBundle(com.graphhopper.http.RealtimeBundle) AssetsBundle(io.dropwizard.assets.AssetsBundle) MatchCommand(com.graphhopper.application.cli.MatchCommand) GraphHopperBundle(com.graphhopper.http.GraphHopperBundle)

Aggregations

ImportCommand (com.graphhopper.application.cli.ImportCommand)1 MatchCommand (com.graphhopper.application.cli.MatchCommand)1 GraphHopperBundle (com.graphhopper.http.GraphHopperBundle)1 RealtimeBundle (com.graphhopper.http.RealtimeBundle)1 AssetsBundle (io.dropwizard.assets.AssetsBundle)1