icon

Geo Location Services

icon
Rivet Logic Corporation
Data Modeling & Business Logic
An unexpected error occurred.
Description
The Geo Location Services is an app that once installed offers a web service that receives an IP value and returns a two-character ISO 3166-1 country code in which that IP resides. With this app you can enable Geo IP functionalities in your apps. For example you can choose which content to show to your users based on the country they are located.

This app uses Maxmind GeoLite2 Country CSV database. You download that database from here http://dev.maxmind.com/geoip/geoip2/geolite2/#Downloads and then use an interface that is also provided by this app to import that data into Liferay. You won't need to use an external service anymore to provide Geo IP functionalities in your portal.

To use this service in your portlets or templates use this code:
<script type="text/javascript">
Liferay.Service(
'/geo-location-services-portlet.geolocations/get-location',
{
IP: '8.8.8.8'
},
function(obj) {
alert(obj);
}
);
</script>

or if you prefer to use JQuery use this one:
<script type="text/javascript">
$.get( "/api/jsonws/geo-location-services-portlet.geolocations/get-location/IP/8.8.8.8", function(data, status) {
alert(data);
});
</script>
Liferay is trademark of Liferay, Inc., Liferay International Limited and/or Liferay Affiliate, registered in the United States and/or other countries.
License
    All prices displayed are in USD. For pricing specific to your country/currency, please follow the installation instructions below for accessing and purchasing this app through your Control Panel.
    Release Summary and Release Notes
    Version Change Log Supported Framework Versions Date Added
    1.0.0
    Liferay Portal 6.2 CE GA1+
    Liferay Portal 6.2 EE GA1+
    2014-07-08
    Profile
    Rivet Logic is an award-winning consulting and systems integration firm that helps organizations better engage with customers, improve collaboration, and streamline business operations. Through a full suite of services and solutions for content management, collaboration and community, Rivet Logic enables organizations to fully leverage the power of industry-leading open source software. With deep expertise in the Liferay Portal and Social Collaboration Platform, the Alfresco Content Management system, Apache Solr and MongoDB, Rivet Logic crafts content-rich solutions that power engaging web and mobile sites, social business applications and enterprise collaboration. From its offices throughout North America and near-shore development center in Costa Rica, Rivet Logic serves clients across a wide range of industries. Rivet Logic—Building Digital Experiences.
    DEVELOPER
    Rivet Logic Corporation
    Published Date
    Version
    1.0.0
    Supported Versions
    6.2
    Edition
    EE, CE
    Price
    Free
    SHARE LINK

    Installation Instructions

    This is a Legacy App that is no longer available in the new App Marketplace. You are able to acquire it from your installed DXP or CE instance and install it by following the instructions below.

    Acquiring this App through the legacy Liferay Portal Store

    1. Review app documentation for any specific installation instructions.
    2. Login to your Liferay Portal instance with administrative permissions.
    3. Navigate to the Control Panel, Marketplace (or Apps for 7.3 and prior), then Store.
    4. If needed, login to your Liferay.com account by choosing Sign In.
    5. Search for the app name in the Search dialog.
    6. Once the app is found, click on the app in the search results.
    7. On the app details page, choose to acquire the app by selecting the Free, Buy, or Trial button.
    8. Follow the instructions on the screen to complete the acquisition.

    Installing this App through legacy Liferay Portal Purchased Apps

    1. After acquiring the app, login to your Liferay Portal instance with administrative permissions.
    2. Navigate to the Control Panel, Marketplace (or Apps for 7.3 and prior), then Purchased.
    3. If needed, login to your Liferay.com account by choosing Sign In.
    4. Click the Install button to install your app on your Liferay Portal instance.

    See the legacy App Marketplace help documentation for more information.