AnsweredAssumed Answered

How to Create Local Geocoder File

Question asked by FDM_Jim on May 22, 2015
Latest reply on May 22, 2015 by MBranscomb-esristaff

Hi Everyone


I'm in the process of transitioning from ArcEngine to Runtime .Net and I have reviewed the sample code for online and offline GeoCoding; however, the one thing I'm uncertain on is how to create the "*.loc" file? In the code example, a locallocator task is created ( _locatorTask = await Task.Run<LocalLocatorTask>(() => new LocalLocatorTask(LOCATOR_PATH));) by a path to the loc file and the examples always have the SanFran...loc file present.


I need to create a program that will allow our clients to use their street layer to create this file and in the past the loc file was created inside a FeatureDataset within a FileGeoData base. I have seen comments on taking an online geocoder and syncing to offline mode, yet there are no examples on how to take a street layer (possibly ShapeFile) and generate a local loc file.


If someone can provide assistance on creating a loc file (through code) I would appreciate it.