@Override public void visitVertex(StreetRouter.State state){
  Integer edgeIdx=state.backEdge;
  if (!(edgeIdx == null || edgeIdx == -1)) {
    EdgeStore.Edge edge=edgeStore.getCursor(edgeIdx);
    GeoJsonFeature feature=new GeoJsonFeature(edge.getGeometry());
    feature.addProperty("weight",state.weight);
    feature.addProperty("mode",state.streetMode);
    feature.addProperty("backEdge",state.backEdge);
    features.add(feature);
  }
}

@ Override public void visitVertex ( StreetRouter . State state ) { Integer edgeIdx = state . backEdge ; if ( ! ( edgeIdx == null || edgeIdx == - 1 ) ) { EdgeStore . Edge edge = edgeStore . getCursor ( edgeIdx ) ; GeoJsonFeature feature = new GeoJsonFeature ( edge . getGeometry ( ) ) ; feature . addProperty ( "weight" , state . weight ) ; feature . addProperty ( "mode" , state . streetMode ) ; feature . addProperty ( "backEdge" , state . backEdge ) ; features . add ( feature ) ; } }
saves current state geometry mode and weight as geojson feature properties in list of features . it is used in full state graph when debugging
