Select to view content in your preferred language

geocoding offline programmatically

1682
7
08-07-2017 04:00 AM
mikeharol1
Emerging Contributor

I would like to be able to programmatically geocode against my local Locator.  I see the sample reference the online ESRI geocoding service but I don't see an example on how to do it with my locator offline.  Is this possible?  Is there an example/snippet?

thanks

Mike

Tags (1)
0 Kudos
7 Replies
BradNiemand
Esri Regular Contributor

What exactly are you trying to do?  There are ways to programmatically geocode against a locator built off of your own data.

1. You can publish it as a geocoding service to ArcGIS Server.  You can then use the geocoding REST APIs to perform geocoding

2. You can use the ArcGIS Runtime SDK for .NET.

3. You can use python and the geocoding geoprocessing tools such as GecodeAddresses (convert an address table to a featureClass)

Brad

0 Kudos
mikeharol
Occasional Contributor

Thanks for asking.  I have an arcgispro  business app that displays data in a dockpane that has address, city, and  zip fields in it.  I would like to be able to push a button and locate that data on a map and then do some other stuff. I would like to be able to do it offline and not have the expense of licensing arcgis runtime.  So perhaps python is the only way for my situation?  could you elaborate a little more?  Thanks

0 Kudos
BradNiemand
Esri Regular Contributor

Mike,

If that data is in a table you can use the GeocodeAddresses geoprocessing tool to geocode that table which can be done using Python.  That tool will create an output featureClass with the geocoding results which can be used for other analysis.  Maybe even creating a model that had this tool strung together with other analysis tools would work for you.

Brad

0 Kudos
mikeharol
Occasional Contributor

thanks, i will play around with that it seems a little klugy.  what i really want is a one line method passing in address and locator like the following sudo code

var pt = GetCoordinate("100 main st, Houston, TX  77002", "c:\Houston.loc")

0 Kudos
BradNiemand
Esri Regular Contributor

Mike,

Thanks for the feedback.  At this point in time we don't have a programmatic way to geocode a single address against a local locator from within ArcGIS Pro.  What would be the preferred way to do this in your situation?  Would you be looking for something in the ArcGIS Pro SDK, something in Python, or maybe even something else?

Brad

0 Kudos
mikeharol
Occasional Contributor

ArcGisPro SDK.  If you could expose the functionality of the ArcGIS Pro Locate tool set some properties including adding locators and get results back that would be great. 

0 Kudos
JR99
by
Occasional Contributor

Does anyone know if anything eventuated with this request to Geocode an address via the ARCGis Pro .NET SDK?

0 Kudos