Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Google Maps Implementation Issue

Hi All,

I am learning Qlikview and faced below issue while implementing google maps . I am using attached PDF as reference to do this scenario.

Code is as below :

Table1:

LOAD FirstName,

     LastName,

     City,

     ProductSold,

     Year

FROM

(ooxml, embedded labels, table is Sheet1);

let noRows = NoOfRows('Table1')-1;

for i=0 to $(noRows)

  let a=peek('FirstName',$(i),'Table1');

       let b=peek('LastName',$(i),'Table1');

       let c=peek('ProductSold',$(i),'Table1');

  let address=peek('City',$(i),'Table1');

     

Data:

  LOAD

  '$(a)' as FirstName,

  '$(b)' as LastName,

  '$(c)' as ProductSold,

  '$(address)' as Address

  ,subfield([Response/Placemark/Point/coordinates], ',' ,1) AS longitude,

  subfield([Response/Placemark/Point/coordinates], ',' ,2) AS latitude

  FROM [http://maps.google.com/maps/geo?q=$(address)&output=xml&oe=utf8&sensor=false] (XmlSimple, Table is [Data]);

next i;

1 Solution

Accepted Solutions
jpenuliar
Partner - Specialist III
Partner - Specialist III

the code in your Load section is using the old api.

Try Recode your Load script with the attached code.

View solution in original post

5 Replies
Siva_Sankar
Master II
Master II

Hi Puneet,

What is the issue you are facing? Are there any error messae?

Can you explain?

Not applicable
Author

Issue is:  0 rows are getting fetched in the second step for each of the rows .

Siva_Sankar
Master II
Master II

Can you upload your qvw file?

jpenuliar
Partner - Specialist III
Partner - Specialist III

the code in your Load section is using the old api.

Try Recode your Load script with the attached code.

Not applicable
Author

Thanks !!  It Worked .

Appreciate your quick help.