public void init(final OsmLink link) {
        this.link = link;
        targetNode = link.getTarget(null);
        selev = targetNode.getSElev();

        originLon = -1;
        originLat = -1;
    }
The cost of that path (a modified distance)
main/src/main/java/cgeo/geocaching/brouter/core/OsmPath.java