<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — OnlineMapsOpenRouteServiceDirections]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1785&amp;type=atom" />
	<updated>2021-05-28T13:21:21Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=1785</id>
		<entry>
			<title type="html"><![CDATA[Re: OnlineMapsOpenRouteServiceDirections]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=7496#p7496" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[gwhitch]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1485</uri>
			</author>
			<updated>2021-05-28T13:21:21Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=7496#p7496</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: OnlineMapsOpenRouteServiceDirections]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=7495#p7495" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2021-05-27T23:09:59Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=7495#p7495</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[OnlineMapsOpenRouteServiceDirections]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=7493#p7493" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[gwhitch]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1485</uri>
			</author>
			<updated>2021-05-27T19:49:30Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=7493#p7493</id>
		</entry>
</feed>
