<?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 via Scripting in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/reverse-geocoding-via-scripting/m-p/735580#M41611</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have recently run across a problem when trying to use the reverse geocode tool as a python script. We are working to assign addresses to new buildings (already have a points file) based on the existing roads and address range segments (already have this too). Reverse geocoding will work just fine when I use it in ArcMap, but won't run as a script. I even tried copying it as a python snippet from the geoprocessing results window. I need to assign new addresses to a large number of building points based off the existing addressing grid and would like to be able to automate this process for any future buildings. Below is a copy of what I have written. Creating the address locator works just fine and it works great in the geocoding toolbar as a locator. Not sure why the reverse geocoding function isn't working when scripted. Keep getting the error: "ERROR 999999: Error executing function," which doesn't really tell me anything other than it didn't work. I am using ArcInfo 10 SP2. Any assistance would be great.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Phil&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;import arcpy&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;schema = "//san.intern/shared/gis_data/Projects/Address/Test/address.gdb"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;street = "/Streets_MSU_Ranges"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;toaddress = "/Proposed_Addrs"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;addloc = "/MSU_Address_Locator"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#Create Address Locator&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.CreateAddressLocator_geocoding("US Address - Dual Ranges", schema + street, "'Feature ID' OBJECTID VISIBLE NONE;'*From Left' FRADDL VISIBLE NONE;'*To Left' TOADDL VISIBLE NONE;'*From Right' FRADDR VISIBLE NONE;'*To Right' TOADDR VISIBLE NONE;'Prefix Direction' FEDIRP VISIBLE NONE;'Prefix Type' &amp;lt;None&amp;gt; VISIBLE NONE;'*Street Name' NAME VISIBLE NONE;'Suffix Type' FETYPE VISIBLE NONE;'Suffix Direction' &amp;lt;None&amp;gt; VISIBLE NONE;'Left City or Place' L_CITY_ID VISIBLE NONE;'Right City or Place' R_CITY_ID VISIBLE NONE;'Left ZIP Code' ZIPL VISIBLE NONE;'Right ZIP Code' ZIPR VISIBLE NONE;'Left State' STATE VISIBLE NONE;'Right State' STATE VISIBLE NONE;'Left Additional Field' &amp;lt;None&amp;gt; VISIBLE NONE;'Right Additional Field' &amp;lt;None&amp;gt; VISIBLE NONE;'Altname JoinID' '' VISIBLE NONE", schema + addloc)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#Reverse Geocode Proposed Addresses&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.ReverseGeocode_geocoding(schema + toaddress, schema + addloc, "1000 Meters")&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Aug 2011 11:01:25 GMT</pubDate>
    <dc:creator>PhillipeWernette1</dc:creator>
    <dc:date>2011-08-05T11:01:25Z</dc:date>
    <item>
      <title>Reverse Geocoding via Scripting</title>
      <link>https://community.esri.com/t5/data-management-questions/reverse-geocoding-via-scripting/m-p/735580#M41611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have recently run across a problem when trying to use the reverse geocode tool as a python script. We are working to assign addresses to new buildings (already have a points file) based on the existing roads and address range segments (already have this too). Reverse geocoding will work just fine when I use it in ArcMap, but won't run as a script. I even tried copying it as a python snippet from the geoprocessing results window. I need to assign new addresses to a large number of building points based off the existing addressing grid and would like to be able to automate this process for any future buildings. Below is a copy of what I have written. Creating the address locator works just fine and it works great in the geocoding toolbar as a locator. Not sure why the reverse geocoding function isn't working when scripted. Keep getting the error: "ERROR 999999: Error executing function," which doesn't really tell me anything other than it didn't work. I am using ArcInfo 10 SP2. Any assistance would be great.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Phil&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;import arcpy&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;schema = "//san.intern/shared/gis_data/Projects/Address/Test/address.gdb"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;street = "/Streets_MSU_Ranges"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;toaddress = "/Proposed_Addrs"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;addloc = "/MSU_Address_Locator"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#Create Address Locator&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.CreateAddressLocator_geocoding("US Address - Dual Ranges", schema + street, "'Feature ID' OBJECTID VISIBLE NONE;'*From Left' FRADDL VISIBLE NONE;'*To Left' TOADDL VISIBLE NONE;'*From Right' FRADDR VISIBLE NONE;'*To Right' TOADDR VISIBLE NONE;'Prefix Direction' FEDIRP VISIBLE NONE;'Prefix Type' &amp;lt;None&amp;gt; VISIBLE NONE;'*Street Name' NAME VISIBLE NONE;'Suffix Type' FETYPE VISIBLE NONE;'Suffix Direction' &amp;lt;None&amp;gt; VISIBLE NONE;'Left City or Place' L_CITY_ID VISIBLE NONE;'Right City or Place' R_CITY_ID VISIBLE NONE;'Left ZIP Code' ZIPL VISIBLE NONE;'Right ZIP Code' ZIPR VISIBLE NONE;'Left State' STATE VISIBLE NONE;'Right State' STATE VISIBLE NONE;'Left Additional Field' &amp;lt;None&amp;gt; VISIBLE NONE;'Right Additional Field' &amp;lt;None&amp;gt; VISIBLE NONE;'Altname JoinID' '' VISIBLE NONE", schema + addloc)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#Reverse Geocode Proposed Addresses&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.ReverseGeocode_geocoding(schema + toaddress, schema + addloc, "1000 Meters")&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2011 11:01:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/reverse-geocoding-via-scripting/m-p/735580#M41611</guid>
      <dc:creator>PhillipeWernette1</dc:creator>
      <dc:date>2011-08-05T11:01:25Z</dc:date>
    </item>
  </channel>
</rss>

