<?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 Get geolocation (latitude and longitude) using Google API in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Get-geolocation-latitude-and-longitude-using-Google-API/m-p/1453651#M434776</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an issue when getting the latitude and longitude for a city. The problem is as follows: roci&lt;/P&gt;&lt;P&gt;Lets say I have 10 cities. I run the script below. The first time I get a result for 8 cities, the next time for 7, then for 5 or 8, but never the full 10. The result is totally random. So, the first time city A can be found, the next time the result is empty. What am I doing wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15140351754435289" jivemacro_uid="_15140351754435289" modifiedtitle="true"&gt;
&lt;P&gt;Location:&lt;BR /&gt;LOAD&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; City&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; , Country&lt;BR /&gt;FROM [Dimensions QVD\LocationTmp.qvd] (qvd)&lt;BR /&gt;;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Let noRows = NoOfRows('Location')-1;&lt;BR /&gt; &lt;BR /&gt;for i=0 to $(noRows)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; let b = peek('City',$(i),'Location');&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; let c = peek('Country',$(i),'Location');&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;GeocodeResponse:&lt;BR /&gt;LOAD&lt;BR /&gt;'$(b)'&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as LocationKey,&lt;BR /&gt;([result/geometry/location/lat])&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as Latitude,&lt;BR /&gt;([result/geometry/location/lng])&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as Longitude&lt;BR /&gt;&lt;SPAN&gt;FROM [&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://maps.googleapis.com/maps/api/geocode/xml?address=$(b)+$(c)&amp;amp;sensor=false" rel="nofollow" target="_blank"&gt;http://maps.googleapis.com/maps/api/geocode/xml?address=$(b)+$(c)&amp;amp;sensor=false&lt;/A&gt;&lt;SPAN&gt;] (XmlSimple, Table is [GeocodeResponse]);&lt;/SPAN&gt;&lt;BR /&gt;sleep 500;&lt;BR /&gt;next i;&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 23 Dec 2017 13:22:51 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-12-23T13:22:51Z</dc:date>
    <item>
      <title>Get geolocation (latitude and longitude) using Google API</title>
      <link>https://community.qlik.com/t5/QlikView/Get-geolocation-latitude-and-longitude-using-Google-API/m-p/1453651#M434776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an issue when getting the latitude and longitude for a city. The problem is as follows: roci&lt;/P&gt;&lt;P&gt;Lets say I have 10 cities. I run the script below. The first time I get a result for 8 cities, the next time for 7, then for 5 or 8, but never the full 10. The result is totally random. So, the first time city A can be found, the next time the result is empty. What am I doing wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15140351754435289" jivemacro_uid="_15140351754435289" modifiedtitle="true"&gt;
&lt;P&gt;Location:&lt;BR /&gt;LOAD&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; City&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; , Country&lt;BR /&gt;FROM [Dimensions QVD\LocationTmp.qvd] (qvd)&lt;BR /&gt;;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Let noRows = NoOfRows('Location')-1;&lt;BR /&gt; &lt;BR /&gt;for i=0 to $(noRows)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; let b = peek('City',$(i),'Location');&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; let c = peek('Country',$(i),'Location');&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;GeocodeResponse:&lt;BR /&gt;LOAD&lt;BR /&gt;'$(b)'&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as LocationKey,&lt;BR /&gt;([result/geometry/location/lat])&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as Latitude,&lt;BR /&gt;([result/geometry/location/lng])&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as Longitude&lt;BR /&gt;&lt;SPAN&gt;FROM [&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://maps.googleapis.com/maps/api/geocode/xml?address=$(b)+$(c)&amp;amp;sensor=false" rel="nofollow" target="_blank"&gt;http://maps.googleapis.com/maps/api/geocode/xml?address=$(b)+$(c)&amp;amp;sensor=false&lt;/A&gt;&lt;SPAN&gt;] (XmlSimple, Table is [GeocodeResponse]);&lt;/SPAN&gt;&lt;BR /&gt;sleep 500;&lt;BR /&gt;next i;&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Dec 2017 13:22:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-geolocation-latitude-and-longitude-using-Google-API/m-p/1453651#M434776</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-23T13:22:51Z</dc:date>
    </item>
    <item>
      <title>Re: Get geolocation (latitude and longitude) using Google API</title>
      <link>https://community.qlik.com/t5/QlikView/Get-geolocation-latitude-and-longitude-using-Google-API/m-p/1453652#M434777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess its because you dont have an API Key.&lt;/P&gt;&lt;P&gt;You can register here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://console.developers.google.com/projectselector/apis/credentials?pli=1&amp;amp;supportedpurview=project" title="https://console.developers.google.com/projectselector/apis/credentials?pli=1&amp;amp;supportedpurview=project"&gt;https://console.developers.google.com/projectselector/apis/credentials?pli=1&amp;amp;supportedpurview=project&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Dec 2017 13:48:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-geolocation-latitude-and-longitude-using-Google-API/m-p/1453652#M434777</guid>
      <dc:creator>Frank_Hartmann</dc:creator>
      <dc:date>2017-12-23T13:48:01Z</dc:date>
    </item>
  </channel>
</rss>

