public static double getZoomFromLonLatBounds(Envelope envelope) {
    Envelope worldBounds = GeoUtils.toWorldBounds(envelope);
    return getZoomFromWorldBounds(worldBounds);
  }
Returns an approximate zoom level that a map should be displayed at to show all of {@code envelope}, specified in
latitude/longitude coordinates.
planetiler-core/src/main/java/com/onthegomap/planetiler/geo/GeoUtils.java