<?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>idea Re: GeoAnalytics: Improve  &amp;quot;NamedPointLookup&amp;quot; functionalities in order obtain a sufficient quality of detection &amp;amp; search - Status changed to: Closed - Duplicate in Suggest an Idea</title>
    <link>https://community.qlik.com/t5/Suggest-an-Idea/GeoAnalytics-Improve-quot-NamedPointLookup-quot-functionalities/idc-p/1777911#M4848</link>
    <description>&lt;P&gt;Hi team, I noticed this was submitted twice, we have to close 1 as a duplicate. Please add likes and comments to the first post here:&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Ideas/GeoAnalytics-Improve-quot-NamedPointLookup-quot-functionalities/idi-p/1775533" target="_blank"&gt;https://community.qlik.com/t5/Ideas/GeoAnalytics-Improve-quot-NamedPointLookup-quot-functionalities/idi-p/1775533&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Meghann&lt;/P&gt;</description>
    <pubDate>Wed, 27 Jan 2021 22:03:34 GMT</pubDate>
    <dc:creator>Meghann_MacDonald</dc:creator>
    <dc:date>2021-01-27T22:03:34Z</dc:date>
    <item>
      <title>GeoAnalytics: Improve  "NamedPointLookup" functionalities in order obtain a sufficient quality of detection &amp; search</title>
      <link>https://community.qlik.com/t5/Suggest-an-Idea/GeoAnalytics-Improve-quot-NamedPointLookup-quot-functionalities/idi-p/1775512</link>
      <description>&lt;P&gt;When using&amp;nbsp;"NamedPointLookup" ,&amp;nbsp;&lt;SPAN&gt;all entries in the location database get matches for alternative spellings from&amp;nbsp;&lt;/SPAN&gt;&lt;A href="http://geonames.org/" target="_blank" rel="noopener"&gt;geonames.org&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;However,&amp;nbsp;&lt;SPAN&gt;if a city has dashes in its name like 'La Roche-sur-Yon' or space like "La Roche sur Yon", NamedPointLookup does not often return a correct result.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Workaround exists like&amp;nbsp;&amp;nbsp;&lt;A href="https://support.qlik.com/articles/000060042" target="_self"&gt;https://support.qlik.com/articles/000060042&lt;/A&gt;&amp;nbsp;&amp;nbsp;and&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Qlik-GeoAnalytics-Documents/How-to-improve-the-lookup-accuracy/ta-p/1553461&amp;nbsp;" target="_self"&gt;https://community.qlik.com/t5/Qlik-GeoAnalytics-Documents/How-to-improve-the-lookup-accuracy/ta-p/1553461&amp;nbsp;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;But&amp;nbsp; we cannot modify the data entered by users into data sources and it is not possible to modify the script every day when a new data source about a city name is not exactly what "NamedPointLookup" expected to detect&amp;nbsp;the GPS coordinates.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thus, I suggest an improvement of "NamedPointLookup"&amp;nbsp;to detect at least a space or dash character&amp;nbsp;entered into a city name. (for example), thus obtain a&amp;nbsp;sufficient quality of&amp;nbsp;detection of city's GPS coordinates,&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2021 22:01:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Suggest-an-Idea/GeoAnalytics-Improve-quot-NamedPointLookup-quot-functionalities/idi-p/1775512</guid>
      <dc:creator>Joseph_Musekura</dc:creator>
      <dc:date>2021-01-27T22:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: GeoAnalytics: Improve  "NamedPointLookup" functionalities in order obtain a sufficient quality of detection &amp; search</title>
      <link>https://community.qlik.com/t5/Suggest-an-Idea/GeoAnalytics-Improve-quot-NamedPointLookup-quot-functionalities/idc-p/1775539#M4778</link>
      <description>&lt;P&gt;View attached file for this improvment idea :&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Ideas/GeoAnalytics-Improve-quot-NamedPointLookup-quot-functionalities/idi-p/1775533" target="_blank" rel="noopener"&gt;https://community.qlik.com/t5/Ideas/GeoAnalytics-Improve-quot-NamedPointLookup-quot-functionalities/idi-p/1775533&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="exemple.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/47380iE6C9FE9C4E764782/image-size/large?v=v2&amp;amp;px=999" role="button" title="exemple.png" alt="exemple.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Script used :&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;CityDetection:
LOAD * INLINE [
Id, CityCountryName
1, "La Roche-sur-Yon,FR"
2,  "La Roche sur Yon,FR"
3, "Saint-Gilles-Croix-de-Vie,FR"
4, "Saint-Gilles Croix de Vie,FR"
5, "La Rochelle,FR"
6, "La  Rochelle,FR"
];

LIB CONNECT TO 'GeoAnalyticsPlusCloud';

/* Generated by GeoAnalytics for operation NamedPointLookup ---------------------- */
[_inlineMap_]:
mapping LOAD * inline [
_char_, _utf_
"'", '\u0027'
'"', '\u0022'
"[", '\u005b'
"/", '\u002f'
"*", '\u002a'
";", '\u003b'
"}", '\u007d'
"{", '\u007b'
"`", '\u0060'
"´", '\u00b4'
"	", '\u0009'
];

IF FieldNumber('Id', 'CityDetection') = 0 THEN
	call InvalidInlineData('The field Id in CityDetection is not available');
END IF
IF FieldNumber('CityCountryName', 'CityDetection') = 0 THEN
	call InvalidInlineData('The field CityCountryName in CityDetection is not available');
END IF
Let [CityDetectionInlineTable] = 'Id' &amp;amp; Chr(9) &amp;amp; 'CityCountryName';
Let numRows = NoOfRows('CityDetection');
Let chunkSize = 1000;
Let chunks = numRows/chunkSize;
For n = 0 to chunks
	Let chunkText = '';
	Let chunk = n*chunkSize;
	For i = 0 To chunkSize-1
		Let row = '';
		Let rowNr = chunk+i;
		Exit for when rowNr &amp;gt;= numRows;
		For Each f In 'Id', 'CityCountryName'
			row = row &amp;amp; Chr(9) &amp;amp; MapSubString('_inlineMap_', Peek('$(f)', $(rowNr), 'CityDetection'));
		Next
		chunkText = chunkText &amp;amp; Chr(10) &amp;amp; Mid('$(row)', 2);
	Next
	[CityDetectionInlineTable] = [CityDetectionInlineTable] &amp;amp; chunkText;
Next
chunkText=''


[LookupResult]:
SQL SELECT [CityCountryName], [CityDetection_Geometry], [CityDetection_Name], [CountryIso2] FROM NamedPointLookup(nameField='CityCountryName', type='P*', country='', nameTable='CityDetection')
DATASOURCE CityDetection INLINE tableName='CityDetection', tableFields='Id,CityCountryName', geometryType='NONE', loadDistinct='NO', suffix='', crs='Auto' {$(CityDetectionInlineTable)}
;
tag field [CityCountryName] with '$primarykey';
tag field [CityDetection_Geometry] with '$geopoint';
tag field [CityCountryName] with '$geoname';
tag field [CityDetection_Geometry] with '$relates_CityCountryName';
tag field [CityCountryName] with '$relates_CityDetection_Geometry';

[CityDetectionInlineTable] = '';
/* End GeoAnalytics operation NamedPointLookup ----------------------------------- */

LEFT JOIN(CityDetection)
LOAD *
RESIDENT [LookupResult];

DROP TABLE [LookupResult];&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2021 16:45:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Suggest-an-Idea/GeoAnalytics-Improve-quot-NamedPointLookup-quot-functionalities/idc-p/1775539#M4778</guid>
      <dc:creator>Florent</dc:creator>
      <dc:date>2021-01-19T16:45:58Z</dc:date>
    </item>
    <item>
      <title>Re: GeoAnalytics: Improve  "NamedPointLookup" functionalities in order obtain a sufficient quality of detection &amp; search - Status changed to: Closed - Duplicate</title>
      <link>https://community.qlik.com/t5/Suggest-an-Idea/GeoAnalytics-Improve-quot-NamedPointLookup-quot-functionalities/idc-p/1777911#M4848</link>
      <description>&lt;P&gt;Hi team, I noticed this was submitted twice, we have to close 1 as a duplicate. Please add likes and comments to the first post here:&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Ideas/GeoAnalytics-Improve-quot-NamedPointLookup-quot-functionalities/idi-p/1775533" target="_blank"&gt;https://community.qlik.com/t5/Ideas/GeoAnalytics-Improve-quot-NamedPointLookup-quot-functionalities/idi-p/1775533&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Meghann&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2021 22:03:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Suggest-an-Idea/GeoAnalytics-Improve-quot-NamedPointLookup-quot-functionalities/idc-p/1777911#M4848</guid>
      <dc:creator>Meghann_MacDonald</dc:creator>
      <dc:date>2021-01-27T22:03:34Z</dc:date>
    </item>
  </channel>
</rss>

