public static GeoLocationRequest getHttpServletRequestGeoLocation(final HttpServletRequest request) {
        val loc = new GeoLocationRequest();
        if (request != null) {
            val geoLocationParam = request.getParameter("geolocation");
            return getHttpServletRequestGeoLocation(geoLocationParam);
        }
        return loc;
    }
Gets http servlet request geo location.

@param request the request
@return the http servlet request geo location
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/http/HttpRequestUtils.java