If the list of latitudes and longitudes passed to get_zoom has only one point, or they are all at the same point, the return value of this function goes to infinity, causing OverflowError: cannot convert float infinity to integer. This should be caught or prevented, and a maximum zoom value returned. OR: A more descriptive error should be raised.
If the list of latitudes and longitudes passed to
get_zoomhas only one point, or they are all at the same point, the return value of this function goes to infinity, causingOverflowError: cannot convert float infinity to integer. This should be caught or prevented, and a maximum zoom value returned. OR: A more descriptive error should be raised.