Package com.liferay.ipgeocoder.model

Examples of com.liferay.ipgeocoder.model.IPInfo


      ipInfoJSON.getString("longitude"));
    String postalCode = GetterUtil.getString(
      ipInfoJSON.getString("postalCode"));
    String region = GetterUtil.getString(ipInfoJSON.getString("region"));

    IPInfo ipInfo = new IPInfo();

    ipInfo.setCity(city);
    ipInfo.setCountryCode(countryCode);
    ipInfo.setCountryName(countryName);
    ipInfo.setIpAddress(ipAddress);
    ipInfo.setLatitude(latitude);
    ipInfo.setLongitude(longitude);
    ipInfo.setPostalCode(postalCode);
    ipInfo.setRegion(region);

    return ipInfo;
  }
View Full Code Here

TOP

Related Classes of com.liferay.ipgeocoder.model.IPInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.