Is it possible to change the properties of a locator using arcpy or the runtime sdk?

400
3
03-02-2018 10:56 AM
DJurgella
New Contributor III

Using arcpy I create a locator and package it into an mmpk which is used as data for a Runtime SDK application. I want to change the geocoding offsets, but the only way I can see to do this is in ArcGIS Pro. Can this be done programmatically using either Python during the creation of the locator or using C# in the application itself?

0 Kudos
3 Replies
ThadTilton
Esri Contributor

Hey Dan,

I'm not sure about modifying the locator properties, but you could modify the offset used to display match results in your runtime app. In the match results, the GeocodeResult class provides a RouteLocation and a DisplayLocation. The RouteLocation is a map point along the reference network and the display location is the map point with the display offset applied. Before displaying a result, you could use these points to determine a new offset by doing something like moving the display point closer or further to the route point along a line drawn between them, for example.

Hope that helps, Thad

0 Kudos
DJurgella
New Contributor III

Thanks for the suggestion Thad. I think that's probably what I'll end up doing.

0 Kudos
MichaelBranscomb
Esri Frequent Contributor

Hi Dan,

Currently it's not possible to modify the packaged locator properties via the ArcGIS Runtime API. In the future we are planning to support a version of ArcGIS Runtime Local Server that supports ArcGIS Pro geoprocessing packages (.gpkx). At that point it might be possible to re-use your Python script within a Pro GP package and execute that within the Local Server to modify the locator properties and repackage you .mmpk file.

Cheers

Mike

0 Kudos