<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Get Geolocation Data from IP by using QlikSense Rest Connector in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Get-Geolocation-Data-from-IP-by-using-QlikSense-Rest-Connector/m-p/1394581#M32238</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By using the free service &lt;A href="http://api.db-ip.com/" title="http://api.db-ip.com/"&gt;IP Geolocation online API&lt;/A&gt;‌ which support Rest connection i have built this call:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_15094496636709922 jive_text_macro" jivemacro_uid="_15094496636709922"&gt;
&lt;P&gt;set vMyApyKey='&lt;STRONG&gt;xxxxxxxxx&lt;/STRONG&gt;';&lt;/P&gt;
&lt;P&gt;set vIpAddress='&lt;STRONG&gt;xxx.xxx.xxx.xxx&lt;/STRONG&gt;';&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;let vConnection='Provider=QvRestConnector.exe;url=&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://api.db-ip.com/v2/'&amp;amp;" rel="nofollow" target="_blank"&gt;http://api.db-ip.com/v2/'&amp;amp;&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;STRONG&gt;vMyApyKey&lt;/STRONG&gt; &amp;amp; '/'&amp;amp; &lt;STRONG&gt;vIpAddress&lt;/STRONG&gt; &amp;amp;';timeout=30;method=GET;autoDetectResponseType=true;keyGenerationStrategy=0;useWindowsAuthentication=false;useCertificate=No;certificateStoreLocation=CurrentUser;certificateStoreName=My;PaginationType=None;XUserId=&lt;STRONG&gt;TestUse&lt;/STRONG&gt;;XPassword=&lt;STRONG&gt;TestUserPsw&lt;/STRONG&gt;;';&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;CUSTOM CONNECT TO "$(vConnection)";&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;RestConnectorMasterTable:&lt;/P&gt;
&lt;P&gt;SQL SELECT&lt;/P&gt;
&lt;P&gt;"ipAddress",&lt;/P&gt;
&lt;P&gt;"continentCode",&lt;/P&gt;
&lt;P&gt;"continentName",&lt;/P&gt;
&lt;P&gt;"countryCode",&lt;/P&gt;
&lt;P&gt;"countryName",&lt;/P&gt;
&lt;P&gt;"stateProv",&lt;/P&gt;
&lt;P&gt;"city"&lt;/P&gt;
&lt;P&gt;FROM JSON (wrap on) "root";&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;[root]:&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;[ipAddress],&lt;/P&gt;
&lt;P&gt;[continentCode],&lt;/P&gt;
&lt;P&gt;[continentName],&lt;/P&gt;
&lt;P&gt;[countryCode],&lt;/P&gt;
&lt;P&gt;[countryName],&lt;/P&gt;
&lt;P&gt;[stateProv],&lt;/P&gt;
&lt;P&gt;[city]&lt;/P&gt;
&lt;P&gt;RESIDENT RestConnectorMasterTable;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;DROP TABLE RestConnectorMasterTable;&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after this solution i have found also another easier way by using &lt;SPAN style="font-size: 13.3333px;"&gt;&lt;A class="jive-link-external-small" href="http://freegeoip.net/" rel="nofollow" target="_blank"&gt;http://freegeoip.net&lt;/A&gt;&lt;/SPAN&gt;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15094497601075346" jivemacro_uid="_15094497601075346"&gt;
&lt;P&gt;set vIpAddress='xxx.xxx.xxx.xxx';&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;let vConnection='Provider=QvRestConnector.exe;url=&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://freegeoip.net/csv/'&amp;amp;" rel="nofollow" target="_blank"&gt;http://freegeoip.net/csv/'&amp;amp;&lt;/A&gt;&lt;SPAN&gt; vIpAddress &amp;amp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;';timeout=30;method=GET;autoDetectResponseType=true;keyGenerationStrategy=0;useWindowsAuthentication=false;useCertificate=No;certificateStoreLocation=CurrentUser;certificateStoreName=My;PaginationType=None;XUserId=XXX;XPassword=XXX;';&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;CUSTOM CONNECT TO "$(vConnection)";&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;RestConnectorMasterTable:&lt;/P&gt;
&lt;P&gt;SQL SELECT&lt;/P&gt;
&lt;P&gt;"col_1",&lt;/P&gt;
&lt;P&gt;"col_2",&lt;/P&gt;
&lt;P&gt;"col_3",&lt;/P&gt;
&lt;P&gt;"col_4",&lt;/P&gt;
&lt;P&gt;"col_5",&lt;/P&gt;
&lt;P&gt;"col_6",&lt;/P&gt;
&lt;P&gt;"col_7",&lt;/P&gt;
&lt;P&gt;"col_8",&lt;/P&gt;
&lt;P&gt;"col_9",&lt;/P&gt;
&lt;P&gt;"col_10",&lt;/P&gt;
&lt;P&gt;"col_11"&lt;/P&gt;
&lt;P&gt;FROM CSV (header off, delimiter ",", quote """") "CSV_source";&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;[CSV_source]:&lt;/P&gt;
&lt;P&gt;LOAD [col_1],&lt;/P&gt;
&lt;P&gt;[col_2],&lt;/P&gt;
&lt;P&gt;[col_3],&lt;/P&gt;
&lt;P&gt;[col_4],&lt;/P&gt;
&lt;P&gt;[col_5],&lt;/P&gt;
&lt;P&gt;[col_6],&lt;/P&gt;
&lt;P&gt;[col_7],&lt;/P&gt;
&lt;P&gt;[col_8],&lt;/P&gt;
&lt;P&gt;[col_9],&lt;/P&gt;
&lt;P&gt;[col_10],&lt;/P&gt;
&lt;P&gt;[col_11]&lt;/P&gt;
&lt;P&gt;RESIDENT RestConnectorMasterTable;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;DROP TABLE RestConnectorMasterTable;&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By using both soultion, the result is the same:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2017-10-31 12_36_25-_GeoIP _ Sistema di visualizzazione modello dati - Qlik Sense.png" class="jive-image image-1" src="/legacyfs/online/181605_2017-10-31 12_36_25-_GeoIP _ Sistema di visualizzazione modello dati - Qlik Sense.png" style="height: 98px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 Oct 2017 11:36:05 GMT</pubDate>
    <dc:creator>micheledenardi</dc:creator>
    <dc:date>2017-10-31T11:36:05Z</dc:date>
    <item>
      <title>Get Geolocation Data from IP by using QlikSense Rest Connector</title>
      <link>https://community.qlik.com/t5/App-Development/Get-Geolocation-Data-from-IP-by-using-QlikSense-Rest-Connector/m-p/1394580#M32237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;is there someone who know if is it possible to geo-localize at country level a list of IPs by using WebServices and QlikSense Rest connector ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've got a list of public IPs and i would like to know from which country they are from.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2017 09:14:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Get-Geolocation-Data-from-IP-by-using-QlikSense-Rest-Connector/m-p/1394580#M32237</guid>
      <dc:creator>micheledenardi</dc:creator>
      <dc:date>2017-10-19T09:14:51Z</dc:date>
    </item>
    <item>
      <title>Re: Get Geolocation Data from IP by using QlikSense Rest Connector</title>
      <link>https://community.qlik.com/t5/App-Development/Get-Geolocation-Data-from-IP-by-using-QlikSense-Rest-Connector/m-p/1394581#M32238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By using the free service &lt;A href="http://api.db-ip.com/" title="http://api.db-ip.com/"&gt;IP Geolocation online API&lt;/A&gt;‌ which support Rest connection i have built this call:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_15094496636709922 jive_text_macro" jivemacro_uid="_15094496636709922"&gt;
&lt;P&gt;set vMyApyKey='&lt;STRONG&gt;xxxxxxxxx&lt;/STRONG&gt;';&lt;/P&gt;
&lt;P&gt;set vIpAddress='&lt;STRONG&gt;xxx.xxx.xxx.xxx&lt;/STRONG&gt;';&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;let vConnection='Provider=QvRestConnector.exe;url=&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://api.db-ip.com/v2/'&amp;amp;" rel="nofollow" target="_blank"&gt;http://api.db-ip.com/v2/'&amp;amp;&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;STRONG&gt;vMyApyKey&lt;/STRONG&gt; &amp;amp; '/'&amp;amp; &lt;STRONG&gt;vIpAddress&lt;/STRONG&gt; &amp;amp;';timeout=30;method=GET;autoDetectResponseType=true;keyGenerationStrategy=0;useWindowsAuthentication=false;useCertificate=No;certificateStoreLocation=CurrentUser;certificateStoreName=My;PaginationType=None;XUserId=&lt;STRONG&gt;TestUse&lt;/STRONG&gt;;XPassword=&lt;STRONG&gt;TestUserPsw&lt;/STRONG&gt;;';&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;CUSTOM CONNECT TO "$(vConnection)";&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;RestConnectorMasterTable:&lt;/P&gt;
&lt;P&gt;SQL SELECT&lt;/P&gt;
&lt;P&gt;"ipAddress",&lt;/P&gt;
&lt;P&gt;"continentCode",&lt;/P&gt;
&lt;P&gt;"continentName",&lt;/P&gt;
&lt;P&gt;"countryCode",&lt;/P&gt;
&lt;P&gt;"countryName",&lt;/P&gt;
&lt;P&gt;"stateProv",&lt;/P&gt;
&lt;P&gt;"city"&lt;/P&gt;
&lt;P&gt;FROM JSON (wrap on) "root";&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;[root]:&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;[ipAddress],&lt;/P&gt;
&lt;P&gt;[continentCode],&lt;/P&gt;
&lt;P&gt;[continentName],&lt;/P&gt;
&lt;P&gt;[countryCode],&lt;/P&gt;
&lt;P&gt;[countryName],&lt;/P&gt;
&lt;P&gt;[stateProv],&lt;/P&gt;
&lt;P&gt;[city]&lt;/P&gt;
&lt;P&gt;RESIDENT RestConnectorMasterTable;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;DROP TABLE RestConnectorMasterTable;&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after this solution i have found also another easier way by using &lt;SPAN style="font-size: 13.3333px;"&gt;&lt;A class="jive-link-external-small" href="http://freegeoip.net/" rel="nofollow" target="_blank"&gt;http://freegeoip.net&lt;/A&gt;&lt;/SPAN&gt;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15094497601075346" jivemacro_uid="_15094497601075346"&gt;
&lt;P&gt;set vIpAddress='xxx.xxx.xxx.xxx';&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;let vConnection='Provider=QvRestConnector.exe;url=&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://freegeoip.net/csv/'&amp;amp;" rel="nofollow" target="_blank"&gt;http://freegeoip.net/csv/'&amp;amp;&lt;/A&gt;&lt;SPAN&gt; vIpAddress &amp;amp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;';timeout=30;method=GET;autoDetectResponseType=true;keyGenerationStrategy=0;useWindowsAuthentication=false;useCertificate=No;certificateStoreLocation=CurrentUser;certificateStoreName=My;PaginationType=None;XUserId=XXX;XPassword=XXX;';&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;CUSTOM CONNECT TO "$(vConnection)";&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;RestConnectorMasterTable:&lt;/P&gt;
&lt;P&gt;SQL SELECT&lt;/P&gt;
&lt;P&gt;"col_1",&lt;/P&gt;
&lt;P&gt;"col_2",&lt;/P&gt;
&lt;P&gt;"col_3",&lt;/P&gt;
&lt;P&gt;"col_4",&lt;/P&gt;
&lt;P&gt;"col_5",&lt;/P&gt;
&lt;P&gt;"col_6",&lt;/P&gt;
&lt;P&gt;"col_7",&lt;/P&gt;
&lt;P&gt;"col_8",&lt;/P&gt;
&lt;P&gt;"col_9",&lt;/P&gt;
&lt;P&gt;"col_10",&lt;/P&gt;
&lt;P&gt;"col_11"&lt;/P&gt;
&lt;P&gt;FROM CSV (header off, delimiter ",", quote """") "CSV_source";&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;[CSV_source]:&lt;/P&gt;
&lt;P&gt;LOAD [col_1],&lt;/P&gt;
&lt;P&gt;[col_2],&lt;/P&gt;
&lt;P&gt;[col_3],&lt;/P&gt;
&lt;P&gt;[col_4],&lt;/P&gt;
&lt;P&gt;[col_5],&lt;/P&gt;
&lt;P&gt;[col_6],&lt;/P&gt;
&lt;P&gt;[col_7],&lt;/P&gt;
&lt;P&gt;[col_8],&lt;/P&gt;
&lt;P&gt;[col_9],&lt;/P&gt;
&lt;P&gt;[col_10],&lt;/P&gt;
&lt;P&gt;[col_11]&lt;/P&gt;
&lt;P&gt;RESIDENT RestConnectorMasterTable;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;DROP TABLE RestConnectorMasterTable;&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By using both soultion, the result is the same:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2017-10-31 12_36_25-_GeoIP _ Sistema di visualizzazione modello dati - Qlik Sense.png" class="jive-image image-1" src="/legacyfs/online/181605_2017-10-31 12_36_25-_GeoIP _ Sistema di visualizzazione modello dati - Qlik Sense.png" style="height: 98px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Oct 2017 11:36:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Get-Geolocation-Data-from-IP-by-using-QlikSense-Rest-Connector/m-p/1394581#M32238</guid>
      <dc:creator>micheledenardi</dc:creator>
      <dc:date>2017-10-31T11:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: Get Geolocation Data from IP by using QlikSense Rest Connector</title>
      <link>https://community.qlik.com/t5/App-Development/Get-Geolocation-Data-from-IP-by-using-QlikSense-Rest-Connector/m-p/1961821#M79297</link>
      <description>&lt;P&gt;olá, estou tentando usar esse script e sempre da erro.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2022 14:13:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Get-Geolocation-Data-from-IP-by-using-QlikSense-Rest-Connector/m-p/1961821#M79297</guid>
      <dc:creator>davyd</dc:creator>
      <dc:date>2022-07-28T14:13:13Z</dc:date>
    </item>
  </channel>
</rss>

