I am trying to create geolocator which will geocode addresses in Faroe Islands. The address format is basically very simple. The format is following:
<Street name> <House Number> <City> <ZIP Code>
I was able to successfully to use the Single House style which is included in ArcGIS Desktop. However, this style requires addresses to be entered in format <House Number> <Street Name>, and my addresses come in <Street Name><House Number> format.
How can I customize the locator file, in order to achieve this? Or any other suggestion?
In the .loc.xml file for your locator, look for the <def name="NormalAddress"> section. The default order of the address components in this section is Number, Street Name <elt ref="House" weight="15"/> <elt ref="FullStreetName" weight="80" pre_separator="required" separator_list=".,;-"/>
you should be able to switch these two lines around to match the structure of your Faroe Island addresses: <elt ref="FullStreetName" weight="80" pre_separator="required" separator_list=".,;-"/> <elt ref="House" weight="15"/>
You might need to remove the pre_separator property since the street name is now the first component in the address
I have run into another problem. Following the Peter's advice helped when geocoding in ArcMap. However, once I published the geocoder as a service on ArcGIS server, I need to enter the address in the following format when using REST API: <housenr> <streetname>
Using the same service in ArcMap accepts the address in format <streetname> <housenr>.