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.htmlAnd 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/findAddressCandidates?Street=&City=&State=&ZIP=&Single+Line+Input=776+ne+125+st&outFields=&outSR=&f=html
var address = {"Single Line Input":dojo.byId("address").value};
I have taken the sample code for geocoding that I found here:http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples/locator_address.htmlAnd 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.htmlEven 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/findAddressCandidates?Street=&City=&State=&ZIP=&Single+Line+Input=776+ne+125+st&outFields=&outSR=&f=htmlAny 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.
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.