<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — How to return precise coords]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=85&amp;type=atom" />
	<updated>2016-02-14T22:18:19Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=85</id>
		<entry>
			<title type="html"><![CDATA[Re: How to return precise coords]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=351#p351" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[eidern]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=86</uri>
			</author>
			<updated>2016-02-14T22:18:19Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=351#p351</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to return precise coords]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=350#p350" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2016-02-14T22:08:20Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=350#p350</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[How to return precise coords]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=349#p349" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[eidern]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=86</uri>
			</author>
			<updated>2016-02-14T21:50:49Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=349#p349</id>
		</entry>
</feed>
