horizon_range

Astronomy.horizon_range(planet_radius, observer_height)

Range to horizon

Both arguments in the same units and range will be in those units too.