Replace the ESRI geocoding service with our own

2486
2
01-13-2016 10:22 AM
Labels (1)
GabiVoicu
Occasional Contributor

We would like to replace the ESRI geocoding service with our own - did anyone try to use their own geocoding service

these are the settings for the ESRI geocoder used in the app and we would like to use our geocoder URL which is

geocoding/ROADS_DualRange (GeocodeServer)

not a composite locator - so how could we replace it and not break the settings

// Set Locator service settings


"images/RedPushpin.png",

"2300 Bloomdale Rd., McKinney, TX 75071",

"SingleLine"],

"Address", "City", "State", "Zip"],

"http://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer",

"Loc_name, Score, Match_addr",

"${Match_addr}",

'Loc_name',

"USA.StreetName", "USA.PointAddress", "USA.StreetAddress"],

Thank you

0 Kudos
2 Replies
GabiVoicu
Occasional Contributor

we did tried to comment out these two settings

//        LocatorFieldName: 'Loc_name',

//        LocatorFieldValues: ["USA.StreetName", "USA.PointAddress", "USA.StreetAddress"],

and took out the "Loc_name" in the CandidateFields setting as well and tried as it follows witout succeeding

    // Set Locator service settings
    LocatorSettings: {
        DefaultLocatorSymbol: "images/RedPushpin.png",
        SymbolSize: {
            width: 25,
            height: 25
        },
        DefaultValue: "2300 Bloomdale Rd., McKinney, TX 75071",
        LocatorParameters: ["SingleLine"],
        LocatorFields: ["Address", "City", "State", "Zip"],
       // LocatorURL: "http://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer",
        LocatorURL: "http://gis.co.collin.tx.us/arcgis/rest/services/geocoding/ROADS_DualRange/GeocodeServer",
        CandidateFields: "Loc_name",  "Score, Match_addr",
        FieldName: "${Match_addr}",
//        LocatorFieldName: 'Loc_name',
//        LocatorFieldValues: ["USA.StreetName", "USA.PointAddress", "USA.StreetAddress"],
        AddressMatchScore: 80,
        LocatorRippleSize: 40
    },

0 Kudos
GabiVoicu
Occasional Contributor

I forgot to mention that this is for Election Polling Place

0 Kudos