Select to view content in your preferred language

Locator in sample working, but still using wrong coordinate system?

2685
14
04-15-2010 05:35 AM
LeeAllen
Frequent Contributor
I have implemented the sample flex viewer and am using local state plane data and address locator service.  When I use locator to find address, it finds the addresses and lists matches, but put the locations off in space somewhere.  Is there a place where I need to change the WKID so the the service will put pins in proper place?


Here is what my locatewidget.xml looks like (I have commented out the state list):

<configuration>
<locator>http://gis.snco.us/ArcGIS/rest/services/StreetsAddressLocator/GeocodeServer</locator>
<minscore>40</minscore>
  <!-->listfield>State</listfield>
<listvalues>AK,AL,AR,AZ,CA,CO,CT,DE,DC,FL,GA,HI,IA,ID,IL,IN,KS,KY,LA,MA,MD,ME,MI,MN,MS,MO,MT,NC,ND,NE,NH,NJ,NM,NV,NY,OH,OK,OR,PA,RI,SC,SD,TN,TX,UT,VA,WA,WI,WV,WY</listvalues-->
<zoomscale>3500</zoomscale>
</configuration>
Tags (2)
0 Kudos
14 Replies
CarlAlexander
Regular Contributor
I would like to use the "singleLineAddressField"  with my addresses locator and not the "addressFields".  Is there something in the LocateWidget.mxml i can change to do this?  I believe you should be able to do this using ArcGIS 10.

Geocode services support single-line address format
ArcGIS geocoding now allows users to enter an address in a single-line string such as "300 peachtree st nw atlanta ga". This enhancement is exposed through the geocode service, including through the REST API.


Here is part of my locator service.

Service Description:

Address Fields:
Street (Type: esriFieldTypeString, Alias: Street or Intersection, Required: false )
City (Type: esriFieldTypeString, Alias: City or Placename, Required: false )
State (Type: esriFieldTypeString, Alias: State, Required: false )
ZIP (Type: esriFieldTypeString, Alias: ZIP Code, Required: false )


Single Line Address Field:
Single Line Input (Type: esriFieldTypeString, Alias: Full Address, Required: false )
0 Kudos
BjornSvensson
Esri Regular Contributor
@phi505: in the beta there is no special support for singleline geocoder.  In the upcoming 2.1 release of the viewer, the LocatorWidget will automatically use the singleline geocoder if there is one.
0 Kudos
HaroldBostic
Frequent Contributor
Hello,

What can I do, if I'm using the ESRI locator with my mapservices in 26918 (Loction Widget SFV 2.1)?  Currently my results are of in no where land.

Thanks
0 Kudos
VinceGuillet
Occasional Contributor
Is there an updated link to the locator widget that allows a user to find a lat/long coordinate when the map service and locator service are in State Plane?  All the links I found to the script on the resources page just redirect back to the resources home page.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Vince,

  This is some pretty old stuff, so no promises.

http://arcscripts.esri.com/details.asp?dbid=16359
0 Kudos