Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not work if only geocoding City and State places #17

Open
jneedle79 opened this issue May 19, 2020 · 3 comments
Open

Does not work if only geocoding City and State places #17

jneedle79 opened this issue May 19, 2020 · 3 comments

Comments

@jneedle79
Copy link

If there is not a value in Address 1 field the tool will not work. In the unmatched log it shows the addresses matched 100% but they are still not populated in the FC. If the same dataset is run with the same locator in ArcGIS Pro all locations appear in the FC.

@jneedle79
Copy link
Author

Does anyone check these issue posts??

@cosbyr
Copy link
Contributor

cosbyr commented Jun 8, 2020

@jneedle79

Sorry for the delay. Yes the tool is designed to work with records that have street address information, not just City and State place information. I've looked into the tool a little further to see if we could get it to work with just City and State Information:

  • In my tests, I found like you that the tool would create an output log that shows a 100% match for addresses with City and State information only, however it was not adding the geocoded records to the output target feature class. If your process was similar to mine here is an example of record in the output log:
    image

  • The key word above is the word "Locality", this is the addr_type of the geocoded record: https://developers.arcgis.com/rest/geocode/api-reference/geocoding-service-output.htm#GUID-D8DE94E9-5E2E-480D-9DE3-2212B9D7350D

  • The Import Records tool accepts the following addr_types for matches: "AddrPoint", "StreetAddr", "BldgName", "Place", "POI", "Intersection", "PointAddress", "StreetAddress", "SiteAddress","Address", "StreetAddressExt", "StreetInt". The tool was designed this way because it was meant to primarily deal with local address type records at parcels.

  • If you look at line 47 in the "import_records.py" python script that comes with tool you should see the following:

# Accepted levels of geolocation
addrOK = ["AddrPoint", "StreetAddr", "BldgName", "Place", "POI", "Intersection", "PointAddress", "StreetAddress", "SiteAddress","Address", "StreetAddressExt", "StreetInt"]

You can modify this line to allow it match other addr_types such as Locality by doing this:

# Accepted levels of geolocation
addrOK = ["AddrPoint", "StreetAddr", "BldgName", "Place", "POI", "Intersection", "PointAddress", "StreetAddress", "SiteAddress","Address", "StreetAddressExt", "StreetInt", "Locality"]

You may need to add other addr_type aside from "Locality" to the list above to bring in all the records you are trying to import.

After I made this change and saved the import_records.py file, I was able to successfully add "City, State" addresses to my target features when running the Import Records tool.

Hope this helps!

@jneedle79
Copy link
Author

jneedle79 commented Jun 8, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants