I created a local Geocoding service for a 911 project. I can add the service in ArcMap and the Address Inspector shows it works great.
However I am trying to use it in Leaflet and it doesn't return anything. (code 400 no results)http://www.snydercountygis.org:6080/arcgis/rest/services/Roads_AddressLocator/GeocodeServer
So I tried the Rest Service directly an passed it a coordinate or address, same result code 400,
//http://www.snydercountygis.org:6080/arcgis/sdk/rest/index.html#/Reverse_Geocode/02ss00000030000000/ //help file
Sample address and it's coordinate
//41.045444,-75.579659 for '10 LAKE HARMONY RD'
Any ideas, I'm stumped as it looks like the service is not right but when ArcMap uses it it's ok.
My leaflet file is attached if it helps..
Message was edited by: Bill Chappell 6/18 The attached script is now working after code changes to convert lat/long to meters in Leaflet.
Solved! Go to Solution.
It works...
you need to pass it web mercator coordinates..
It works...
you need to pass it web mercator coordinates..