<?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 — How to return precise coords]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=85</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=85&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in How to return precise coords.]]></description>
		<lastBuildDate>Sun, 14 Feb 2016 22:18:19 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: How to return precise coords]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=351#p351</link>
			<description><![CDATA[<p>oh okay. Understood.</p><p>Thanks again for your lighting speed answer <img src="https://forum.infinity-code.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[null@example.com (eidern)]]></author>
			<pubDate>Sun, 14 Feb 2016 22:18:19 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=351#p351</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to return precise coords]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=350#p350</link>
			<description><![CDATA[<p>Hello.</p><p>When you call:<br /></p><div class="codebox"><pre><code>print (api.control.GetCoords());</code></pre></div><p>actually called Vector2.ToString(), that shows one decimal, but really it contains values with full accuracy (float).</p><p>You can check it:<br /></p><div class="codebox"><pre><code>Vector2 coords = api.control.GetCoords();
print (coords.x + &quot; &quot; + coords.y);</code></pre></div><p>or<br /></p><div class="codebox"><pre><code>print (api.control.GetCoords().ToString(&quot;F4&quot;));</code></pre></div><p>Or you can use OnlineMapsControlBase.GetCoords (out double lng, out double lat), to get double-precision coordinates:<br /><a href="http://infinity-code.com/doxygen/online-maps/classOnlineMapsControlBase.html#a228ef68e16cf4831a0780a7644963fc6">http://infinity-code.com/doxygen/online … 7644963fc6</a></p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Sun, 14 Feb 2016 22:08:20 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=350#p350</guid>
		</item>
		<item>
			<title><![CDATA[How to return precise coords]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=349#p349</link>
			<description><![CDATA[<p>Hello,</p><p>I&#039;m testing the 2d marker controls,<br />When I add some markers on a googlemap by adding marker on click with api.control.GetCoords(), like :</p><p>OnlineMaps.instance.AddMarker(api.control.GetCoords(), null, &quot;X&quot;);</p><p>On the map I see that the markers are placed at different pos, but when I try to get the precise lat &amp; lng, with<br />print (api.control.GetCoords())<br /> i get the same coords for markers nearby.</p><p>How can I have lat &amp; lng not rounded by 2 decimals?</p>]]></description>
			<author><![CDATA[null@example.com (eidern)]]></author>
			<pubDate>Sun, 14 Feb 2016 21:50:49 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=349#p349</guid>
		</item>
	</channel>
</rss>
