<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — about DistanceAndDurationExample question]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1649&amp;type=atom" />
	<updated>2020-11-28T15:04:02Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=1649</id>
		<entry>
			<title type="html"><![CDATA[Re: about DistanceAndDurationExample question]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=6957#p6957" />
			<content type="html"><![CDATA[<p>It is work.<br />Thanks for your help &gt;&lt;</p>]]></content>
			<author>
				<name><![CDATA[wudi]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1459</uri>
			</author>
			<updated>2020-11-28T15:04:02Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=6957#p6957</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: about DistanceAndDurationExample question]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=6956#p6956" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2020-11-28T11:14:45Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=6956#p6956</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[about DistanceAndDurationExample question]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=6955#p6955" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[wudi]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1459</uri>
			</author>
			<updated>2020-11-28T03:40:42Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=6955#p6955</id>
		</entry>
</feed>
