Geolocation detection - IP2Location Integration
Have any one integrated IP2location plugin with AEM 6.1 for Geolocation detection? If so can you please share some details on this.
Have any one integrated IP2location plugin with AEM 6.1 for Geolocation detection? If so can you please share some details on this.
Hi
"Our use case is to identify the user location from where he is accessing website/mobile web and display shops nearest to his location"
I would not recommend you to use IP address to find the location, as it only gives you rough estimates, you can use "Geolocation" or "The Google Maps Geolocation API". There are many reliable other option that you can easily find on google.
"On using geoplugin I have following query. Can this be used for commercial purpose and will this be reliable "
The geoplugin was just an example shown to you so that you can implement ip to location via JavaScript. Reliability, i am not actually sure of. Please reach out to them to know exactly abut this. Link:- http://www.geoplugin.com/contact
"If we use IP2Location, how this can be deployed as an OSGi service in AEM and where IP2 database file can be stored in the infrastructure. Ref :http://www.ip2location.com/docs/ip2location-java-user-manual.pdf"
You can create a custom component which is reliable on third party jar. "IP2Location" provide jar libraries, you can use them as a library into a component.
Example of Creating a component using third party jars:- https://helpx.adobe.com/experience-manager/using/aem_wordpress.html
I hope this helps you.
Thanks and Regards
Kautuk Sahni
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.