Using Local Geocoding service to Reverse Geocode (FAIL)

3571
1
Jump to solution
06-16-2015 07:37 PM
BillChappell
Occasional Contributor II

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

// http://www.snydercountygis.org:6080/arcgis/rest/services/Roads_AddressLocator/GeocodeServer/reverseG...

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.

0 Kudos
1 Solution

Accepted Solutions
ScottRutzmoser2
New Contributor III
0 Kudos
1 Reply
ScottRutzmoser2
New Contributor III
0 Kudos