<?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 Problem with a REST connector using WITH CONNECTION in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Problem-with-a-REST-connector-using-WITH-CONNECTION/m-p/1537331#M9937</link>
    <description>&lt;P&gt;Hi, i have a question about using a rest connection.&lt;/P&gt;&lt;P&gt;I did two extractions on google using the same API with divergent results:&lt;/P&gt;&lt;P&gt;1- API by Browser&lt;/P&gt;&lt;P&gt;&lt;A href="https://maps.googleapis.com/maps/api/geocode/json?address=AV+NILO+PECANHA,1928,LJ,CENTRO(DC)DUQUE+DE+CAXIAS&amp;amp;key=MyKey" target="_blank"&gt;https://maps.googleapis.com/maps/api/geocode/json?address=AV+NILO+PECANHA,1928,LJ,CENTRO(DC)DUQUE+DE+CAXIAS&amp;amp;key=MyKey&lt;/A&gt;&lt;/P&gt;&lt;P&gt;2- API by Rest Connection&lt;/P&gt;&lt;PRE&gt;RestConnectorMasterTable:
SQL SELECT 
	"status",
	"__KEY_root",
	(SELECT 
		"formatted_address",
		"place_id",
		"__KEY_results",
		"__FK_results",
		(SELECT 
			"long_name",
			"short_name",
			"__KEY_address_components",
			"__FK_address_components",
			(SELECT 
				"@Value",
				"__FK_types"
			FROM "types" FK "__FK_types" ArrayValueAlias "@Value")
		FROM "address_components" PK "__KEY_address_components" FK "__FK_address_components"),
		(SELECT 
			"location_type",
			"__KEY_geometry",
			"__FK_geometry",
			(SELECT 
				"lat" AS "lat_u1",
				"lng" AS "lng_u1",
				"__FK_location"
			FROM "location" FK "__FK_location")
		FROM "geometry" PK "__KEY_geometry" FK "__FK_geometry"),
		(SELECT 
			"@Value" AS "@Value_u0",
			"__FK_types_u0"
		FROM "types" FK "__FK_types_u0" ArrayValueAlias "@Value_u0")
	FROM "results" PK "__KEY_results" FK "__FK_results")
  FROM JSON (wrap on) "root" PK "__KEY_root"
  WITH CONNECTION(Url"https://maps.googleapis.com/maps/api/geocode/json?address=AV+NILO+PECANHA,1928,LJ,CENTRO(DC),DUQUE+DE+CAXIAS&amp;amp;key=MyKey");&lt;/PRE&gt;&lt;P&gt;Results:&lt;/P&gt;&lt;P&gt;1 - Browser&lt;/P&gt;&lt;PRE&gt; "formatted_address" : "Av. Nilo Peçanha, 1928 - Parque Lafaiete, Duque de Caxias - RJ, 25015-500, Brasil",
         "geometry" : {
            "location" : {
               "lat" : -22.7890967,
               "lng" : -43.3272876&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;2-Qlik Sense&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 557px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/4849i348B0E8E45186B84/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I dont know why in this case i get a different lat long using the same API&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 06:43:06 GMT</pubDate>
    <dc:creator>eduardo_dimperio</dc:creator>
    <dc:date>2024-11-16T06:43:06Z</dc:date>
    <item>
      <title>Problem with a REST connector using WITH CONNECTION</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Problem-with-a-REST-connector-using-WITH-CONNECTION/m-p/1537331#M9937</link>
      <description>&lt;P&gt;Hi, i have a question about using a rest connection.&lt;/P&gt;&lt;P&gt;I did two extractions on google using the same API with divergent results:&lt;/P&gt;&lt;P&gt;1- API by Browser&lt;/P&gt;&lt;P&gt;&lt;A href="https://maps.googleapis.com/maps/api/geocode/json?address=AV+NILO+PECANHA,1928,LJ,CENTRO(DC)DUQUE+DE+CAXIAS&amp;amp;key=MyKey" target="_blank"&gt;https://maps.googleapis.com/maps/api/geocode/json?address=AV+NILO+PECANHA,1928,LJ,CENTRO(DC)DUQUE+DE+CAXIAS&amp;amp;key=MyKey&lt;/A&gt;&lt;/P&gt;&lt;P&gt;2- API by Rest Connection&lt;/P&gt;&lt;PRE&gt;RestConnectorMasterTable:
SQL SELECT 
	"status",
	"__KEY_root",
	(SELECT 
		"formatted_address",
		"place_id",
		"__KEY_results",
		"__FK_results",
		(SELECT 
			"long_name",
			"short_name",
			"__KEY_address_components",
			"__FK_address_components",
			(SELECT 
				"@Value",
				"__FK_types"
			FROM "types" FK "__FK_types" ArrayValueAlias "@Value")
		FROM "address_components" PK "__KEY_address_components" FK "__FK_address_components"),
		(SELECT 
			"location_type",
			"__KEY_geometry",
			"__FK_geometry",
			(SELECT 
				"lat" AS "lat_u1",
				"lng" AS "lng_u1",
				"__FK_location"
			FROM "location" FK "__FK_location")
		FROM "geometry" PK "__KEY_geometry" FK "__FK_geometry"),
		(SELECT 
			"@Value" AS "@Value_u0",
			"__FK_types_u0"
		FROM "types" FK "__FK_types_u0" ArrayValueAlias "@Value_u0")
	FROM "results" PK "__KEY_results" FK "__FK_results")
  FROM JSON (wrap on) "root" PK "__KEY_root"
  WITH CONNECTION(Url"https://maps.googleapis.com/maps/api/geocode/json?address=AV+NILO+PECANHA,1928,LJ,CENTRO(DC),DUQUE+DE+CAXIAS&amp;amp;key=MyKey");&lt;/PRE&gt;&lt;P&gt;Results:&lt;/P&gt;&lt;P&gt;1 - Browser&lt;/P&gt;&lt;PRE&gt; "formatted_address" : "Av. Nilo Peçanha, 1928 - Parque Lafaiete, Duque de Caxias - RJ, 25015-500, Brasil",
         "geometry" : {
            "location" : {
               "lat" : -22.7890967,
               "lng" : -43.3272876&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;2-Qlik Sense&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 557px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/4849i348B0E8E45186B84/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I dont know why in this case i get a different lat long using the same API&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 06:43:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Problem-with-a-REST-connector-using-WITH-CONNECTION/m-p/1537331#M9937</guid>
      <dc:creator>eduardo_dimperio</dc:creator>
      <dc:date>2024-11-16T06:43:06Z</dc:date>
    </item>
  </channel>
</rss>

