Alternative routes

Hi, I am also playing a bit with alternative routes.
I have modified a bit
public List calcPaths(GHRequest request, GHResponse ghRsp)
in GraphHopper.java, so that several paths are contained in the returned altPath.
However, they are not shown on localhost server. I would like them to be displayed as alternative routes (being able to click on the icons switching between them)
Note that these paths are computed using CH.
What should be modified/corrected/taken care of?
Thank you.

If the JSON response contains them then you should see them like here.

Thank you, yes, this looks like what I am trying to get.

Apologize for the stupid question - where exactly can I check if JSON response contains it?
In calcPaths, right before return there are 3 paths inside altPaths…

If GHResponse has the correct List of PathWrappers it should work. See AlternativeRoutingTemplate

I check “https://graphhopper.com/maps/?point=39.51266%2C-84.741411&point=39.510442%2C-84.736633&locale=en-US&vehicle=foot&weighting=fastest&elevation=true&details=street_name&use_miles=false&layer=Omniscale” it is not always stable and give the same output why?

Please avoid resurrecting old topics. Instead create a separate and include your problem description with what you expected.