ruby:
S2Cells::S2LatLon.new(34.1234, -84.1234).to_s2_id(30)
=> -8577780315821624425
S2Cells::S2LatLon.new(34.1234, -84.1234).to_s2_id(1)
=> -8358680908399640576
https://gojekfarm.github.io/s2-calc/ agrees with these values
python's s2sphere (from sidewalk labs, seems like it'd be more of a reference implementation) gives very different numbers:
s2sphere.Cell.from_lat_lng(s2sphere.LatLng.from_degrees(34.1234, -84.1234))
=> Cell: face 4, level 30, orientation 0, id 9868963757887927191
This discrepancy feels like it'd be some kind of signed/unsigned integer issue, but I didn't think that would be a thing in Ruby. It also doesn't seem like the level=1 cell value in Ruby would be such a large, specific number. I'm missing something.