<?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 Reverse Geocoding and Point in Polygon Python Scripts in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/reverse-geocoding-and-point-in-polygon-python/m-p/152892#M11823</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a hosted feature service that is being updated with Arcgis Quick Capture. When the record is submitted I would like the address and the zone to be calculated based on the coordinates for each record. In Survey 123 connect that is very easily doable with&amp;nbsp;JS functions, but with Quick Capture I am not sure how to set it up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to say (not sure it matters) that initially the feature service was created with Survey 123 connect, because it's just very confusing (for me) to create a normal feature service in Arcgis Pro so it meets all the requirements&amp;nbsp;of Quick Capture. So I just created the regular form in Survey 123 with select_one question, image question, latitude and longitude and some default text questions. Then I used this feature service to create Quick Capture project. So Survey 123 and Quck Capture update the same feature service.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My thoughts were (I've just started learning python, don't know a lot yet) to create 2 new empty fields in the feature service that I want to update and to create 2 python scripts - Geocoding and Point in Polygon, and schedule them to calculate the address and the zone every certain period of time for new&amp;nbsp;records and update the input feature service by adding address and the zone into these 2 new empty fields that I created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did this (and I did it completely wrong):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Geocoding:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My script (standalone):&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="460978" class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/460978_pastedImage_3.png" /&gt;&lt;/P&gt;&lt;P&gt;I added the script to Arcgis Pro toolbox, and tried to run it, and of course it failed with this error:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="460977" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/460977_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know what's wrong here:&lt;/P&gt;&lt;P&gt;- &lt;STRONG&gt;arcpy.env.workspace&lt;/STRONG&gt; -&amp;nbsp;&amp;nbsp;As soon as my feature layer was created&amp;nbsp;in Survey 123,&amp;nbsp;it's not stored in geodatabase on my computer:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="460982" class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/460982_pastedImage_4.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What should I do?&lt;/P&gt;&lt;P&gt;- &lt;STRONG&gt;input - output feature services&lt;/STRONG&gt; - How should I modify the code to update the existing feature service, not to create one?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Point in Polygon&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found this&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/tool-reference/data-management/feature-to-polygon.htm"&gt;https://pro.arcgis.com/en/pro-app/tool-reference/data-management/feature-to-polygon.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But&amp;nbsp;there going to be the same problem I suppose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know I can update online feature services with jupyter notebooks, BUT. How do i actually schedule it to run? I mean the notebook is for instant result, I know you can export is as a script, but can you actually schedule it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me figure this out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Yulia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Oct 2019 21:21:55 GMT</pubDate>
    <dc:creator>YuliaMamonova</dc:creator>
    <dc:date>2019-10-02T21:21:55Z</dc:date>
    <item>
      <title>Reverse Geocoding and Point in Polygon Python Scripts</title>
      <link>https://community.esri.com/t5/python-questions/reverse-geocoding-and-point-in-polygon-python/m-p/152892#M11823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a hosted feature service that is being updated with Arcgis Quick Capture. When the record is submitted I would like the address and the zone to be calculated based on the coordinates for each record. In Survey 123 connect that is very easily doable with&amp;nbsp;JS functions, but with Quick Capture I am not sure how to set it up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to say (not sure it matters) that initially the feature service was created with Survey 123 connect, because it's just very confusing (for me) to create a normal feature service in Arcgis Pro so it meets all the requirements&amp;nbsp;of Quick Capture. So I just created the regular form in Survey 123 with select_one question, image question, latitude and longitude and some default text questions. Then I used this feature service to create Quick Capture project. So Survey 123 and Quck Capture update the same feature service.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My thoughts were (I've just started learning python, don't know a lot yet) to create 2 new empty fields in the feature service that I want to update and to create 2 python scripts - Geocoding and Point in Polygon, and schedule them to calculate the address and the zone every certain period of time for new&amp;nbsp;records and update the input feature service by adding address and the zone into these 2 new empty fields that I created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did this (and I did it completely wrong):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Geocoding:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My script (standalone):&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="460978" class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/460978_pastedImage_3.png" /&gt;&lt;/P&gt;&lt;P&gt;I added the script to Arcgis Pro toolbox, and tried to run it, and of course it failed with this error:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="460977" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/460977_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know what's wrong here:&lt;/P&gt;&lt;P&gt;- &lt;STRONG&gt;arcpy.env.workspace&lt;/STRONG&gt; -&amp;nbsp;&amp;nbsp;As soon as my feature layer was created&amp;nbsp;in Survey 123,&amp;nbsp;it's not stored in geodatabase on my computer:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="460982" class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/460982_pastedImage_4.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What should I do?&lt;/P&gt;&lt;P&gt;- &lt;STRONG&gt;input - output feature services&lt;/STRONG&gt; - How should I modify the code to update the existing feature service, not to create one?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Point in Polygon&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found this&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/tool-reference/data-management/feature-to-polygon.htm"&gt;https://pro.arcgis.com/en/pro-app/tool-reference/data-management/feature-to-polygon.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But&amp;nbsp;there going to be the same problem I suppose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know I can update online feature services with jupyter notebooks, BUT. How do i actually schedule it to run? I mean the notebook is for instant result, I know you can export is as a script, but can you actually schedule it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me figure this out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Yulia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Oct 2019 21:21:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/reverse-geocoding-and-point-in-polygon-python/m-p/152892#M11823</guid>
      <dc:creator>YuliaMamonova</dc:creator>
      <dc:date>2019-10-02T21:21:55Z</dc:date>
    </item>
  </channel>
</rss>

