<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — Error on OpenRouteServiceExample]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1641&amp;type=atom" />
	<updated>2020-11-19T20:58:10Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=1641</id>
		<entry>
			<title type="html"><![CDATA[Re: Error on OpenRouteServiceExample]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=6880#p6880" />
			<content type="html"><![CDATA[<p>Hello.</p><p>Thanks for the bug report.<br />The problem has been fixed.<br />The new version is already available through the built-in update system.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2020-11-19T20:58:10Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=6880#p6880</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Error on OpenRouteServiceExample]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=6877#p6877" />
			<content type="html"><![CDATA[<p>I&#039;m trying to use the OpenRouteService, when I attach the script I get this error:<br />InvalidCastException: Specified cast is not valid.<br />OnlineMapsReflectionHelper.GetEnumDescription (System.Enum value) (at Assets/Infinity Code/Online maps/Scripts/Core/OnlineMapsReflectionHelper.cs:56)<br />It look like the p.profile does not send the correct name for the profile (drivingCar instead of driving-car) from OnlineMapsOpenRouteServiceDirections.<br />I tried to do not Append the call to OnlineMapsReflectionHelper from OnlineMapsOpenRouteServiceDirections(double[] coordinates, Params p) and Append instead a string with the correct value and it works:</p><p>//builder.Append(p != null ? OnlineMapsReflectionHelper.GetEnumDescription(p.profile) : &quot;driving-car&quot;);<br />builder.Append(&quot;foot-walking&quot;);</p><p>It&#039;s a workaround, can you check this?</p>]]></content>
			<author>
				<name><![CDATA[reosky]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1450</uri>
			</author>
			<updated>2020-11-19T17:53:13Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=6877#p6877</id>
		</entry>
</feed>
