function kRingIndexes(searchLocation, pad = 1) {
const origin = h3.geoToH3(searchLocation.lat, searchLocation.lng, res);
const e = h3.edgeLength(res, h3.UNITS.km);
const a = (Math.sqrt(3.0)*e)/2.0
const edgeIfEIsReallyA = (2*a)/Math.sqrt(3.0)
console.log("edge:" + e)
console.log("apothem:" + a)
const radiusIfEven = Math.ceil(((searchRadiusKm - e) / e) / (3.0/2.0));
const radiusIfOdd = Math.ceil(((((searchRadiusKm - e) / e) * 2.0) + 1.0)/3.0);
const longRadius = Math.ceil((searchRadiusKm - a)/(2.0*a));
const radius = radiusIfEven % 2 === 0 ? radiusIfEven : radiusIfOdd;
console.log("k:" + longRadius)
return h3.kRing(origin, longRadius);
}