<?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 — Find distance , direction b/w two places]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=208</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=208&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Find distance , direction b/w two places.]]></description>
		<lastBuildDate>Wed, 10 Aug 2016 12:58:48 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Find distance , direction b/w two places]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=1082#p1082</link>
			<description><![CDATA[<p>Hello.</p><p>Yes, this bug has been fixed in Online Maps v2.4.0.56.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Wed, 10 Aug 2016 12:58:48 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=1082#p1082</guid>
		</item>
		<item>
			<title><![CDATA[Re: Find distance , direction b/w two places]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=1080#p1080</link>
			<description><![CDATA[<p>@Alex,<br />Have you fixed it?</p>]]></description>
			<author><![CDATA[null@example.com (johnGate)]]></author>
			<pubDate>Wed, 10 Aug 2016 09:37:23 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=1080#p1080</guid>
		</item>
		<item>
			<title><![CDATA[Re: Find distance , direction b/w two places]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=951#p951</link>
			<description><![CDATA[<p>You have a very difficult route, which has a lot of points, so that the drawing element has more 65,000 vertices.</p><p>We&#039;ll fix it.<br />I think it will take 1-2 days.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Tue, 26 Jul 2016 18:19:54 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=951#p951</guid>
		</item>
		<item>
			<title><![CDATA[Re: Find distance , direction b/w two places]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=948#p948</link>
			<description><![CDATA[<p>and here is error</p>]]></description>
			<author><![CDATA[null@example.com (aammfe)]]></author>
			<pubDate>Tue, 26 Jul 2016 17:56:39 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=948#p948</guid>
		</item>
		<item>
			<title><![CDATA[Re: Find distance , direction b/w two places]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=947#p947</link>
			<description><![CDATA[<p>when set two distant points for directions , it start showing errors..</p><p>this is my code <br /> public void findDirection()<br />&nbsp; &nbsp; {</p><p>&nbsp; &nbsp; &nbsp; &nbsp; OnlineMapsFindDirection.Find(from.text, to.text, true).OnComplete += onFindLoaction;<br />&nbsp; &nbsp; &nbsp; &nbsp; //OnlineMapsFindDirection.Find();<br />&nbsp; &nbsp; &nbsp; &nbsp; Debug.Log(&quot;send request&quot;);<br />&nbsp; &nbsp; }</p><p>&nbsp; &nbsp; private void onFindLoaction(string routXml)<br />&nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; Debug.Log(&quot;complete&quot;);</p><br /><p>&nbsp; &nbsp; &nbsp; &nbsp; List&lt;OnlineMapsDirectionStep&gt; steps = OnlineMapsDirectionStep.TryParse(routXml);</p><br /><p>&nbsp; &nbsp; &nbsp; &nbsp; if (steps != null)<br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; foreach (OnlineMapsDirectionStep step in steps) Debug.Log(step.stringInstructions);</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; List&lt;Vector2&gt; points = OnlineMapsDirectionStep.GetPoints(steps);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; OnlineMapsDrawingLine route = new OnlineMapsDrawingLine(points, Color.green);</p><br /><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; OnlineMaps.instance.AddDrawingElement(route);</p><br /><br /><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Vector2 center;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int zoom;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; OnlineMapsUtils.GetCenterPointAndZoom(points.ToArray(), out center, out zoom);</p><br /><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; OnlineMaps.instance.zoom = zoom;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; OnlineMaps.instance.SetPosition(center.x ,center.y);</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var distance = OnlineMapsUtils.DistanceBetweenPoints(points[0], points[points.Count -1]);</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Debug.Log(&quot;Distence&quot; + distance);<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; else<br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Debug.Log(&quot;Find direction failed&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; }</p>]]></description>
			<author><![CDATA[null@example.com (aammfe)]]></author>
			<pubDate>Tue, 26 Jul 2016 17:54:53 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=947#p947</guid>
		</item>
		<item>
			<title><![CDATA[Re: Find distance , direction b/w two places]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=946#p946</link>
			<description><![CDATA[<p>Almost:<br /></p><div class="codebox"><pre><code>float DistanceKM = OnlineMapsUtils.DistanceBetweenPoints(point1, point2).magnitude;</code></pre></div><p>Unfortunately, the current version does not have a method that calculates the distance for array of points.<br />You can calculate the distance between each pair of points (1-2, 2-3, 3-4, ...) and sum the results.<br />Or we can add this method.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Tue, 26 Jul 2016 17:28:45 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=946#p946</guid>
		</item>
		<item>
			<title><![CDATA[Re: Find distance , direction b/w two places]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=945#p945</link>
			<description><![CDATA[<p>correct me if i m wrong .</p><p>this is displacement b/w two points </p><p>float DisplacementKM = OnlineMapsUtils.DistanceBetweenPoints(point1 ,point2);</p><p>....<br />if i m right , then there should be a function to calculate distance amoung points</p>]]></description>
			<author><![CDATA[null@example.com (aammfe)]]></author>
			<pubDate>Tue, 26 Jul 2016 16:57:59 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=945#p945</guid>
		</item>
		<item>
			<title><![CDATA[Re: Find distance , direction b/w two places]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=940#p940</link>
			<description><![CDATA[<p>Hello.</p><p>OnlineMapsUtils.DistanceBetweenPoints<br /><a href="http://infinity-code.com/doxygen/online-maps/classOnlineMapsUtils.html#ab8588eb7b2eba619d6c3a0bc84a165f2">http://infinity-code.com/doxygen/online … bc84a165f2</a></p><p>OnlineMapsFindDirection.Find<br /><a href="http://infinity-code.com/doxygen/online-maps/classOnlineMapsFindDirection.html#af6fbc9ac427f5ca81c948cce4514aa98">http://infinity-code.com/doxygen/online … ce4514aa98</a></p><p>FindDirection Example:<br /><a href="http://infinity-code.com/atlas/online-maps/pages/FindDirectionExample.html">http://infinity-code.com/atlas/online-m … ample.html</a></p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Tue, 26 Jul 2016 13:04:38 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=940#p940</guid>
		</item>
		<item>
			<title><![CDATA[Find distance , direction b/w two places]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=939#p939</link>
			<description><![CDATA[<p>how to find distance b/w two points .,???<br />just like google maps??? like this image ..?</p>]]></description>
			<author><![CDATA[null@example.com (aammfe)]]></author>
			<pubDate>Tue, 26 Jul 2016 12:59:13 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=939#p939</guid>
		</item>
	</channel>
</rss>
