<?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: Data Services address/geocode distance calculation functionality in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/data-services-address-geocode-distance-calculation-functionality/qaa-p/376419#M31166</link>
    <description>&lt;P&gt;Hi Brad, We have almost the same requirement to find distances between two Zip codes. Can you share anything to get insight how to do this?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kalpesh&lt;/P&gt;</description>
    <pubDate>Wed, 31 May 2017 16:55:57 GMT</pubDate>
    <dc:creator>kalpesh_pandey</dc:creator>
    <dc:date>2017-05-31T16:55:57Z</dc:date>
    <item>
      <title>Data Services address/geocode distance calculation functionality</title>
      <link>https://community.sap.com/t5/technology-q-a/data-services-address-geocode-distance-calculation-functionality/qaq-p/376417</link>
      <description>&lt;P&gt;From my understanding, Data Services cannot calculate the distance between two addresses/geocodes (i.e. there's no out of the box transform or function).  Has anyone come up with a solution to do this in Data Services?  Thanks...&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2017 16:52:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/data-services-address-geocode-distance-calculation-functionality/qaq-p/376417</guid>
      <dc:creator>brad_schroeter2</dc:creator>
      <dc:date>2017-02-24T16:52:43Z</dc:date>
    </item>
    <item>
      <title>Re: Data Services address/geocode distance calculation functionality</title>
      <link>https://community.sap.com/t5/technology-q-a/data-services-address-geocode-distance-calculation-functionality/qaa-p/376418#M31165</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;P&gt;DS doesn't have the built-in math functions to do this via a custom function.  So I ended up using the user-defined transform and writing Python code.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2017 21:23:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/data-services-address-geocode-distance-calculation-functionality/qaa-p/376418#M31165</guid>
      <dc:creator>brad_schroeter2</dc:creator>
      <dc:date>2017-03-09T21:23:08Z</dc:date>
    </item>
    <item>
      <title>Re: Data Services address/geocode distance calculation functionality</title>
      <link>https://community.sap.com/t5/technology-q-a/data-services-address-geocode-distance-calculation-functionality/qaa-p/376419#M31166</link>
      <description>&lt;P&gt;Hi Brad, We have almost the same requirement to find distances between two Zip codes. Can you share anything to get insight how to do this?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kalpesh&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2017 16:55:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/data-services-address-geocode-distance-calculation-functionality/qaa-p/376419#M31166</guid>
      <dc:creator>kalpesh_pandey</dc:creator>
      <dc:date>2017-05-31T16:55:57Z</dc:date>
    </item>
    <item>
      <title>Re: Data Services address/geocode distance calculation functionality</title>
      <link>https://community.sap.com/t5/technology-q-a/data-services-address-geocode-distance-calculation-functionality/qaa-p/376420#M31167</link>
      <description>&lt;P&gt;I created a user-defined transform which looks like this:&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/68296-9-1-2017-3-16-46-pm.jpg" /&gt;&lt;/P&gt;
  &lt;P&gt;And here's the Python editor:&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/68297-9-1-2017-3-18-19-pm.jpg" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2017 20:20:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/data-services-address-geocode-distance-calculation-functionality/qaa-p/376420#M31167</guid>
      <dc:creator>brad_schroeter2</dc:creator>
      <dc:date>2017-09-01T20:20:37Z</dc:date>
    </item>
    <item>
      <title>Re: Data Services address/geocode distance calculation functionality</title>
      <link>https://community.sap.com/t5/technology-q-a/data-services-address-geocode-distance-calculation-functionality/qaa-p/376421#M31168</link>
      <description>&lt;P&gt;Hi Brad - glad this works but just a couple suggestions:&lt;/P&gt;
  &lt;UL&gt;
   &lt;LI&gt;Don't create the variables "= locals()" and especially don't modify them beyond that. Locals() is internal to Python and their &lt;A href="https://docs.python.org/3.6/library/functions.html#locals"&gt;documentation specifically mentions that it should not be modified&lt;/A&gt;, which you are doing in your code&lt;/LI&gt;
   &lt;LI&gt;It doesn't look like your variables need to be dictionary objects at all, so instead of "latitude1[u"LATITUDE"]" just create a variable called "latitude"&lt;/LI&gt;
   &lt;LI&gt;You don't need to call "del var" on all your variables. Python garbage collects its variables so this doesn't do what you expect, and is considered "unpythonic" to make this type of call&lt;/LI&gt;
  &lt;/UL&gt;</description>
      <pubDate>Fri, 06 Oct 2017 19:23:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/data-services-address-geocode-distance-calculation-functionality/qaa-p/376421#M31168</guid>
      <dc:creator>former_member492038</dc:creator>
      <dc:date>2017-10-06T19:23:34Z</dc:date>
    </item>
  </channel>
</rss>

