Select to view content in your preferred language

Address geocode Locator widget Viewer 2.1

902
3
12-09-2010 05:36 AM
by Anonymous User
Not applicable
Original User: alnesbit

Hello all,

I'm using the flex Viewer 2.1, with Arc10 but also Arc9.3. I think I already know the answer to this question, but I just want confirmation if anyone can confirm.

I was really hoping that I could just take the LocateWidget_US.xml and in place of the ESRI geocode service url, I could paste my geocoder service url and it would magically find my addresses, ha. I tried it and all of the input boxes disappear so there's no place for the user to type in an address.

So my conclusion is I have to download the code from the api site here http://help.arcgis.com/en/webapi/flex/samples/index.html and somehow make my own geocode swf file. Am I right? Are there any other samples or anything that I could use instead?

Thank you in advance,
0 Kudos
3 Replies
by Anonymous User
Not applicable
Original User: dpaddock

It is supposed to work the way you were trying. If you use a tool like HttpFox, you should see a request to your service with ?f=json on the end. Is this request being sent successfully? What is the response?
0 Kudos
by Anonymous User
Not applicable
Original User: alnesbit

Uh oh...stupid mistake. so stupid I don't even want to say it, but I had copied the url of the service from the box after it creates the service and didn't look at it. Well, that URL isn't right. You have to go to the rest services and copy it from there. Duh. Thought they would be the same, but they're not.

But I do have a related question maybe you can help me: I want to create a composite geocode service using 2 different kinds: a US streets that has address ranges along the lines and then second, I would like the geocode service to then check a city address point layer that has the addresses in fields like AddressNum, StreetName etc. I don't see how it is possible to set up a composite using 2 different types like this. I am using this to help me: http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?TopicName=Building_a_composite_address_locator

Do you know how to do this?

Thank you!
0 Kudos
by Anonymous User
Not applicable
Original User: alnesbit

going to post this in the geocoding forum..sorry

Thank you for your help,
0 Kudos