RoutingParameters rp = new RoutingParameters();
NAFeaturesAsFeature rfaf = new NAFeaturesAsFeature();
@SuppressWarnings("unused")
StopGraphic point1 = new StopGraphic(str);
@SuppressWarnings("unused")
StopGraphic point2 = new StopGraphic(loc);
rfaf.setFeatures(sg);
rfaf.setCompressedRequest(true);
rp.setStops(rfaf);