Class RoutingConfig
- java.lang.Object
-
- org.optaweb.vehiclerouting.plugin.routing.RoutingConfig
-
@Configuration class RoutingConfig extends Object
Spring Bean producer that creates a GraphHopper instance and allows to configure the path to OSM file through environment.
-
-
Constructor Summary
Constructors Constructor Description RoutingConfig(RoutingProperties routingProperties)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) static voiddownloadOsmFile(String urlString, Path osmFile)(package private) com.graphhopper.reader.osm.GraphHopperOSMgraphHopper()Avoids creating real GraphHopper instance when running a @SpringBootTest.
-
-
-
Constructor Detail
-
RoutingConfig
@Autowired RoutingConfig(RoutingProperties routingProperties)
-
-
Method Detail
-
graphHopper
@Profile("!test") @Bean @ConditionalOnProperty(prefix="app.routing", name="engine", havingValue="graphhopper", matchIfMissing=true) com.graphhopper.reader.osm.GraphHopperOSM graphHopper()Avoids creating real GraphHopper instance when running a @SpringBootTest.- Returns:
- real GraphHopper
-
-