Set offset for street address role locator

577
11
Jump to solution
02-17-2021 01:25 PM
Labels (2)
JoeBorgione
MVP Esteemed Contributor

I've  looked in the online help, googled, and have created a new locator thinking I have missed something.  Is there a way to set an offset in a street address role locator?  (ArcGIS Pro 2.6)

Edited to add:  Looks like in 2.7 it's available.  https://pro.arcgis.com/en/pro-app/latest/help/data/geocoding/tips-for-improving-geocoding-quality.ht...

 

JoeBorgione_0-1613597929180.png

 

 

@BradNiemand 

can't wait to retire....
0 Kudos
1 Solution

Accepted Solutions
BradNiemand
Esri Regular Contributor

Joe,

 

The ability to edit the side offset and end offset was added at Pro 2.7.

 

Brad

View solution in original post

11 Replies
DanPatterson
MVP Honored Contributor

is it one of those weird ones like....

The location that contains an offset distance from the found address, for example, 30 yards south from 342 Main St. This is only supported for locators created with the Create Address Locator tool.


... sort of retired...
0 Kudos
JoeBorgione
MVP Esteemed Contributor

Create Address Locator is so passe. Since we are strictly a Pro shop, I use only use Create Locator.  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.

You know how much I love to upgrade versions. Here goes...  😱

can't wait to retire....
0 Kudos
DanPatterson
MVP Honored Contributor

The quote was from 2.7 help as well


... sort of retired...
0 Kudos
BradNiemand
Esri Regular Contributor

Joe,

 

The ability to edit the side offset and end offset was added at Pro 2.7.

 

Brad

View solution in original post

JoeBorgione
MVP Esteemed Contributor

Just upgraded to 2.7:  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

@BradNiemand  are the offset properties available in arcpy?

 

can't wait to retire....
0 Kudos
DanPatterson
MVP Honored Contributor

Locator—ArcGIS Pro | Documentation  short read


... sort of retired...
0 Kudos
JoeBorgione
MVP Esteemed Contributor

I've used the locator class as the finishing touch to a create locator script:

# -*- 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()  

 

can't wait to retire....
0 Kudos
BradNiemand
Esri Regular Contributor

Joe,

 

This is not currently supported for arcpy.  We have an issue in our backlog to get it added in an upcoming release.

 

Brad

JoeBorgione
MVP Esteemed Contributor

Okay- so there will be some manual interaction as we've discussed before.

 

can't wait to retire....
0 Kudos