package Ġpl . jak ub ok ras a . b iker out es . core . util Ċ Ċ import Ġpl . jak ub ok ras a . b iker out es . features . filter . domain . model . BoundingBox Data Ċ Ċ // Ġcheck Ġif Ġthe Ġbounding Ġbox Ġof Ġa Ġroute Ġat Ġleast Ġpart ly Ġcovers Ġthe Ġbounding Ġbox Ġof Ġchosen Ġlocation Ċ fun Ġdoes Route Cover s Map ( route BB : ĠBounding BoxData , Ġmap BB : ĠBounding BoxData Ċ ) Ġ= Ġdoes Route Cover s Map Vert ically ( route BB , Ġmap BB ) Ġ&& Ġdoes Route Cover s Map H orizontally ( route BB , Ġmap BB ) Ċ Ċ private Ġfun Ġdoes Route Cover s Map H orizontally ( ĊĠĠĠ Ġroute BB : ĠBounding BoxData , Ġmap BB : ĠBounding BoxData Ċ ) Ġ= Ġdoes Route Cover s Map And Bottom Is Outside ( route BB , Ġmap BB ) Ġ|| Ġdoes Route Cover s Map And Top Is Outside ( ĊĠĠĠ Ġroute BB , ĊĠĠĠ Ġmap BB ) Ġ|| Ġis Route Between Vert ically ( route BB , Ġmap BB ) Ċ Ċ private Ġfun Ġdoes Route Cover s Map Vert ically ( ĊĠĠĠ Ġroute BB : ĠBounding BoxData , Ġmap BB : ĠBounding BoxData Ċ ) Ġ= Ġdoes Route Cover s Map And Left Is Outside ( route BB , Ġmap BB ) Ġ|| Ġdoes Route Cover s Map And Right Is Outside ( ĊĠĠĠ Ġroute BB , Ġmap BB ) Ġ|| Ġis Route Between H orizontally ( route BB , Ġmap BB ) ĊĊ Ċ private Ġfun Ġdoes Route Cover s Map And Bottom Is Outside ( ĊĠĠĠ Ġroute BB : ĠBounding BoxData , Ġmap BB : ĠBounding BoxData Ċ ) Ġ= Ġ( route BB . lat South Ġ< Ġmap BB . lat South Ġ&& Ġroute BB . lat North Ġ> Ġmap BB . lat South ) Ċ Ċ private Ġfun Ġdoes Route Cover s Map And Top Is Outside ( ĊĠĠĠ Ġroute BB : ĠBounding BoxData , Ġmap BB : ĠBounding BoxData Ċ ) Ġ= Ġ( route BB . lat North Ġ> Ġmap BB . lat North Ġ&& Ġroute BB . lat South Ġ< Ġmap BB . lat North ) Ċ Ċ private Ġfun Ġis Route Between Vert ically ( ĊĠĠĠ Ġroute BB : ĠBounding BoxData , Ġmap BB : ĠBounding BoxData Ċ ) Ġ= Ġ( route BB . lat North Ġ< Ġmap BB . lat North Ġ&& Ġroute BB . lat South Ġ> Ġmap BB . lat South ) ĊĊ Ċ private Ġfun Ġdoes Route Cover s Map And Left Is Outside ( ĊĠĠĠ Ġroute BB : ĠBounding BoxData , Ġmap BB : ĠBounding BoxData Ċ ) Ġ= Ġ( route BB . lon West Ġ< Ġmap BB . lon West Ġ&& Ġroute BB . lon East Ġ> Ġmap BB . lon West ) Ċ Ċ private Ġfun Ġdoes Route Cover s Map And Right Is Outside ( ĊĠĠĠ Ġroute BB : ĠBounding BoxData , Ġmap BB : ĠBounding BoxData Ċ ) Ġ= Ġ( route BB . lon East Ġ> Ġmap BB . lon East Ġ&& Ġroute BB . lon West Ġ< Ġmap BB . lon East ) Ċ Ċ private Ġfun Ġis Route Between H orizontally ( ĊĠĠĠ Ġroute BB : ĠBounding BoxData , Ġmap BB : ĠBounding BoxData Ċ ) Ġ= Ġ( route BB . lon East Ġ< Ġmap BB . lon East Ġ&& Ġroute BB . lon West Ġ> Ġmap BB . lon West )