Google Routing Widget for the Flexviewer

1280
27
03-28-2011 07:05 AM
andrewj_ca
Occasional Contributor II
I've just posted a widget for leveraging Google's directions api.  Download and enjoy, both compiled and uncompiled versions have been supplied.  I've posted version 1 of the widget to get some comments and maybe see what additional functionality people may want.  I have my own ideas but I'd like to get some feedback.  Please remember to rate the widget if you like what you see.

http://www.arcgis.com/home/item.html?id=20fc9fd1c43c45c5a1dbf8b4f03bee79
Tags (2)
0 Kudos
27 Replies
andrewj_ca
Occasional Contributor II
temporarily offline... will post when it's back
0 Kudos
andrewj_ca
Occasional Contributor II
technical glitch was fixed and it's now back online
0 Kudos
BjornSvensson
Esri Regular Contributor
The zip file contains a users.xml with what looks like username/password.  If those are real passwords, you might want to remove that file from the download... 🙂

Also, you might want to remove the whole compiled version except for the actual GoogleRouting widget (and its related files).  Most of the time you can assume that people already have the "main" compiled version, and thus are only looking for the files needed by this widget.  Just a suggestion...

For the Google directions, are you using the http://code.google.com/apis/maps/documentation/directions/ API? 

Did you also look at their flash API (http://code.google.com/apis/maps/documentation/flash/reference.html#Directions)?
0 Kudos
andrewj_ca
Occasional Contributor II
Thanks, The users xml was just leftover garbage from previous testing.  Nothing critical there.  I will also check out the flash api, I hate having to use a proxy.
0 Kudos
andrewj_ca
Occasional Contributor II
Bjorn,

Is it me or is the flash api a little less functional?  The api I'm currently using seems like it has much more.
0 Kudos
BjornSvensson
Esri Regular Contributor
Andrew, I haven't looked closer at their flash api, I was hoping you had 🙂

Though I'm not surprised that their flash api has less features than their SOAP API...
0 Kudos
MikeGarza
New Contributor III
Thank you for this app. I am receiving the following error message after I type in some addresses: faultCode:Channel.Security.Error faultString:'Security error accessing url' faultDetail:'Unable to load WSDL. If currently online, please verify the URI and/or format of the WSDL (http://www.geosmartniagara.ca/googleproxy/Service.asmx?WSDL)' I can access this URL from IE8 directly without a problem.

Also, I cannot find where on the .xml file where I replace LocalHost with my server name. Any advise would help. I really would like to get this app working.
0 Kudos
BjornSvensson
Esri Regular Contributor
I am receiving the following error message after I type in some addresses: faultCode:Channel.Security.Error faultString:'Security error accessing url' faultDetail:'Unable to load WSDL. If currently online, please verify the URI and/or format of the WSDL (http://www.geosmartniagara.ca/googleproxy/Service.asmx?WSDL)' I can access this URL from IE8 directly without a problem.


When you can access the URL directly but not from a flash application, it is usually due to either a missing crossdomain.xml file, or it's not configured to allow your flash application access.

In this case, look at http://www.geosmartniagara.ca/crossdomain.xml and you'll notice that it only allows access for applications hosted on cogeco.ca.  What's the URL for your application?
<allow-access-from domain="*.cogeco.ca"/>
0 Kudos