+

Search Tips   |   Advanced Search

Retrieving user or device location

To implement the geolocation interface, we provide methods to resolve coordinates or IP address to one or more of the location attributes (country, state, or city).

We can determine the location of a device using reverse geocoding or using service providers. Reverse geocoding converts latitude and longitude coordinates into a location (such as country, state, or city) using a geolocation JAR that you provide or using an external geolocation service provider.

Key concepts for determining the location of a device:

  1. Enable the reverse geocoding class in the PersonalizationService.properties file to receive the latitude and longitude coordinates of the client that accesses the portal.

    1. Locate the PersonalizationService.properties in the following directory: wp_profile_root/PortalServer/config/config/service

    2. Create a backup copy of the PersonalizationService.properties file.

    3. Add the class name to the key. For example: pzn.externalGeolocation=com.acme.geolocation.ReverseGeolocationExample

  2. Create a JAR file, and place this file on the portal server class path. For example, place your JAR file in the following directory: PortalServer_root/shared

  3. Restart the HCL WebSphere Portal server.

Parent topic: Location attributes