prototype/dispatch/order-dispatcher/src/main/java/com/aws/proto/dispatching/api/v1/RoutingResource.java [61:71]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public Distance distanceBetweenLocations(DistanceBetweenLocationsRequest req) {
        Distance dist = this.graphhopperRouter.travelDistance(Coordinates.valueOf(req.origin.lat, req.origin.lon), Coordinates.valueOf(req.destination.lat, req.destination.lon));

        if(this.graphhopperRouter.errors().size() > 0) {
            this.graphhopperRouter.errors().forEach(logger::warn);
            this.graphhopperRouter.clearErrors();
        }

        logger.info("{}", dist);
        return dist;
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



prototype/dispatch/order-dispatcher/src/main/java/com/aws/proto/dispatching/api/v2/RoutingResource.java [64:74]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public Distance distanceBetweenLocations(DistanceBetweenLocationsRequest req) {
        Distance dist = this.graphhopperRouter.travelDistance(Coordinates.valueOf(req.origin.lat, req.origin.lon), Coordinates.valueOf(req.destination.lat, req.destination.lon));

        if(this.graphhopperRouter.errors().size() > 0) {
            this.graphhopperRouter.errors().forEach(logger::warn);
            this.graphhopperRouter.clearErrors();
        }

        logger.info("{}", dist);
        return dist;
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



