Hi Megala, No. That is not the issue. When I use online services [1] I can see the country.
[1] https://www.iplocation.net/ Thanks, Lakshman On Tue, Jun 6, 2017 at 10:04 PM, Megala Uthayakumar <[email protected]> wrote: > Hi Lakshman, > > "getCountry" method will return empty value if we have used an internal ip > address. We need to give the public ip address as the parameter. We can get > the public ip address using following command, > > *dig +short myip.opendns.com <http://myip.opendns.com> > @resolver1.opendns.com <http://resolver1.opendns.com>* > > Thanks > > Regards, > Megala > > > On Tue, Jun 6, 2017 at 4:36 PM, Lakshman Udayakantha <[email protected]> > wrote: > >> Hi Tharindu, >> >> I tried this feature [1] with the instructions given [2], [3]. Note that >> I need to check only getCountry method. Below is the steps I have done >> >> 1. Created a data source called GEO_LOCATION_DATA and imported CSV files >> downloaded from given location in [2]. >> 2. Installed following features in DAS 3.1.0. >> >> - Analytics Spark Geolocation UDF >> - Analytics Spark scripts Common >> - Analytics Spark Useragent >> >> 3. Invoked the getCountry method from analytics console in DAS 3.1.0. >> But it returns an empty country in the console. What am I missing here? >> Or any hint to troubleshoot. According to the code, it searches for an >> entry in IP_LOCATION table. but we are not importing data to that table as >> specified in the doc? >> >> [1] https://github.com/wso2/shared-analytics/tree/v1.0.0/com >> ponents/spark-udf/org.wso2.carbon.analytics.shared.geolocation.udf >> [2] https://docs.wso2.com/display/AM200/Configuring+Geolocat >> ion+Based+Statistics >> [3] http://blog.rukspot.com/2016/10/configure-wso2-das-310-for-w >> so2-apim.html >> >> Thanks, >> Lakshman. >> >> -- >> Lakshman Udayakantha >> WSO2 Inc. www.wso2.com >> lean.enterprise.middleware >> Mobile: *0717429601* >> >> >> _______________________________________________ >> Dev mailing list >> [email protected] >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > Megala Uthayakumar > > Software Engineer > Mobile : 0779967122 > -- Lakshman Udayakantha WSO2 Inc. www.wso2.com lean.enterprise.middleware Mobile: *0717429601*
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
