EstimateEvaluator<Double> estimateEval = CommonEvaluators.geoEstimateEvaluator(OsmEntityAttributeKey.NODE_LAT.name(),
OsmEntityAttributeKey.NODE_LON.name());
CostEvaluator<Double> costEval = CommonEvaluators.doubleCostEvaluator(OsmEntityAttributeKey.WAY_DISTANCE.name());
Expander relExpander = Traversal.expanderForTypes(
OsmRelation.ONE_WAY, Direction.OUTGOING,
OsmRelation.BIDIRECTIONAL, Direction.BOTH);
PathFinder<WeightedPath> finder = GraphAlgoFactory.aStar(relExpander, costEval, estimateEval);