public static GeoLocationRequest getHttpServletRequestGeoLocation(final String geoLocationParam) {
        val loc = new GeoLocationRequest();
        if (StringUtils.isNotBlank(geoLocationParam) && !StringUtils.equalsIgnoreCase(geoLocationParam, "unknown")) {
            val geoLocation = Splitter.on(",").splitToList(geoLocationParam);
            if (!geoLocation.isEmpty()) {
                loc.setLatitude(geoLocation.getFirst());
            }
            if (geoLocation.size() >= GEO_LOC_LONG_INDEX + 1) {
                loc.setLongitude(geoLocation.get(GEO_LOC_LONG_INDEX));
            }
            if (geoLocation.size() >= GEO_LOC_ACCURACY_INDEX + 1) {
                loc.setAccuracy(geoLocation.get(GEO_LOC_ACCURACY_INDEX));
            }
            if (geoLocation.size() >= GEO_LOC_TIME_INDEX + 1) {
                loc.setTimestamp(geoLocation.get(GEO_LOC_TIME_INDEX));
            }
        }
        return loc;
    }
Gets http servlet request geo location.

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