You are here: > ESRI Forums > arcgis explorer discussion forums > Thread Replies

ArcGIS Explorer Discussion Forums

ArcGIS Explorer: SDK Developers forum

How to geocode an address from a webservice   Chris Jensen Mar 10, 2010
Re: How to geocode an address from a webser...   Edan Cain Mar 12, 2010
Re: How to geocode an address from a webser...   Chris Jensen Mar 12, 2010
Re: How to geocode an address from a webser...   Edan Cain Mar 12, 2010
Report Inappropriate Content • Top • Print • This Forum is closed for replies.    
Subject How to geocode an address from a webservice 
Author Chris Jensen 
Date Mar 10, 2010 
Message Is it possible to programmatically geocode an address from our fire dispatch web service into an Explorer map. Ideally the app would also use the onboard gps (Dell E6400) and route the firetruck hands free for the firefighters.
If so, can someone point me in the right direction? 
   
Report Inappropriate Content • Top • Print • This Forum is closed for replies.    
Subject Re: How to geocode an address from a webservice 
Author Edan Cain 
Date Mar 12, 2010 
Message Hi Chris,
I have almost completed a sample to demo how to geocode / reverse geocode using Bing that I will release shortly. If its helpful I can also make a sample to hit ArcGIS Server.

Basically how to structure your calls and then create a point on the map with the result from the server. We've written many samples in other ESRI products to do this, but one specifically for ArcGIS Explorer I am sure would be helpful.

This is your intended work flow correct, call from your firetruck to your fire dispatch web service to geocode you?

If the above is correct, there are two ways to achieve this without having to write any code at all. You can repoint ArcGIS Explorer to use your own geocoding, placefinder or routing services. Open the Application configuration manager and click on the Custom Resources tab, at the bottom you will see Choose Services..., simply add your services here. Then the directions control, routing and find controls will use your geocoding / routing services. Otherwise you could use the exisiting services we provide. In either case if you combine with the GPS add-in I have on the labs site you will have your current location which should solve your issue. You will see your location, if you then capture your location as a point note (part of the add-in functionality) you can then drag and drop that note into the directions control. I assume you would have the destination already. Then all you have to do is query for a route.

I am actively working on the GPS code in support of SAR teams. The add-in now supports (not released) the Infinity radio and GPS mic. Connecting one of these radios will not only give you your own location, but the locations of any other radio broadcasting their location. They are brilliant radios, as not only can you use them as a normal TX and RX radio, but you get all of the locational data also, including comments etc.
Next month is a SAR meeting being held in Yosemite, I will be there demoing this add-in with the Infinity radio code added and a few other possibly interesting add-ins. Also participating will be Tom Patterson, ESRI's Wildland Fire Specialist, Tom has a wealth of knowledge in this field.

I hope that this helps,
Edan Cain 
   
Report Inappropriate Content • Top • Print • This Forum is closed for replies.    
Subject Re: How to geocode an address from a webservice 
Author Chris Jensen 
Date Mar 12, 2010 
Message Edan,
Thanks for the response. This is the workflow:
The truck has a laptop with a broadband connection to a dispatch application that is .asp. I would like to be able to programmatically grab the address from the .asp page and geocode it with explorer. Bing would work too. 
   
Report Inappropriate Content • Top • Print • This Forum is closed for replies.    
Subject Re: How to geocode an address from a webservice 
Author Edan Cain 
Date Mar 12, 2010 
Message Hi Chris,
do you or someone within your organization write code? You didn't mention this in your email.

Interaction with your webservice would be achieved with ADO.NET.

Here are a couple of links to codeguru subjects covering ways to communicate.

.NET 2.0 (using SOAP)
http://www.codeguru.com/csharp/csharp/cs_webservices/security/article.php/c9179


.NET 3.5 (REST)
http://www.codeguru.com/csharp/csharp/cs_webservices/tutorials/article.php/c16231

And to Microsoft:
http://msdn.microsoft.com/en-us/library/h43ks021(VS.71).aspx

I would start with a simple DockWindow add-in that communicates with your webservice to get an address. Once you have this, you are most of the way there. Write the resulting address into a text box, then copy and paste it into the directions control. Use it to get your route. Other than this you could take the sample with Bing when we release it and extend it with your code above.

The thing with the sample is that it's designed to hit the Bing staging server with credentials you will have to set up via a developer account with them(free). However it was never intended for practical use in a product. They really want you to hit their release server for this. The sample in essence shows you soap calls, how to take address text or a point and create a call to the server and get asynchronous results and use these to create points on the map. The code flow would be very similar for any other geoprocessing webservice.

Hope this helps in some way.
Edan