<?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 Re: ArcGIS World Geocoding Service Request URL in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcgis-world-geocoding-service-request-url/m-p/1127657#M63290</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1499"&gt;@ShanaBritt&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;Yes, I've seen that too. It was in my script already, actually. I understood that it should be used especially in a stand-alone script outside of Pro.&lt;/P&gt;</description>
    <pubDate>Mon, 20 Dec 2021 16:04:42 GMT</pubDate>
    <dc:creator>JaredPilbeam2</dc:creator>
    <dc:date>2021-12-20T16:04:42Z</dc:date>
    <item>
      <title>ArcGIS World Geocoding Service Request URL</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-world-geocoding-service-request-url/m-p/1124933#M63226</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm using example 4 of this help page to go off of: &lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/geocoding/geocode-addresses.htm#" target="_blank" rel="noopener"&gt;https://pro.arcgis.com/en/pro-app/latest/tool-reference/geocoding/geocode-addresses.htm#&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Excuse my ignorance, but I'm not sure what the full URL should be to access the ArcGIS World Geocoding Service. I'm guessing this is just a base URL in the example, so I'm looking for some direction as to what a complete URL would like?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;#ArcGIS World Geocoding Service URL
locator = r"https://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/ArcGIS World Geocoding Service"
#Locator parameters
fieldMap = ("\'Address or Place\' adcal VISIBLE NONE;Address2 &amp;lt;None&amp;gt; VISIBLE NONE;Address3 &amp;lt;None&amp;gt; VISIBLE NONE;" +
                  "Neighborhood &amp;lt;None&amp;gt; VISIBLE NONE;City city VISIBLE NONE;County &amp;lt;None&amp;gt; VISIBLE NONE;" +
                  "State state VISIBLE NONE;ZIP ZIP zip VISIBLE NONE;ZIP4 &amp;lt;None&amp;gt; VISIBLE NONE;" +
                  "Country &amp;lt;None&amp;gt; VISIBLE NONE")
gcName = "wasteRecyclingReport_geocode"
geocodeResult = os.path.join(out_location, gcName)
arcpy.geocoding.GeocodeAddresses(intable, locator, fieldMap, geocodeResult)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you run that you get:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;---------------------------------------------------------------------------
ExecuteError                              Traceback (most recent call last)
~\AppData\Local\Temp/ipykernel_15300/42733642.py in &amp;lt;module&amp;gt;
      7 gcName = "wasteRecyclingReport_geocode"
      8 geocodeResult = os.path.join(out_location, gcName)
----&amp;gt; 9 arcpy.geocoding.GeocodeAddresses(intable, locator, fieldMap, geocodeResult)

C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\geocoding.py in GeocodeAddresses(in_table, address_locator, in_address_fields, out_feature_class, out_relationship_type, country, location_type, category, output_fields)
    517         return retval
    518     except Exception as e:
--&amp;gt; 519         raise e
    520 
    521 @gptooldoc('PackageLocator_geocoding', None)

C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\geocoding.py in GeocodeAddresses(in_table, address_locator, in_address_fields, out_feature_class, out_relationship_type, country, location_type, category, output_fields)
    514     from arcpy.arcobjects.arcobjectconversion import convertArcObjectToPythonObject
    515     try:
--&amp;gt; 516         retval = convertArcObjectToPythonObject(gp.GeocodeAddresses_geocoding(*gp_fixargs((in_table, address_locator, in_address_fields, out_feature_class, out_relationship_type, country, location_type, category, output_fields), True)))
    517         return retval
    518     except Exception as e:

C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\geoprocessing\_base.py in &amp;lt;lambda&amp;gt;(*args)
    510         val = getattr(self._gp, attr)
    511         if callable(val):
--&amp;gt; 512             return lambda *args: val(*gp_fixargs(args, True))
    513         else:
    514             return convertArcObjectToPythonObject(val)

ExecuteError: Failed to execute. Parameters are not valid.
ERROR 000005: Could not open the address locator.
Failed to execute (GeocodeAddresses).&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Dec 2021 17:27:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-world-geocoding-service-request-url/m-p/1124933#M63226</guid>
      <dc:creator>JaredPilbeam2</dc:creator>
      <dc:date>2021-12-10T17:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS World Geocoding Service Request URL</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-world-geocoding-service-request-url/m-p/1124962#M63228</link>
      <description>&lt;P&gt;Hello Jared,&lt;/P&gt;&lt;P&gt;I did some research on this because I was also curious why you couldn't access the world geocode service and looks like they now require you to create a token and authenticate using your AGOL account.&amp;nbsp; This is because it is a service provided by ESRI based on credit usage.&amp;nbsp; See link below.&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/rest/geocode/api-reference/geocoding-authenticate-a-request.htm" target="_blank"&gt;https://developers.arcgis.com/rest/geocode/api-reference/geocoding-authenticate-a-request.htm&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Dec 2021 18:16:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-world-geocoding-service-request-url/m-p/1124962#M63228</guid>
      <dc:creator>ABishop</dc:creator>
      <dc:date>2021-12-10T18:16:38Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS World Geocoding Service Request URL</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-world-geocoding-service-request-url/m-p/1126951#M63257</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/486546"&gt;@ABishop&lt;/a&gt;Thanks, that is an option I have to explore.&lt;/P&gt;&lt;P&gt;I just stumbled onto something that works. Run the Geocode Addresses geoprocessing tool with your parameters. Right click the "completed" green ribbon &amp;gt; Copy Python Command. Then copy this into your script.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JaredPilbeam2_0-1639691250994.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/29897i56F11A53C1D2B5A5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JaredPilbeam2_0-1639691250994.png" alt="JaredPilbeam2_0-1639691250994.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This is how it looks after setting the results to variables. Funny, the URL never changed. But the parameters don't look the same as the help page example.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;#ArcGIS World Geocoding Service URL
locator = "https://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/ArcGIS World Geocoding Service"
#Locator parameters
fieldMap = ("'Address or Place' adcal VISIBLE NONE;Address2 &amp;lt;None&amp;gt; VISIBLE NONE;Address3 &amp;lt;None&amp;gt; VISIBLE NONE;Neighborhood &amp;lt;None&amp;gt; VISIBLE NONE;City city VISIBLE NONE;County &amp;lt;None&amp;gt; VISIBLE NONE;State state VISIBLE NONE;ZIP zip VISIBLE NONE;ZIP4 &amp;lt;None&amp;gt; VISIBLE NONE;Country &amp;lt;None&amp;gt; VISIBLE NONE")
gcName = "wasteRecyclingReport_geocode"
in_table = os.path.join(defaultDB, "wasteRecyclingReport")
geocodeResult = os.path.join(defaultDB, gcName)
arcpy.geocoding.GeocodeAddresses(in_table,locator,fieldMap, geocodeResult, "STATIC", None, "ROUTING_LOCATION", None, "ALL")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2021 16:52:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-world-geocoding-service-request-url/m-p/1126951#M63257</guid>
      <dc:creator>JaredPilbeam2</dc:creator>
      <dc:date>2021-12-20T16:52:34Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS World Geocoding Service Request URL</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-world-geocoding-service-request-url/m-p/1127342#M63265</link>
      <description>&lt;P data-unlink="true"&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/294090"&gt;@JaredPilbeam2&lt;/a&gt;&amp;nbsp;Have you tried using the &lt;A href="https://prodev.arcgis.com/en/pro-app/3.0/arcpy/functions/signintoportal.htm" target="_blank" rel="noopener"&gt;SignIntoPortal&lt;/A&gt;&amp;nbsp;function as part of your script so that you are signed into ArcGIS Online? There is a note about it above the code in sample 4 in the Geocode Addresses topic,&amp;nbsp;https://pro.arcgis.com/en/pro-app/latest/tool-reference/geocoding/geocode-addresses.htm#GUID-D92B5478-6B6E-4A79-9ECE-1C24BE984FF1.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Dec 2021 22:33:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-world-geocoding-service-request-url/m-p/1127342#M63265</guid>
      <dc:creator>ShanaBritt</dc:creator>
      <dc:date>2021-12-17T22:33:51Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS World Geocoding Service Request URL</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-world-geocoding-service-request-url/m-p/1127657#M63290</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1499"&gt;@ShanaBritt&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;Yes, I've seen that too. It was in my script already, actually. I understood that it should be used especially in a stand-alone script outside of Pro.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2021 16:04:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-world-geocoding-service-request-url/m-p/1127657#M63290</guid>
      <dc:creator>JaredPilbeam2</dc:creator>
      <dc:date>2021-12-20T16:04:42Z</dc:date>
    </item>
  </channel>
</rss>

