question: private void findEgressPaths ( ProfileRequest request , Map < LegMode , StreetRouter > egressRouter ) { for ( LegMode mode : request . egressModes ) { StreetRouter streetRouter = new StreetRouter ( transportNetwork . streetLayer ) ; streetRouter . transitStopSearch = true ; streetRouter . dominanceVariable = StreetRouter . State . RoutingVariable . DURATION_SECONDS ; if ( egressUnsupportedModes . contains ( mode ) ) { continue ; } streetRouter . streetMode = StreetMode . valueOf ( mode . toString ( ) ) ; streetRouter . profileRequest = request ; streetRouter . timeLimitSeconds = request . getTimeLimit ( mode ) ; if ( streetRouter . setOrigin ( request . toLat , request . toLon ) ) { streetRouter . route ( ) ; TIntIntMap stops = streetRouter . getReachedStops ( ) ; egressRouter . put ( mode , streetRouter ) ; LOG . info ( "Added {} edgres stops for mode {}" , stops . size ( ) , mode ) ; } else { LOG . warn ( "MODE:{}, Edge near the origin coordinate wasn't found. Routing didn't start!" , mode ) ; } } }
target:  Finds all egress paths from to coordinate to end stop and adds routers to egressRouter