<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Infinity Code Forum — about DistanceAndDurationExample question]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=1649</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1649&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in about DistanceAndDurationExample question.]]></description>
		<lastBuildDate>Sat, 28 Nov 2020 15:04:02 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: about DistanceAndDurationExample question]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=6957#p6957</link>
			<description><![CDATA[<p>It is work.<br />Thanks for your help &gt;&lt;</p>]]></description>
			<author><![CDATA[null@example.com (wudi)]]></author>
			<pubDate>Sat, 28 Nov 2020 15:04:02 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=6957#p6957</guid>
		</item>
		<item>
			<title><![CDATA[Re: about DistanceAndDurationExample question]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=6956#p6956</link>
			<description><![CDATA[<p>Hello.</p><p>When you use coordinates as Vector2: X is longitude, Y is latitude.<br />When you use coordinates as double: first longitude, then latitude.</p><p>You are simply confused the latitude and longitude in Vector2.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Sat, 28 Nov 2020 11:14:45 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=6956#p6956</guid>
		</item>
		<item>
			<title><![CDATA[about DistanceAndDurationExample question]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=6955#p6955</link>
			<description><![CDATA[<p>Hello~<br />I want to use DistanceAndDurationExample to calculate the distance between two points<br />when I use example data<br />set:</p><p>private void Start()<br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (string.IsNullOrEmpty(googleAPIKey)) Debug.LogWarning(&quot;Please specify Google API Key&quot;);</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Find route using Google Directions API<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; OnlineMapsGoogleDirections request = new OnlineMapsGoogleDirections(googleAPIKey, &quot;Los Angeles&quot;, new Vector2(-118.178960f, 35.063995f));<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; request.OnComplete += OnGoogleDirectionsComplete;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; request.Send();<br />&nbsp; &nbsp; &nbsp; &nbsp; }</p><p>that is Work.</p><p>but when I set Taiwan or China map<br />ex:</p><p>private void Start()<br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (string.IsNullOrEmpty(googleAPIKey)) Debug.LogWarning(&quot;Please specify Google API Key&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Find route using Google Directions API<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; OnlineMapsGoogleDirections request = new OnlineMapsGoogleDirections(googleAPIKey, new Vector2(25.49756f, 118.67244f), new Vector2(26.65204f, 117.87108f));<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; request.OnComplete += OnGoogleDirectionsComplete;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; request.Send();<br />&nbsp; &nbsp; &nbsp; &nbsp; }</p><p>this is no work.<br />see this screenshot:</p><p><a href="https://www.dropbox.com/s/5gxw8xgx4la3wzs/q0004.jpg?dl=0">https://www.dropbox.com/s/5gxw8xgx4la3w … 4.jpg?dl=0</a></p><p>Please help me to adjust it.<br />thx &gt;&lt;</p>]]></description>
			<author><![CDATA[null@example.com (wudi)]]></author>
			<pubDate>Sat, 28 Nov 2020 03:40:42 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=6955#p6955</guid>
		</item>
	</channel>
</rss>
