Esri / incident-import-tools

Toolbox and scripts for importing spreadsheets to a gdb and optionally publishing out to ArcGIS Online or ArcGIS for Server.
Apache License 2.0
11 stars 16 forks source link

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

Open jneedle79 opened 4 years ago

jneedle79 commented 4 years ago

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 commented 4 years ago

Does anyone check these issue posts??

cosbyr commented 4 years ago

@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:

# 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 commented 4 years ago

Thanks for your help, that worked!!

Jake Needle, GISP GIS Program Manager Woodard & Curran 980 Washington Street, Suite 325N Dedham, Massachusetts 02026 p: 800.446.5518 x2546 | p: 781.613.0277 (Direct) e: jneedle@woodardcurran.commailto:jneedle@woodardcurran.com

From: Ryan Cosby notifications@github.com Sent: Monday, June 8, 2020 11:45 AM To: Esri/incident-import-tools incident-import-tools@noreply.github.com Cc: Jake Needle jneedle@woodardcurran.com; Mention mention@noreply.github.com Subject: Re: [Esri/incident-import-tools] Does not work if only geocoding City and State places (#17)

@jneedle79https://github.com/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:

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!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/Esri/incident-import-tools/issues/17#issuecomment-640711077, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ANULMZSTEMRYX6HJFYYXMGDRVUBQFANCNFSM4NE7ZMEQ.