New blog post! We're about to embark on an 18-state, 5,000+ mile road trip (😱), so I figured I'd visualize it with #rstats and {sf}! Here's how to automatically get geocoded location and routing(!) data from OpenStreetMap and make fancy maps with ggplot #dataviz #rspatial https://www.andrewheiss.com/blog/2023/06/01/geocoding-routing-openstreetmap-r/
@andrew great stuff I’ve actually been searching for a post like this recently and that’s awesome.
If you ever want to go to next level- there are some use cases where people want to route or geocode without sending the data to another service (eg you have confidential data and cannot share it). I’d love to see someone show how to do these things locally. I saw there is an R package called dodgr that should be able to do this with osm data but haven’t seen it being implemented.
@mpanhans And it looks like Nominatim (for geocoding locations) can also run from Docker or locally https://nominatim.org/release-docs/latest/admin/Installation/, so it should theoretically be possible to have non-remote instances of Nominatim and OSRM for locations and routing