orblivion / desert-atlas

Other
7 stars 1 forks source link

Handle search at the extremeties of lat/lng #32

Open orblivion opened 1 year ago

orblivion commented 1 year ago

Anticipating an edge case. Right now for "nearby" search, I sort results by nearest to the center of the view. I compare lat and lng values. However I know there's an "overflow"/"underflow", at 180/-180 or something. So if you're searching near one of these extremities, search will probably not return everything. Let's address that somehow.