<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — No support for HereAPI V8, cant make a new account with 7.2 API.]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1942&amp;type=atom" />
	<updated>2022-04-25T09:29:33Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=1942</id>
		<entry>
			<title type="html"><![CDATA[Re: No support for HereAPI V8, cant make a new account with 7.2 API.]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=8226#p8226" />
			<content type="html"><![CDATA[<p>Hello.</p><p>Implementation of classes for HERE Routing API v8 is complete and will be included in the next release.<br />If anyone wants to get a patch before release, please send me an email (support@infinity-code.com).</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2022-04-25T09:29:33Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=8226#p8226</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: No support for HereAPI V8, cant make a new account with 7.2 API.]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=8206#p8206" />
			<content type="html"><![CDATA[<p>I am highly interested in here specifically as a provider. Could you please elaborate more on this Test class? Or can you confirm that a fix is about to come?</p>]]></content>
			<author>
				<name><![CDATA[Coro]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1985</uri>
			</author>
			<updated>2022-04-14T11:51:38Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=8206#p8206</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: No support for HereAPI V8, cant make a new account with 7.2 API.]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=8204#p8204" />
			<content type="html"><![CDATA[<p>Thank you.</p>]]></content>
			<author>
				<name><![CDATA[Appearia]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1918</uri>
			</author>
			<updated>2022-04-12T08:04:16Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=8204#p8204</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: No support for HereAPI V8, cant make a new account with 7.2 API.]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=8202#p8202" />
			<content type="html"><![CDATA[<p>Hello.</p><p>Thank you for reporting this.<br />I will try to add v8 support soon.<br />It will take some time. I think it will be ready next week.</p><p>If you need it urgently, then you can parse the response directly as JSON (it&#039;s not XML).<br />Example:<br /></p><div class="codebox"><pre><code>using System.Collections.Generic;
using System.Linq;
using UnityEngine;

namespace InfinityCode.OnlineMapsSupport
{
    public class TestParseHere8 : MonoBehaviour
    {
        private void Start()
        {
            // Response
            string v = @&quot;{&quot;&quot;routes&quot;&quot;:[{&quot;&quot;id&quot;&quot;:&quot;&quot;e9293701-ed67-47ed-8440-8f24a4d5c485&quot;&quot;,&quot;&quot;sections&quot;&quot;:[{&quot;&quot;id&quot;&quot;:&quot;&quot;ee099a17-1a08-48a1-ac17-5a9617d35d20&quot;&quot;,&quot;&quot;type&quot;&quot;:&quot;&quot;pedestrian&quot;&quot;,&quot;&quot;departure&quot;&quot;:{&quot;&quot;time&quot;&quot;:&quot;&quot;2022-04-11T16:47:34+03:00&quot;&quot;,&quot;&quot;place&quot;&quot;:{&quot;&quot;type&quot;&quot;:&quot;&quot;place&quot;&quot;,&quot;&quot;location&quot;&quot;:{&quot;&quot;lat&quot;&quot;:31.77554,&quot;&quot;lng&quot;&quot;:35.23109},&quot;&quot;originalLocation&quot;&quot;:{&quot;&quot;lat&quot;&quot;:31.77552,&quot;&quot;lng&quot;&quot;:35.2311199}}},&quot;&quot;arrival&quot;&quot;:{&quot;&quot;time&quot;&quot;:&quot;&quot;2022-04-11T16:51:27+03:00&quot;&quot;,&quot;&quot;place&quot;&quot;:{&quot;&quot;type&quot;&quot;:&quot;&quot;place&quot;&quot;,&quot;&quot;location&quot;&quot;:{&quot;&quot;lat&quot;&quot;:31.7741539,&quot;&quot;lng&quot;&quot;:35.2317627},&quot;&quot;originalLocation&quot;&quot;:{&quot;&quot;lat&quot;&quot;:31.7741699,&quot;&quot;lng&quot;&quot;:35.23176}}},&quot;&quot;summary&quot;&quot;:{&quot;&quot;duration&quot;&quot;:233,&quot;&quot;length&quot;&quot;:232,&quot;&quot;baseDuration&quot;&quot;:233},&quot;&quot;polyline&quot;&quot;:&quot;&quot;BGoztz8Bk3qmjCnQ3D_JTrJT3DTrOnBvCAvHUnGUAwCwCkXA8B3N8BvCU_EUkCiR&quot;&quot;,&quot;&quot;transport&quot;&quot;:{&quot;&quot;mode&quot;&quot;:&quot;&quot;pedestrian&quot;&quot;}}]}]}&quot;;

            // Parse json string
            OnlineMapsJSONItem json = OnlineMapsJSON.Parse(v);

            // Get a first section
            OnlineMapsJSONItem firstRoute = json[&quot;routes/0/sections/0&quot;];

            // Get a polyline string
            string polyline = firstRoute.V&lt;string&gt;(&quot;polyline&quot;);
            Debug.Log(polyline);

            // Decode string
            // Important: This is not the correct method for HERE&#039;s polyline string and will return the wrong result.
            // HERE uses its own algorithm, the decoder for which you can find here:
            // https://github.com/heremaps/flexible-polyline
            List&lt;OnlineMapsVector2d&gt; points = OnlineMapsUtils.DecodePolylinePointsD(polyline);

            // Draw a line
            OnlineMapsDrawingLine line = new OnlineMapsDrawingLine(points, Color.red, 3);
            OnlineMapsDrawingElementManager.AddItem(line);

            // Get a center point and zoom for polyline
            Vector2 center;
            int zoom;
            OnlineMapsUtils.GetCenterPointAndZoom(points.Select(p =&gt; new Vector2((float)p.x, (float)p.y)).ToArray(), out center, out zoom);

            // Set a center and zoom to the map
            OnlineMaps.instance.SetPositionAndZoom(center.x, center.y, zoom);

            // Redraw the map
            OnlineMaps.instance.Redraw();

        }
    }
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2022-04-11T22:47:01Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=8202#p8202</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[No support for HereAPI V8, cant make a new account with 7.2 API.]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=8197#p8197" />
			<content type="html"><![CDATA[<p>HereAPI doesn&#039;t offer new support for V7.2.</p><p>I tried making an account today and saw that the account only offers support for V8.<br />While I can change the string request to fit the changes of V8,<br />it gets caught on the xml document loader.</p><p>The xml string is correct is correct for 7.2 but not for V8.<br />is there any workarounds I can use in the meantime?</p><p>Catch error:</p><p>[File: OnlineMapsXML.CS]<br />Can not load XML from string:<br />{&quot;routes&quot;:[{&quot;id&quot;:&quot;e9293701-ed67-47ed-8440-8f24a4d5c485&quot;,&quot;sections&quot;:[{&quot;id&quot;:&quot;ee099a17-1a08-48a1-ac17-5a9617d35d20&quot;,&quot;type&quot;:&quot;pedestrian&quot;,&quot;departure&quot;:{&quot;time&quot;:&quot;2022-04-11T16:47:34+03:00&quot;,&quot;place&quot;:{&quot;type&quot;:&quot;place&quot;,&quot;location&quot;:{&quot;lat&quot;:31.77554,&quot;lng&quot;:35.23109},&quot;originalLocation&quot;:{&quot;lat&quot;:31.77552,&quot;lng&quot;:35.2311199}}},&quot;arrival&quot;:{&quot;time&quot;:&quot;2022-04-11T16:51:27+03:00&quot;,&quot;place&quot;:{&quot;type&quot;:&quot;place&quot;,&quot;location&quot;:{&quot;lat&quot;:31.7741539,&quot;lng&quot;:35.2317627},&quot;originalLocation&quot;:{&quot;lat&quot;:31.7741699,&quot;lng&quot;:35.23176}}},&quot;summary&quot;:{&quot;duration&quot;:233,&quot;length&quot;:232,&quot;baseDuration&quot;:233},&quot;polyline&quot;:&quot;BGoztz8Bk3qmjCnQ3D_JTrJT3DTrOnBvCAvHUnGUAwCwCkXA8B3N8BvCU_EUkCiR&quot;,&quot;transport&quot;:{&quot;mode&quot;:&quot;pedestrian&quot;}}]}]}</p>]]></content>
			<author>
				<name><![CDATA[Appearia]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1918</uri>
			</author>
			<updated>2022-04-11T13:50:27Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=8197#p8197</id>
		</entry>
</feed>
