Select to view content in your preferred language

Address Locator in Locate Widget

4447
30
09-29-2010 05:30 AM
StuartBlumberg
Emerging Contributor
Hello,

I am using the sample flexviewer 1.3. I have created an address locator in ArcCatalog 10 and created a geocoding service in Server. I want to use this geocode service in the locate widget, however when I try there are three text boxes with a dropdown box for the state. I need there to be just one text box for the address and a submit button. When I try using an address locator that I created in 9.3.1 it works fine, it must be an issue with 10? Thanks.
Tags (2)
0 Kudos
30 Replies
RobertScheitlin__GISP
MVP Emeritus
Stuart,

    It is likely that you choose a different type of locator when you made your ArcGIS Server 10 version. There are many types to choose from I would suggest creating a couple of different types and see which one works as you want it to.
0 Kudos
StuartBlumberg
Emerging Contributor
Robert,

In 9.3.1 I used "US Streets" using address ranges.  In 10 I used "Dual Ranges" which seems to be the same as "US Streets."  In 10 there is no "US Streets" style too choose.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Stuart,

   I don't know how you only had one text field in 9.3.1 when you used US Streets... Did you customize your locateWidget to fill in those other fields in code?
0 Kudos
MikeCranfill
New Contributor
I ran into the same issue and after contacting ESRI they offered this explanation.

�?? �?� it looks like the REST API is not set up for single-line input like ArcMap is, thus the requirement to input city/state/zip.�?�

They sent me a fix but I�??ve not had the opportunity to try it.

You can send me an email ( cranfillm@fishers.in.us ) and I will forward you ESRI�??s complete response and fix to see if it helps.

Mike Cranfill
GIS Coordinator
Fishers, Indiana
0 Kudos
BjornSvensson
Esri Regular Contributor
Just to clarify - the REST API does support single-line geocoding as of ArcGIS Server version 10.0.  This is supported by the Flex API as of version 2.0 as well as in the LocateWidget in Flex Viewer 2.1.

"Locators published using ArcGIS 10 support a new single line address field."
http://help.arcgis.com/EN/arcgisserver/10.0/apis/rest/index.html?whatsnew.html

Of course, if you are working with SFV 1.x and Flex API 1.x, then this doesn't matter...
0 Kudos
StuartBlumberg
Emerging Contributor
Bjorn,

is there a setting I need to change somewhere in order for this to work?  I am using the Flex API 1.3 with the SFV.  When I create a locator in ArcGIS 10 the locate widget shows input text boxes for Street, City, State, Zip.  When I use my old 9.3 locators the locate widget shows one input text box which is how I want it.  Thank you.
0 Kudos
BjornSvensson
Esri Regular Contributor
No settings that I know off.

But ... do you have a custom LocateWidget for SFV, because the original sample doesn't seem to support single line geocoding: http://asademo.esri.com/flexviewer1_3/

Also, the 1.3 Flex API doesn't know about single line geocoding.
0 Kudos
StuartBlumberg
Emerging Contributor
Bjorn,

Pre-10 I have been using the Flex 1.3 API, and the locate widget I was using had a single line to input the full address (ex. 710 E San Augustine St).  I was using a 9.3.1 locator.  When I switch out the 9.3.1 locator with a 10 locator the one line switches to 4 seperate lines.  Is it a problem since I am using 10 with the 1.3 API?  Thanks.
0 Kudos
BjornSvensson
Esri Regular Contributor
Hi Stuart, I'm not sure why your widget is working with 9.3 but not 10.  I am assuming you are working with a custom LocateWidget - did you create it or someoneone else?  Either way, my guess would be that there is something in that custom code that doesn't work with your specific 10.0 service.

Since single line geocoder didn't exist in ArcGIS Server 9.3, did you have a special Locate service that accepted one field input, or does your Locatewidget have use some kind of built-in logic to convert the user inputted single line into the multiple fields that most 9.3 locate services expected?
0 Kudos