Shiny app for distance