All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.graphhopper.api.GHMResponse Maven / Gradle / Ivy

There is a newer version: 0.8.2.1
Show newest version
package com.graphhopper.api;

import com.graphhopper.GHResponse;

/**
 * @author Peter Karich
 */
public class GHMResponse extends GHResponse {

    private final int fromIndex;
    private final int toIndex;
    private final boolean identicalStartAndEnd;

    public GHMResponse(int fromIndex, int toIndex, boolean identicalStartAndEnd) {
        this.fromIndex = fromIndex;
        this.toIndex = toIndex;
        this.identicalStartAndEnd = identicalStartAndEnd;
    }

    public boolean isIdenticalStartAndEnd() {
        return identicalStartAndEnd;
    }

    public int getFromIndex() {
        return fromIndex;
    }

    public int getToIndex() {
        return toIndex;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy