<?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 — OnlineMapsUtils.NearestPointStrict, trying to get distance from route]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=864</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=864&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in OnlineMapsUtils.NearestPointStrict, trying to get distance from route.]]></description>
		<lastBuildDate>Wed, 11 Jul 2018 13:07:36 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: OnlineMapsUtils.NearestPointStrict, trying to get distance from route]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=3704#p3704</link>
			<description><![CDATA[<p>Thank you for reply, that clears it up! your the man.</p>]]></description>
			<author><![CDATA[null@example.com (theboosted1)]]></author>
			<pubDate>Wed, 11 Jul 2018 13:07:36 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=3704#p3704</guid>
		</item>
		<item>
			<title><![CDATA[Re: OnlineMapsUtils.NearestPointStrict, trying to get distance from route]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=3703#p3703</link>
			<description><![CDATA[<p>Hello.</p><p>OnlineMapsUtils.NearestPointStrict method is created for internal use in drawing API, so it is not documented.<br />But in this particular situation this method is very useful.</p><p>How it works:<br />You know that the user should be somewhere between points A and B.<br />You pass to the method the user&#039;s coordinates (U) and the coordinates of points A and B.<br />The method returns the coordinates of the point (C) on the segment AB, which is closest to U.<br />You calculate the distance between points C and U.<br />If the distance is more than 150 feet, you need to find a new route.<br />Example attached.</p><p>Yes, you can assign TextValue&lt;int&gt;.value to an integer variable.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Tue, 10 Jul 2018 23:46:43 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=3703#p3703</guid>
		</item>
		<item>
			<title><![CDATA[OnlineMapsUtils.NearestPointStrict, trying to get distance from route]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=3700#p3700</link>
			<description><![CDATA[<p>Hey Alex,<br />I am trying to find the users distance from the route, so if the user gets a certain distance from the route (makes a wrong turn), i can trigger a re-calculation of the route from the users current GPS location. In this post (<a href="http://forum.infinity-code.com/viewtopic.php?id=743">http://forum.infinity-code.com/viewtopic.php?id=743</a>) you mentioned using OnlineMapsUtils.NearestPointStrict, however i could not find it in the API docs. could you explain how to use it? or if there is a better way?</p><p>I am already using distancebetweenpoints to display the next step instruction when the user is within 150 feet of the next point.</p><p>Also, OnlineMapsGoogleDirectionsResult.Step.distance returns a TextValue&lt;int&gt;, Does this mean I can just assign the returned value to an integer variable or is some conversion needed? I looked at the distance and duration example that uses this but i wasn&#039;t sure.</p><p>Thanks for your help!</p>]]></description>
			<author><![CDATA[null@example.com (theboosted1)]]></author>
			<pubDate>Tue, 10 Jul 2018 13:51:26 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=3700#p3700</guid>
		</item>
	</channel>
</rss>
