Skip to main content

steps_for

Function steps_for 

Source
pub fn steps_for(metres: f64, lat: f64) -> u8
Expand description

How many bits of hash make a box roughly the size of a search.

Doubling the range until it covers the world counts the halvings, and then two are given back so the box is comfortably larger than the search rather than the same size as it. Near the poles a degree of longitude is short, so one or two more bits come off there.