I have taken the sample code for geocoding that I found here:
http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples/locator_address.html
And tried to get it to work with my own geocoder. The only code that I have changed is the URL to my geocoder service, and the default address in the textbox, I also added a message box to display the number of candidates returned (for debugging).
For some reason, when I try to use my geocoder service it returns 0 candidates:
http://northmiamicra.org/geoCodeMyLocator.html
Even though it does return plenty of candidates if I just call the geocode service from rest:
http://192.168.110.10/ArcGIS_External/rest/services/MDStreets_NoOpaLocka/GeocodeServer/findAddressCa...
Any idea what the problem may be?
Could it be something to with some sort of caching? Because originally there was something wrong with the locator that i was using and I had to replace it with a new one. I have stopped and restarted the service and it is now working in the REST web interface but is still not working when called from the API.
Sorry I was not aware of the IP Address being internal only, I am learnuing new things every day, thanks for pointing that out.
I have now updated the page with what I think is the external IP address but I am still getting 0 resuts from the API:
http://northmiamicra.org/geoCodeMyLocator.html
And the rest service should now be visible for you here, it is returning 466 candidates:
http://209.149.254.202/ArcGIS_External/rest/services/MDStreets_NoOpaLocka/GeocodeServer/findAddressC...
var address = {"Single Line Input":dojo.byId("address").value};