Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi Experts,
I am using Qlik Sense desktop 3.1 on Windows 10. I am trying to use Google Maps Geocoding REST API in my Qlik Sense application. The plan is use this API to retrieve the Lat, Long coordinates for the city dimension for maps based visualisation. The Google Maps API has following format
https://maps.googleapis.com/maps/api/geocode/json?address=Stockholm&key=YOUR_API_KEY
From the above url we can see that the address parameter is where I need to pass the city and it forms the part of the Query Paramters in the Qlik Rest Connector. My plan is to have a For loop and pass all the cities I have to address query parameter save the co-ordinates in a seperate table.
My Observation
Question
In the current release (Qlik Sense 3.1 Desktop)
Thanks in Advance.
regards,
Puneet
Hi Puneet,
Assuming you have not resolved this yet - here is what I have done to parameterise a query parameter
I used custom pagination to let QS provide me with a query template to use the For ... Next loop, initiated a counter (CounterA) to load the pages, and constructed the URL by passing the counter value.
RestConnectorMasterTable:
SQL Select .....
From ....
With Connection (URL "https://api.example.com/companies?page_number= $ (CounterA)" );
The loop was stopped when CounterA = total count.
Similarly, I am using a preexisting table to read field values and construct the URL to fetch only required details. So I would say yes, it is possible to 'parameterise' a query parameter. Check the documentation at Select REST data with the Data load editor ‒ Qlik Connectors
Also check Bjorn's response here - Re: REST CONNECTOR locate the Authorization token
hope this helps.
thanks,
Ajit