private static void collectGeographicalPosition(final GeoLocationResponse location,
                                                    final CityResponse response) {
        val loc = response.getLocation();
        if (loc != null) {
            if (loc.getLatitude() != null) {
                location.setLatitude(loc.getLatitude());
            }
            if (loc.getLongitude() != null) {
                location.setLongitude(loc.getLongitude());
            }
        }
    }
This is {@link MaxmindDatabaseGeoLocationService} that reads geo data
from a maxmind database and constructs a geo location based on the ip address.
Default caching of the databases is enabled by default.

@author Misagh Moayyed
@since 5.0.0
support/cas-server-support-geolocation-maxmind/src/main/java/org/apereo/cas/support/geo/maxmind/MaxmindDatabaseGeoLocationService.java