<?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>Question Re: SAP HANA Spatial Reverse Geocoding in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/sap-hana-spatial-reverse-geocoding/qaa-p/12349392#M4624768</link>
    <description>&lt;P&gt;To be more precise, here is what I managed to do, and what I would like to do:&lt;/P&gt;&lt;P&gt;What I managed to do: I have a table of POINTS: TEST_POINTS defined as Key: POINTID (Integer), LATITUDE (DOUBLE), LONGITUDE(DOUBLE).&lt;/P&gt;&lt;P&gt;I want to get the 10th nearest address from each point. I have created a flowgraph that include the Geocode transformation to reverse all points from  TEST_POINTS (LATITUDE/LONGITUDE). I get as Results 2 TABLES : REVSERSE_GEOCODE with the POINTID and the GEO_INFO_CODE (telling everything is ok or not), and the SEARCHRESULTS table containing the 10th nearest Addresses (get from the GEOCODE and ADDRESS Directories).&lt;/P&gt;&lt;P&gt;This is working fine but as a flowgraph.&lt;/P&gt;&lt;P&gt;What I would like to have is a way to get the 10th nearest addresses directly from SQL. Taking as input all the rows of TEST_POINTs and get as a results the 10th nearest addresses directly without having to execute the flowgraph. I don't know how, maybe using a function or a procedure but only with sql code. And also using standard ADDRESS and GEOCODE Directories from SAP (Which are already installed on my HANA DB).&lt;/P&gt;&lt;P&gt;I See that in the HANA Documentation (also mentioned by Mathias):&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.sap.com/viewer/cbbbfc20871e4559abfd45a78ad58c02/2.0.05/en-US/755a567dcb2c4708ba869a03e4c9a4f7.html" target="test_blank"&gt;https://help.sap.com/viewer/cbbbfc20871e4559abfd45a78ad58c02/2.0.05/en-US/755a567dcb2c4708ba869a03e4c9a4f7.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;There SAP Says: &lt;/P&gt;&lt;P&gt;"This is a solution that has high
performance with no third party data and no need to use a web service, and it is not
necessary to create a flowgraph using Web-based Development Workbench"&lt;/P&gt;&lt;P&gt;I have the address/geocode directories subscription. And they are installed in my HANA System.&lt;/P&gt;&lt;P&gt;But I am lost, How to do it ? Maybe I am missing some HANA Knowledge ? Do I need to create the INDEX and HOW ? How do I do the Search ?...&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;</description>
    <pubDate>Mon, 08 Feb 2021 11:36:09 GMT</pubDate>
    <dc:creator>Guillaume2</dc:creator>
    <dc:date>2021-02-08T11:36:09Z</dc:date>
    <item>
      <title>SAP HANA Spatial Reverse Geocoding</title>
      <link>https://community.sap.com/t5/technology-q-a/sap-hana-spatial-reverse-geocoding/qaq-p/12349389</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
  &lt;P&gt;I try to find a way to reverse geocode a lat/long to an address but using the address/geo directories from SAP HANA.&lt;/P&gt;
  &lt;P&gt;I managed to do so with SDQ Flowgraphs using the geocode control. But I woud like to do the reverse geocoding directly from SQL or from javascript. &lt;/P&gt;
  &lt;P&gt;Is someone knows if it is possible ? and if so, could give me some infos ?&lt;/P&gt;</description>
      <pubDate>Mon, 08 Feb 2021 09:17:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sap-hana-spatial-reverse-geocoding/qaq-p/12349389</guid>
      <dc:creator>Guillaume2</dc:creator>
      <dc:date>2021-02-08T09:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: SAP HANA Spatial Reverse Geocoding</title>
      <link>https://community.sap.com/t5/technology-q-a/sap-hana-spatial-reverse-geocoding/qaa-p/12349390#M4624766</link>
      <description>&lt;P&gt;Hi Guillaume,&lt;/P&gt;&lt;P&gt;I am assuming that you do not want to call remote geocoding APIs as you mention, that you would like to use the directories on SAP HANA? For the on-premise versions of SAP HANA, there is an in-database geocoding available. More details can be found in the respective documentation:&lt;BR /&gt;&lt;A href="https://help.sap.com/viewer/cbbbfc20871e4559abfd45a78ad58c02/2.0.05/en-US/755a567dcb2c4708ba869a03e4c9a4f7.html" target="test_blank"&gt;https://help.sap.com/viewer/cbbbfc20871e4559abfd45a78ad58c02/2.0.05/en-US/755a567dcb2c4708ba869a03e4c9a4f7.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Let me know, if this is what you were looking for.&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Mathias&lt;/P&gt;</description>
      <pubDate>Mon, 08 Feb 2021 09:27:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sap-hana-spatial-reverse-geocoding/qaa-p/12349390#M4624766</guid>
      <dc:creator>mkemeter</dc:creator>
      <dc:date>2021-02-08T09:27:06Z</dc:date>
    </item>
    <item>
      <title>Re: SAP HANA Spatial Reverse Geocoding</title>
      <link>https://community.sap.com/t5/technology-q-a/sap-hana-spatial-reverse-geocoding/qaa-p/12349391#M4624767</link>
      <description>&lt;P&gt;es this what I want to do. But I do not understand how to implement it, How to use the index etc...&lt;/P&gt;&lt;P&gt;The only way I found to do it is by using a flowgraph. But I do not want to use flowgraph but direct SQL.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;G.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Feb 2021 10:21:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sap-hana-spatial-reverse-geocoding/qaa-p/12349391#M4624767</guid>
      <dc:creator>Guillaume2</dc:creator>
      <dc:date>2021-02-08T10:21:34Z</dc:date>
    </item>
    <item>
      <title>Re: SAP HANA Spatial Reverse Geocoding</title>
      <link>https://community.sap.com/t5/technology-q-a/sap-hana-spatial-reverse-geocoding/qaa-p/12349392#M4624768</link>
      <description>&lt;P&gt;To be more precise, here is what I managed to do, and what I would like to do:&lt;/P&gt;&lt;P&gt;What I managed to do: I have a table of POINTS: TEST_POINTS defined as Key: POINTID (Integer), LATITUDE (DOUBLE), LONGITUDE(DOUBLE).&lt;/P&gt;&lt;P&gt;I want to get the 10th nearest address from each point. I have created a flowgraph that include the Geocode transformation to reverse all points from  TEST_POINTS (LATITUDE/LONGITUDE). I get as Results 2 TABLES : REVSERSE_GEOCODE with the POINTID and the GEO_INFO_CODE (telling everything is ok or not), and the SEARCHRESULTS table containing the 10th nearest Addresses (get from the GEOCODE and ADDRESS Directories).&lt;/P&gt;&lt;P&gt;This is working fine but as a flowgraph.&lt;/P&gt;&lt;P&gt;What I would like to have is a way to get the 10th nearest addresses directly from SQL. Taking as input all the rows of TEST_POINTs and get as a results the 10th nearest addresses directly without having to execute the flowgraph. I don't know how, maybe using a function or a procedure but only with sql code. And also using standard ADDRESS and GEOCODE Directories from SAP (Which are already installed on my HANA DB).&lt;/P&gt;&lt;P&gt;I See that in the HANA Documentation (also mentioned by Mathias):&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.sap.com/viewer/cbbbfc20871e4559abfd45a78ad58c02/2.0.05/en-US/755a567dcb2c4708ba869a03e4c9a4f7.html" target="test_blank"&gt;https://help.sap.com/viewer/cbbbfc20871e4559abfd45a78ad58c02/2.0.05/en-US/755a567dcb2c4708ba869a03e4c9a4f7.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;There SAP Says: &lt;/P&gt;&lt;P&gt;"This is a solution that has high
performance with no third party data and no need to use a web service, and it is not
necessary to create a flowgraph using Web-based Development Workbench"&lt;/P&gt;&lt;P&gt;I have the address/geocode directories subscription. And they are installed in my HANA System.&lt;/P&gt;&lt;P&gt;But I am lost, How to do it ? Maybe I am missing some HANA Knowledge ? Do I need to create the INDEX and HOW ? How do I do the Search ?...&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Feb 2021 11:36:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sap-hana-spatial-reverse-geocoding/qaa-p/12349392#M4624768</guid>
      <dc:creator>Guillaume2</dc:creator>
      <dc:date>2021-02-08T11:36:09Z</dc:date>
    </item>
    <item>
      <title>Re: SAP HANA Spatial Reverse Geocoding</title>
      <link>https://community.sap.com/t5/technology-q-a/sap-hana-spatial-reverse-geocoding/qaa-p/12349393#M4624769</link>
      <description>&lt;P&gt;Hi Guillaume,&lt;/P&gt;&lt;P&gt;The GEOCODE INDEX mentioned by Mathias can be used to do (forward) geocoding, but cannot be used to do reverse geocoding. If set up properly, it will automatically set the locations of addresses in a table, also on insertion of new records and on updates of existing records.&lt;/P&gt;&lt;P&gt;I'm not aware of a solution that can do reverse geocoding and find the 10 nearest addresses for a given location via SQL. However, I'm not an expert on SAP HANA Smart Data Integration and SAP HANA Smart Data Quality.&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;Stefan&lt;/P&gt;</description>
      <pubDate>Mon, 08 Feb 2021 14:57:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sap-hana-spatial-reverse-geocoding/qaa-p/12349393#M4624769</guid>
      <dc:creator>stefan_uhrig</dc:creator>
      <dc:date>2021-02-08T14:57:27Z</dc:date>
    </item>
    <item>
      <title>Re: SAP HANA Spatial Reverse Geocoding</title>
      <link>https://community.sap.com/t5/technology-q-a/sap-hana-spatial-reverse-geocoding/qaa-p/12349394#M4624770</link>
      <description>&lt;P&gt;Hi Stefan,&lt;/P&gt;&lt;P&gt;Thanks for your answer. So, ok INDEX GEOCODE will not work for reverse, I will try to search for other solution then.&lt;/P&gt;&lt;P&gt;But for the direct Geocoding (Address =&amp;gt; Geo Point), I have implemented it as the documentation says: using the GEOCODE INDEX. But nothing appear in the table:&lt;/P&gt;&lt;P&gt;I have created a Table :&lt;/P&gt;&lt;P&gt;Create COLUMN TABLE "TEST_POINTS_GEO" (&lt;BR /&gt;   "POINTID" Integer COMMENT 'Geo Point ID',&lt;BR /&gt;   "POINT_COUNTRY" NVARCHAR(30) COMMENT 'Country',&lt;BR /&gt;   "POINT_STATE" NVARCHAR(30) COMMENT 'State',&lt;BR /&gt;   "POINT_COUNTY" NVARCHAR(30) COMMENT 'County',&lt;BR /&gt;   "POINT_CITY" NVARCHAR(30) Comment 'City',&lt;BR /&gt;   "POINT_POSTALCODE" NVARCHAR(30) COMMENT 'Postal Code',&lt;BR /&gt;   "POINT_DISTRICT" NVARCHAR(30) COMMENT 'District',&lt;BR /&gt;   "POINT_STREET" NVARCHAR(30) COMMENT 'Street',&lt;BR /&gt;   "POINT_HOUSENUM" NVARCHAR(30) COMMENT 'House Number',&lt;BR /&gt;   "POINT_ADDR" NVARCHAR(30) COMMENT 'Address Line',&lt;BR /&gt;   "POINT_GEOCODE" ST_GEOMETRY COMMENT 'Geo Point as WKT',&lt;BR /&gt;   "LATITUDE" FLOAT COMMENT 'Latitude',&lt;BR /&gt;   "LONGITUDE" FLOAT COMMENT 'Longitude',&lt;BR /&gt;   PRIMARY KEY ("POINTID"))&lt;BR /&gt;COMMENT 'Test Points GeoCode'&lt;BR /&gt;UNLOAD PRIORITY 5 AUTO MERGE;&lt;/P&gt;&lt;P&gt;I have created the Index like that :&lt;/P&gt;&lt;P&gt;CREATE GEOCODE INDEX TEST_GEO ON "TEST_POINTS_GEO"("POINT_COUNTRY","POINT_STATE","POINT_CITY","POINT_POSTALCODE","POINT_STREET","POINT_HOUSENUM","POINT_ADDR","POINT_GEOCODE");&lt;/P&gt;&lt;P&gt;=&amp;gt; At this point everything is OK.&lt;/P&gt;&lt;P&gt;and I insert data into the table like That:&lt;/P&gt;&lt;P&gt;insert into "TEST_POINTS_GEO" (POINTID, POINT_COUNTRY, POINT_CITY, POINT_POSTALCODE, POINT_STREET, POINT_HOUSENUM) VALUES(&lt;BR /&gt;3,'FR','PARIS','75001','RUE DE RIVOLI','49');&lt;/P&gt;&lt;P&gt;The Row Appears in the TEST_POINTS_GEO, but no coordinates in the POINT_GEOCODE, nothing changed the value is still empty. Maybe I misunderstood something ??&lt;/P&gt;&lt;P&gt;regards.&lt;/P&gt;&lt;P&gt;G.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 08 Feb 2021 15:24:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sap-hana-spatial-reverse-geocoding/qaa-p/12349394#M4624770</guid>
      <dc:creator>Guillaume2</dc:creator>
      <dc:date>2021-02-08T15:24:19Z</dc:date>
    </item>
    <item>
      <title>Re: SAP HANA Spatial Reverse Geocoding</title>
      <link>https://community.sap.com/t5/technology-q-a/sap-hana-spatial-reverse-geocoding/qaa-p/12349395#M4624771</link>
      <description>&lt;P&gt;Hi Guillaume,&lt;/P&gt;&lt;P&gt;Have you set the geocode provider as described (https://help.sap.com/viewer/cbbbfc20871e4559abfd45a78ad58c02/2.0.05/en-US/93a156496e624230b797f40a3c907933.html): ALTER SYSTEM ALTER CONFIGURATION ('xsengine.ini','SYSTEM') set ('geocoding','provider') = 'local' WITH RECONFIGURE&lt;/P&gt;&lt;P&gt;Further setup instructions are available from &lt;A href="https://help.sap.com/viewer/cbbbfc20871e4559abfd45a78ad58c02/2.0.05/en-US/799246f744b44e38936d633e83784b15.html" target="test_blank"&gt;https://help.sap.com/viewer/cbbbfc20871e4559abfd45a78ad58c02/2.0.05/en-US/799246f744b44e38936d633e83784b15.html&lt;/A&gt;. It describes which columns must be mapped and mentions that you have to enable the script server.&lt;/P&gt;&lt;P&gt;If geocoding still does not work, have a look at view M_INDEXING_QUEUES to check if your address rows are scheduled for indexing (or have been indexed). As a last resort, check the index server and XS engine trace files for entries tagged with "geocoding" as described in &lt;A href="https://help.sap.com/viewer/cbbbfc20871e4559abfd45a78ad58c02/2.0.05/en-US/55bf350bad5a4d5c8265fbc5ec205851.html" target="test_blank"&gt;https://help.sap.com/viewer/cbbbfc20871e4559abfd45a78ad58c02/2.0.05/en-US/55bf350bad5a4d5c8265fbc5ec205851.html&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;Stefan&lt;/P&gt;</description>
      <pubDate>Tue, 09 Feb 2021 09:57:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sap-hana-spatial-reverse-geocoding/qaa-p/12349395#M4624771</guid>
      <dc:creator>stefan_uhrig</dc:creator>
      <dc:date>2021-02-09T09:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: SAP HANA Spatial Reverse Geocoding</title>
      <link>https://community.sap.com/t5/technology-q-a/sap-hana-spatial-reverse-geocoding/qaa-p/12349396#M4624772</link>
      <description>&lt;P&gt;Hello Mathias,&lt;/P&gt;&lt;P&gt;I finally found how to solve my point. I understand (Thanks to Stefan) that I cannot do Reverse-geocoding, with the INDEX. At least, I find the way to use it in the Forward geocoding.&lt;/P&gt;&lt;P&gt;Concerning the reverse Geocoding I will Ue my Flowgraph or an external API (like opencage).&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 14:16:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sap-hana-spatial-reverse-geocoding/qaa-p/12349396#M4624772</guid>
      <dc:creator>Guillaume2</dc:creator>
      <dc:date>2021-02-17T14:16:50Z</dc:date>
    </item>
  </channel>
</rss>

