<?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 — openrouteservices autocomplete]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=2219</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=2219&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in openrouteservices autocomplete.]]></description>
		<lastBuildDate>Wed, 27 Dec 2023 12:43:55 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: openrouteservices autocomplete]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=9326#p9326</link>
			<description><![CDATA[<p>Hello.</p><p>Previously, ORS did not have an API for autocomplete.<br />I just checked the documentation and now ORS has an autocomplete API (experimental).<br />Unfortunately Online Maps can&#039;t work with it directly, but that doesn&#039;t mean you can&#039;t use it.<br />Just make the request and process the response yourself.<br />Example:<br /></p><div class="codebox"><pre><code>using UnityEngine;

namespace InfinityCode.OnlineMapsSupport
{
    public class ORSAutocomplete : MonoBehaviour
    {
        public string key;
    
        private void Start()
        {
            OnlineMapsWWW www = new OnlineMapsWWW($&quot;https://api.openrouteservice.org/geocode/autocomplete?api_key={key}&amp;text=Toky&quot;);
            www.OnComplete += OnRequestComplete;
        }

        private void OnRequestComplete(OnlineMapsWWW www)
        {
            OnlineMapsJSONItem json = OnlineMapsJSON.Parse(www.text);
            foreach (OnlineMapsJSONItem item in json[&quot;features&quot;])
            {
                Debug.Log(item[&quot;properties/label&quot;].V&lt;string&gt;());
            }
        }
    }
}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Wed, 27 Dec 2023 12:43:55 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=9326#p9326</guid>
		</item>
		<item>
			<title><![CDATA[openrouteservices autocomplete]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=9325#p9325</link>
			<description><![CDATA[<p>How can I use openrouteservices for address autocomplete? I need a open route service version of OnlineMapsGooglePlacesAutocomplete and OnlineMapsGooglePlacesAutocompleteResult right?</p><p>There are examples from OpenRouteService for Directions and Geocoding. Can I use geocoding as the autocomplete functionality</p><p>Thanks for help</p>]]></description>
			<author><![CDATA[null@example.com (mikli1)]]></author>
			<pubDate>Wed, 27 Dec 2023 12:27:23 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=9325#p9325</guid>
		</item>
	</channel>
</rss>
