It would be better to use a python geocoder instead of Leaflet (L.Control.geocoder()) as leaflet is client-side and you will have to pass the value again to server. With python you can get it directly on the server-side. Then you can easily extract the map bounds in python objects, which can be used for comparisons.

Only top voted, non community-wiki answers of a minimum length are eligible