<?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 — OnlineMapsOpenRouteServiceDirections]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=1785</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1785&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in OnlineMapsOpenRouteServiceDirections.]]></description>
		<lastBuildDate>Fri, 28 May 2021 13:21:21 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: OnlineMapsOpenRouteServiceDirections]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=7496#p7496</link>
			<description><![CDATA[<p>Thanks for pointing me to the right direction. The device for was giving me a 0,0 due to an error for my location and that was causing an issue.</p>]]></description>
			<author><![CDATA[null@example.com (gwhitch)]]></author>
			<pubDate>Fri, 28 May 2021 13:21:21 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=7496#p7496</guid>
		</item>
		<item>
			<title><![CDATA[Re: OnlineMapsOpenRouteServiceDirections]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=7495#p7495</link>
			<description><![CDATA[<p>Hello.</p><p>Are you using the same coordinates on PC and Android?</p><p>Also, please attach the url of the requests you have on PC and Android. I will check it.<br />These urls do not need to contain the coordinates that you will be using in production. <br />But, it must be the urls you are having this problem with.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Thu, 27 May 2021 23:09:59 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=7495#p7495</guid>
		</item>
		<item>
			<title><![CDATA[OnlineMapsOpenRouteServiceDirections]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=7493#p7493</link>
			<description><![CDATA[<p>Do I have to do something specific on my Android device? When I ask for the same address when using the OnlineMapsOpenRouteServiceDirections, the result returned on the Android is different than the result returned when it runs in the editor on the PC.</p><p>This is the function call</p><p> OnlineMapsOpenRouteServiceDirections.Find(<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; new double[]<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// Coordinates<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;lng, lat,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Result.features[0].geometry.coordinates[0], Result.features[0].geometry.coordinates[1]<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; targetLng,targetLat<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; },<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; new OnlineMapsOpenRouteServiceDirections.Params<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Extra params<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; language = &quot;en&quot;,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; profile = OnlineMapsOpenRouteServiceDirections.Profile.drivingCar,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; units = &quot;mi&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }).OnComplete += OnRequestComplete;<br />&nbsp; &nbsp; &nbsp; &nbsp; if (targetMarker == null)<br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; targetMarker = OnlineMapsMarker3DManager.CreateItem(Result.features[0].geometry.coordinates[1], Result.features[0].geometry.coordinates[0], targetPrefab);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; targetMarker.scale = targetScale;<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; else targetMarker.SetPosition(targetLng, targetLat);</p><p>&nbsp; &nbsp; }</p><p> private void OnRequestComplete(string response)<br />&nbsp; &nbsp; {<br />response =&nbsp; &quot;HTTP/1.1 400 Bad Request.&quot;&nbsp; (on Android)</p><p>response = {&quot;routes&quot;:[{&quot;summary&quot;:{&quot;distance&quot;:30.137,&quot;duration&quot;:2435.5},&quot;segments&quot;:[{&quot;distance&quot;:30.137...... (on PC:)<br />&nbsp; &nbsp; &nbsp;</p><p>...<br />...<br />...<br />&nbsp; &nbsp; }</p>]]></description>
			<author><![CDATA[null@example.com (gwhitch)]]></author>
			<pubDate>Thu, 27 May 2021 19:49:30 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=7493#p7493</guid>
		</item>
	</channel>
</rss>
