What's the easiest route to cross the Isle of Wight on foot in a straight line?
Experimental work in progress: an R Shiny app to let users assess the 'difficulty' of straight-line walking routes across the Isle of Wight, UK, given obstructions (waterways, buildings, barriers, etc).
Inspired by Tom 'GeoWizard' Davies's attempts to cross countries, like Wales, in a straight line on foot.
The app will be hosted on shinyapps.io when ready. In the meantime, you can download and test drive it from your R session with:
shiny::runGitHub(
username = "matt-dray",
repo = "mission-across-iow",
subdir = "mission-across-iow",
ref = "main"
)
It'll take a moment to download. See the mission-across-iow/global.R
file for the packages you'll want to install.
The ultimate goal is to use Leaflet Draw via {leaflet.extras} to let users draw a line, rather than provide points. Also I'll prettify things with (probably) {bslib}.
Main packages used:
- {sf} for spatial-data manipulation
- {osmextra} for fetching OpenStreetMap features
- {leaflet} and {leaflet.extras} for interactive mapping
- {shiny} for interactive web apps
- {geojsonio} for reading GeoJSON files
- various {tidyverse} packages for data manipulation
Data from:
- the Open Geography Portal from the Office for National Statistics (ONS)
- OpenStreetMap