[LRA-152] Add GeoIP features to Tout app Created: 25/Apr/14  Updated: 27/Nov/15  Resolved: 27/Nov/15

Status: Resolved
Project: Liferay Apps
Component/s: Tout
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Major
Reporter: mcalvo Assignee: mcalvo
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Text File untitled text 5.txt    

 Description   
We want to use Maxmind GeoLite2 CSV DBs to know from which country the visitor is. We need an admin page were the user can upload these DBs. We can have 2 different uploads, one for the Locations CSV and another for the Blocks CSV file. Each time a CSV file is uploaded a DB table will be populated with the info in the CSV file. We don't need all the fields in the Maxmind CSV files.

Of the Locations CSV file we just need these fields:
+ geoname_id: generate a DB field of it.
+ country_iso_code: generate a DB field of it (this is 2 chars ISO 3166-1 value)

Of the Blocks CSV file just need to create these fields:
+ start_ip: long field, we will create it once we know the network range initial ip.
+ end_ip: long file, we will create it once we know the network range final ip.
+ geoname_id: generate a DB field of it.

Contact Manuel if you need help generating this field from Maxmind CSV files. Specially how to convert Blocks records into a network range, and IP string values into a long field.

Basically we need to generate a service that will make use of this tables. This service will be provided an IP and will return the country ISO code associated to it.

We want to modify the Tout app, so you can define which content to show based on visitor's country.

First take a look at this app, and see how they are doing it there:
https://www.liferay.com/marketplace/-/mp/application/15197657

 Comments   
Comment by Christopher Jimenez [X] (Inactive) [ 11/Jun/14 ]
Documentation on http://wiki.rivetlogic.com/display/LRA/IP+Geo+Services
The latest code is on Charles repo
Comment by mcalvo [ 27/Nov/15 ]
Liferay Audience Targetting already does something like that.
Generated at Sat Feb 10 05:48:56 GMT 2024 using Jira 8.1.3#801003-sha1:6b6f07cffadda9a0d6efe24639daed8ce94dcdd6.