Select to view content in your preferred language

Geocode REST service on AGS10 only works with Single Line Input parameter

670
2
01-06-2011 01:20 PM
NicoleSchmidt
Emerging Contributor
I have a geocoding service that we deployed using AGS10.  I cannot get the address match to return results using the "Street" parameter.  It will only return matches when the data is placed in the "Single Line Input" parameter.  It is a small dataset, and I have tried using the US Streets single range and dual range geocoding services with the same result.

http://server/ArcGIS/rest/services/STREET/GeocodeServer/findAddressCandidates?Street=1505+Main+St

the above returns 0 candidates.  This however:

http://server/ArcGIS/rest/services/STREET/GeocodeServer/findAddressCandidates?Single+Line+Input=1505...

correctly returns several candidates.

Any ideas for me?  Why would entering the building number + street name work with the Single Line Input but not in the Street parameter?  I have also tried testing this through the REST test interface with the same results.  It works when the 1505 Main St is entered in the "Full Address" test field but does not work from the "Street or Intersection" test field.

Thanks for your time!

Nicole
0 Kudos
2 Replies
RaviNarayanan
Esri Contributor
It could be that the single line geocoding might be lenient and returns a match for a partial address, where as multi line geocoding expects input for required fields. For example does the multi line geocoding return a match if you also input zip code?
0 Kudos
NicoleSchmidt
Emerging Contributor
I don't think that is the issue.  My geocoding service does not use zip code, it just uses the l/r f/t building and the street fields.  The match result I am getting is a 100% match.  It is not the end of the world, I have just modified my silverlight code to always pass in the desired address both in the Street and in the Single Line Input field and now it works.  I just found it strange.
0 Kudos