Rust & R: Decoding Geohashes into sf objects | Pt. 2

Опубликовано: 04 Май 2026
на канале: Josiah Parry
377
18

Part 1:    • Build a geohash R package using Rust  

Code: https://github.com/JosiahParry/geohash
Geohash Rust Crate: https://docs.rs/geohash

Follow me on Twitter:   / josiahparry  
Connect with me on LinkedIn:   / josiahparry  

In this second part of our live coding series, we further explore the fusion of Rust and R in geospatial data processing. We make a function that decodes geohashes into bounding boxes from the sf R package illustrating how we can make S3 objects using Rust's efficiency with R's flexibility. By the end of this 10-minute tutorial, you'll gain valuable insights into advanced R package development.

Join me as we dive into the practical application of Rust and R in spatial data!


0:00 - Intro
0:40 - sf bounding boxes
1:23 - decode_bbox()
2:45 - make an sf bbox
6:07 - vectorization helper function
7:18 - vectorizing decode_bbox
8:15 - testing in R
9:05 - making sf objects