Is there a way to get the sub ranges for given huge range?

Is there a way to get the sub ranges for given huge range?

If your goal is to identify where the boundaries are, look at LocalityGetBoundaryKeys api.

See ferry/locations.go at master · adobe/ferry · GitHub for an example.