flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From CodeGirl <MichelleNicho...@yahoo.com>
Subject Re: Flex and Google API
Date Wed, 10 Aug 2016 20:15:15 GMT
FYI, Here it is.

Here is the URL minus my key:  
https://maps.googleapis.com/maps/api/distancematrix/xml?origins=Dallas,%20TX&destinations=Houston,%20TX&units=imperial&key=

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
			   xmlns:s="library://ns.adobe.com/flex/spark"
			   xmlns:mx="library://ns.adobe.com/flex/mx"
			   xmlns:googledistance="services.googledistance.*"
			   minWidth="955" minHeight="600">
	<fx:Script>
		
	</fx:Script>
	<fx:Declarations>
		<s:CallResponder id="GetDistanceResult"/>
		<googledistance:GoogleDistance id="googleDistance"
									   fault="Alert.show(event.fault.faultString + '\n' +
event.fault.faultDetail)"
									   showBusyCursor="true"/>
	</fx:Declarations>
	<s:DataGrid id="accountsDG" left="5" right="5" top="5" bottom="5"
				creationComplete="accountsDG_creationCompleteHandler(event)">
		<s:columns>
			<s:ArrayList>
				<s:GridColumn dataField="status" headerText="status"></s:GridColumn>
				<s:GridColumn dataField="origin_address"
headerText="origin_address"></s:GridColumn>
				<s:GridColumn dataField="destination_address"
headerText="destination_address"></s:GridColumn>
				<s:GridColumn dataField="row.element.duration.text"
headerText="duration"></s:GridColumn>
				<s:GridColumn dataField="row.element.distance.text"
headerText="distance"></s:GridColumn>
			</s:ArrayList>
		</s:columns>
		<s:AsyncListView
list="{TypeUtility.convertToCollection(GetDistanceResult.lastResult)}"/>
	</s:DataGrid>
</s:Application>




--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/Flex-and-Google-API-tp13254p13256.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Mime
View raw message