This could use a cleanup.  Here's how you can use pattern matching to reduce some of the clutter and the ._1s

```scala
   // conduct the search through the various candidate resolutions
    val (_, ghOpt) = resolutions.foldRight((resolutions.minBitsResolution, Option.empty[GeoHash])){
      case (bits, orig@(res, _)) =>
        val gh = GeoHash(centroid.getX, centroid.getY, bits)
        if (getGeohashGeom(gh).contains(env) && bits >= res) (bits, Some(gh)) else orig
    }
```