Select to view content in your preferred language

Geocoder with Multilines, not Singlelines

2582
0
12-10-2015 01:20 AM
basiuunias
New Contributor

Hi:)

I'm new with JavaScript and ArcGIS API for JavaScript. I want to create geocoder tool in my application. I have in ArcGIS Desktop my own geocoder, which it's multilines geocoder with City, Street, Number fields etc. I have published it  in my ArcGIS Server like GeocoderServer. And now I create geocoder in web appplication. In API examples geocoder uses singleline e.g

     var geocoders = [{
    url
: "http://www.example.com/ArcGIS/rest/services/Locators/TA_Address_EU/GeocodeServer",
    name
: "EU Geocoder",
    singleLineFieldName
: "Single Line Input",
    categories
: ["airports"]
}];

var geocoder = new Geocoder({
    map
: map,
    geocoders
: geocoders,
    arcgisGeocoder
: false
 
},"search");

In my geocoder I don't have Single Line Field .Mayby do you have any ideas how can I change something and create geocoder tool based on my own multilines geocoder?

0 Kudos
0 Replies