<?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: Set offset for street address role locator in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/set-offset-for-street-address-role-locator/m-p/1027863#M43076</link>
    <description>&lt;P&gt;I've used the locator class as the finishing touch to a create locator script:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;# -*- coding: utf-8 -*-
"""
Created on Fri Dec 18 10:06:14 2020

@author: jborgione

Single Role Street Address Locator
"""

import arcpy

arcpy.env.overwriteOutput = True
arcpy.SetLogHistory(False)

''' Set the stage and create the locator'''

locatorDir = r'N:\GIS\Geocoding'
locatorName = 'SingleRoleStreetAddressLocator'
outLocator = f'{locatorDir}\{locatorName}'

language = 'ENG'
country = 'USA'

inTable = "https://pathTo/rest/services/internalDrive/FeatureServer/9 StreetAddress;"
          
          
          
fieldMapping =  "'StreetAddress.HOUSE_NUMBER_FROM_LEFT 9.FROMADDR_L';"\
                "'StreetAddress.HOUSE_NUMBER_TO_LEFT 9.TOADDR_L';"\
                "'StreetAddress.HOUSE_NUMBER_FROM_RIGHT 9.FROMADDR_R';"\
                "'StreetAddress.HOUSE_NUMBER_TO_RIGHT 9.TOADDR_R';"\
                "'StreetAddress.STREET_PREFIX_DIR 9.PREDIR';"\
                "'StreetAddress.STREET_NAME 9.NAME';"\
                "'StreetAddress.STREET_SUFFIX_TYPE 9.POSTTYPE';"\
                "'StreetAddress.STREET_SUFFIX_DIR 9.POSTDIR';"\
                "'StreetAddress.CITY_LEFT 9.INCMUNI_L';"\
                "'StreetAddress.CITY_RIGHT 9.INCMUNI_R';"\
                "'StreetAddress.METRO_AREA_LEFT 9.UNINCCOM_L';"\
                "'StreetAddress.METRO_AREA_RIGHT 9.UNINCCOM_R';"             
                
arcpy.geocoding.CreateLocator(country, inTable, fieldMapping, outLocator, language)

''' With the locator now created, use the new locator class to set values
    of various properties'''

locatorPath = f'{outLocator}.loc'
locator = arcpy.geocoding.Locator(locatorPath)

locator.matchOutOfRange = False
locator.minCandidateScore = 80
locator.minMatchScore = 85
locator.categories = 'Street Address,Intersection'
locator.reverseGeocodeFeatureTypes = 'StreetInt,StreetAddress'
locator.updateLocator()  &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 17 Feb 2021 22:30:52 GMT</pubDate>
    <dc:creator>JoeBorgione</dc:creator>
    <dc:date>2021-02-17T22:30:52Z</dc:date>
    <item>
      <title>Set offset for street address role locator</title>
      <link>https://community.esri.com/t5/data-management-questions/set-offset-for-street-address-role-locator/m-p/1027828#M43068</link>
      <description>&lt;P&gt;I've&amp;nbsp; looked in the online help, googled, and have created a new locator thinking I have missed something.&amp;nbsp; Is there a way to set an offset in a street address role locator?&amp;nbsp; (ArcGIS Pro 2.6)&lt;/P&gt;&lt;P&gt;Edited to add:&amp;nbsp; Looks like in 2.7 it's available.&amp;nbsp;&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/data/geocoding/tips-for-improving-geocoding-quality.htm" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/latest/help/data/geocoding/tips-for-improving-geocoding-quality.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JoeBorgione_0-1613597929180.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/6276i0DE6159F1938B845/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JoeBorgione_0-1613597929180.png" alt="JoeBorgione_0-1613597929180.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1420"&gt;@BradNiemand&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 21:42:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/set-offset-for-street-address-role-locator/m-p/1027828#M43068</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2021-02-17T21:42:23Z</dc:date>
    </item>
    <item>
      <title>Re: Set offset for street address role locator</title>
      <link>https://community.esri.com/t5/data-management-questions/set-offset-for-street-address-role-locator/m-p/1027839#M43069</link>
      <description>&lt;P&gt;is it one of those weird ones like....&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The location that contains an offset distance from the found address, for example,&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;SPAN class="usertext"&gt;30 yards south from 342 Main St&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN&gt;. This is only supported for locators created with the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Create Address Locator&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;tool.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 21:44:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/set-offset-for-street-address-role-locator/m-p/1027839#M43069</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2021-02-17T21:44:59Z</dc:date>
    </item>
    <item>
      <title>Re: Set offset for street address role locator</title>
      <link>https://community.esri.com/t5/data-management-questions/set-offset-for-street-address-role-locator/m-p/1027844#M43070</link>
      <description>&lt;P&gt;Create Address Locator is so &lt;EM&gt;passe&lt;/EM&gt;. Since we are strictly a Pro shop, I use only use Create Locator.&amp;nbsp; After 2.6 the old style address locators are no longer supported, and I'm guessing that was part of the motivation to add setting the offset at 2.7.&lt;/P&gt;&lt;P&gt;You know how much I love to upgrade versions. Here goes...&amp;nbsp;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":face_screaming_in_fear:"&gt;😱&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 21:51:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/set-offset-for-street-address-role-locator/m-p/1027844#M43070</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2021-02-17T21:51:46Z</dc:date>
    </item>
    <item>
      <title>Re: Set offset for street address role locator</title>
      <link>https://community.esri.com/t5/data-management-questions/set-offset-for-street-address-role-locator/m-p/1027846#M43071</link>
      <description>&lt;P&gt;Joe,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The ability to edit the side offset and end offset was added at Pro 2.7.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Brad&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 21:53:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/set-offset-for-street-address-role-locator/m-p/1027846#M43071</guid>
      <dc:creator>BradNiemand</dc:creator>
      <dc:date>2021-02-17T21:53:46Z</dc:date>
    </item>
    <item>
      <title>Re: Set offset for street address role locator</title>
      <link>https://community.esri.com/t5/data-management-questions/set-offset-for-street-address-role-locator/m-p/1027853#M43072</link>
      <description>&lt;P&gt;The quote was from 2.7 help as well&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 22:13:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/set-offset-for-street-address-role-locator/m-p/1027853#M43072</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2021-02-17T22:13:20Z</dc:date>
    </item>
    <item>
      <title>Re: Set offset for street address role locator</title>
      <link>https://community.esri.com/t5/data-management-questions/set-offset-for-street-address-role-locator/m-p/1027857#M43073</link>
      <description>&lt;P&gt;Just upgraded to 2.7:&amp;nbsp; While I haven't created a new locator I can adjust the offset to existing ones that were created in 2.6 which is cool&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1420"&gt;@BradNiemand&lt;/a&gt;&amp;nbsp; are the offset properties available in arcpy?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 22:17:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/set-offset-for-street-address-role-locator/m-p/1027857#M43073</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2021-02-17T22:17:36Z</dc:date>
    </item>
    <item>
      <title>Re: Set offset for street address role locator</title>
      <link>https://community.esri.com/t5/data-management-questions/set-offset-for-street-address-role-locator/m-p/1027859#M43074</link>
      <description>&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/geocoding/locator-class.htm" target="_blank"&gt;Locator—ArcGIS Pro | Documentation&lt;/A&gt;&amp;nbsp; short read&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 22:21:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/set-offset-for-street-address-role-locator/m-p/1027859#M43074</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2021-02-17T22:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: Set offset for street address role locator</title>
      <link>https://community.esri.com/t5/data-management-questions/set-offset-for-street-address-role-locator/m-p/1027862#M43075</link>
      <description>&lt;P&gt;Joe,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is not currently supported for arcpy.&amp;nbsp; We have an issue in our backlog to get it added in an upcoming release.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Brad&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 22:30:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/set-offset-for-street-address-role-locator/m-p/1027862#M43075</guid>
      <dc:creator>BradNiemand</dc:creator>
      <dc:date>2021-02-17T22:30:00Z</dc:date>
    </item>
    <item>
      <title>Re: Set offset for street address role locator</title>
      <link>https://community.esri.com/t5/data-management-questions/set-offset-for-street-address-role-locator/m-p/1027863#M43076</link>
      <description>&lt;P&gt;I've used the locator class as the finishing touch to a create locator script:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;# -*- coding: utf-8 -*-
"""
Created on Fri Dec 18 10:06:14 2020

@author: jborgione

Single Role Street Address Locator
"""

import arcpy

arcpy.env.overwriteOutput = True
arcpy.SetLogHistory(False)

''' Set the stage and create the locator'''

locatorDir = r'N:\GIS\Geocoding'
locatorName = 'SingleRoleStreetAddressLocator'
outLocator = f'{locatorDir}\{locatorName}'

language = 'ENG'
country = 'USA'

inTable = "https://pathTo/rest/services/internalDrive/FeatureServer/9 StreetAddress;"
          
          
          
fieldMapping =  "'StreetAddress.HOUSE_NUMBER_FROM_LEFT 9.FROMADDR_L';"\
                "'StreetAddress.HOUSE_NUMBER_TO_LEFT 9.TOADDR_L';"\
                "'StreetAddress.HOUSE_NUMBER_FROM_RIGHT 9.FROMADDR_R';"\
                "'StreetAddress.HOUSE_NUMBER_TO_RIGHT 9.TOADDR_R';"\
                "'StreetAddress.STREET_PREFIX_DIR 9.PREDIR';"\
                "'StreetAddress.STREET_NAME 9.NAME';"\
                "'StreetAddress.STREET_SUFFIX_TYPE 9.POSTTYPE';"\
                "'StreetAddress.STREET_SUFFIX_DIR 9.POSTDIR';"\
                "'StreetAddress.CITY_LEFT 9.INCMUNI_L';"\
                "'StreetAddress.CITY_RIGHT 9.INCMUNI_R';"\
                "'StreetAddress.METRO_AREA_LEFT 9.UNINCCOM_L';"\
                "'StreetAddress.METRO_AREA_RIGHT 9.UNINCCOM_R';"             
                
arcpy.geocoding.CreateLocator(country, inTable, fieldMapping, outLocator, language)

''' With the locator now created, use the new locator class to set values
    of various properties'''

locatorPath = f'{outLocator}.loc'
locator = arcpy.geocoding.Locator(locatorPath)

locator.matchOutOfRange = False
locator.minCandidateScore = 80
locator.minMatchScore = 85
locator.categories = 'Street Address,Intersection'
locator.reverseGeocodeFeatureTypes = 'StreetInt,StreetAddress'
locator.updateLocator()  &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 22:30:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/set-offset-for-street-address-role-locator/m-p/1027863#M43076</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2021-02-17T22:30:52Z</dc:date>
    </item>
    <item>
      <title>Re: Set offset for street address role locator</title>
      <link>https://community.esri.com/t5/data-management-questions/set-offset-for-street-address-role-locator/m-p/1027864#M43077</link>
      <description>&lt;P&gt;Okay- so there will be some manual interaction as we've discussed before.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 22:32:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/set-offset-for-street-address-role-locator/m-p/1027864#M43077</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2021-02-17T22:32:16Z</dc:date>
    </item>
    <item>
      <title>Re: Set offset for street address role locator</title>
      <link>https://community.esri.com/t5/data-management-questions/set-offset-for-street-address-role-locator/m-p/1031140#M43110</link>
      <description>&lt;P&gt;This Old guy is still a few years out from retirement so I'll still be battling for the foreseeable future.&lt;/P&gt;&lt;P&gt;I hope you can see from these clips, that ESRI is aware of these problems, and is working on it.&lt;/P&gt;&lt;P&gt;and whenever Pro 2.8 comes out we'll take another look at switching from our ArcGIS 10.x Geocoder to the create Locators of ArcGIS Pro.&lt;/P&gt;&lt;P&gt;Brian&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="In my case 20ft wasn't 20ft when coming out of the create locator (Pro2.7), the east west distance was diferent than north south, as you can see the fix is said to in Pro 2.8, Holding breath!!" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/7099i633BB5A67D2D9D25/image-size/large?v=v2&amp;amp;px=999" role="button" title="ESRI Bug1 2021-02-26_14-08-50.jpg" alt="In my case 20ft wasn't 20ft when coming out of the create locator (Pro2.7), the east west distance was diferent than north south, as you can see the fix is said to in Pro 2.8, Holding breath!!" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;In my case 20ft wasn't 20ft when coming out of the create locator (Pro2.7), the east west distance was diferent than north south, as you can see the fix is said to in Pro 2.8, Holding breath!!&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="The ability to choose which distance type ie feet, meters, miles etc. are not an option that could be selected from a pulldown menu" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/7100i1FADA1456B5B4125/image-size/large?v=v2&amp;amp;px=999" role="button" title="ESRI Bug2 2021-02-26_14-08-50.jpg" alt="The ability to choose which distance type ie feet, meters, miles etc. are not an option that could be selected from a pulldown menu" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;The ability to choose which distance type ie feet, meters, miles etc. are not an option that could be selected from a pulldown menu&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="In both ArcGIS 10.x and pre Pro2.7 &amp;quot;Legacy&amp;quot; coders, you could set these parameters." style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/7101iF00A24209B72990F/image-size/large?v=v2&amp;amp;px=999" role="button" title="ESRI Bug4 2021-02-26_14-08-50.jpg" alt="In both ArcGIS 10.x and pre Pro2.7 &amp;quot;Legacy&amp;quot; coders, you could set these parameters." /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;In both ArcGIS 10.x and pre Pro2.7 "Legacy" coders, you could set these parameters.&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="20ft used to be 20ft no matter the Axis." style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/7102iB7D023D2C2B30ADA/image-size/large?v=v2&amp;amp;px=999" role="button" title="ESRI Bug3 2021-02-26_14-08-50.jpg" alt="20ft used to be 20ft no matter the Axis." /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;20ft used to be 20ft no matter the Axis.&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2021 20:49:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/set-offset-for-street-address-role-locator/m-p/1031140#M43110</guid>
      <dc:creator>BrianWade</dc:creator>
      <dc:date>2021-02-26T20:49:04Z</dc:date>
    </item>
    <item>
      <title>Re: Set offset for street address role locator</title>
      <link>https://community.esri.com/t5/data-management-questions/set-offset-for-street-address-role-locator/m-p/1031143#M43111</link>
      <description>&lt;P&gt;Hooray for bugs in new releases!&amp;nbsp; I'm happy to pass the torch to any younger and upcoming geocoding enthusiast....&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2021 20:52:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/set-offset-for-street-address-role-locator/m-p/1031143#M43111</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2021-02-26T20:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: Set offset for street address role locator</title>
      <link>https://community.esri.com/t5/data-management-questions/set-offset-for-street-address-role-locator/m-p/1222111#M44265</link>
      <description>&lt;P&gt;FYI.&amp;nbsp; &amp;nbsp;Display Options including side offset will disappear when you disable&amp;nbsp; &amp;nbsp;"Street Address" as a geocoding match option (Geocoding options &amp;gt;&amp;gt; Match Options &amp;gt;&amp;gt; Categories to support).&amp;nbsp; This is something you might do, for example, if you only want that particular locator to work for reverse geocoding within a composite locator.&amp;nbsp; Even though the display option is inaccessible the offset still applies when you reverse geocode (point will jump the set distance to side of line when you click on map).&amp;nbsp; If you want to set the offset you need to do this before you turn off the match option.&amp;nbsp; In my case I wanted the point to remain on the line as I am only using this "sub"locator to return the street name on a reverse geocode.&amp;nbsp; So I set the offset to 0 and then changed the match options. This is the case as recently as v 3.0.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2022 16:03:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/set-offset-for-street-address-role-locator/m-p/1222111#M44265</guid>
      <dc:creator>IanMackenzie</dc:creator>
      <dc:date>2022-10-14T16:03:09Z</dc:date>
    </item>
  </channel>
</rss>

