<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — What if I want to get more than one Place Type?]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1702&amp;type=atom" />
	<updated>2021-03-04T15:53:10Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=1702</id>
		<entry>
			<title type="html"><![CDATA[Re: What if I want to get more than one Place Type?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=7215#p7215" />
			<content type="html"><![CDATA[<p>I was able to do it successfully. <br />Thank you very much, it was very helpful.</p>]]></content>
			<author>
				<name><![CDATA[kmasaki]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1542</uri>
			</author>
			<updated>2021-03-04T15:53:10Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=7215#p7215</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: What if I want to get more than one Place Type?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=7214#p7214" />
			<content type="html"><![CDATA[<p>C# has many ways to do this, for example, through closures:<br /></p><div class="codebox"><pre><code>// ...
Texture2D image = PoiIcons[i].Image;
// ...
}).OnComplete += s =&gt; OnComplete(s, image);
// ...
private void OnComplete(string s, Texture2D Image)
// ...</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2021-03-04T15:35:27Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=7214#p7214</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: What if I want to get more than one Place Type?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=7213#p7213" />
			<content type="html"><![CDATA[<p>Hello.</p><p>One more question came up.<br />I couldn&#039;t figure out how to switch the icon image for each type if I can&#039;t search for multiple types at the same time.</p><p>I have created a class that contains &quot;Image&quot; and &quot;Type&quot;.<br /><span class="postimg"><img src="http://s.kota2.net/1614870253.png" alt="PunBB bbcode test" /></span></p><p>I used a For statement in the &quot;PoiIcon class&quot; array to search for each type.<br /><span class="postimg"><img src="http://s.kota2.net/1614870254.png" alt="PunBB bbcode test" /></span></p><p>However, I could not find a way to set the texture corresponding to the type in &quot;OnComplete&quot;.<br /><span class="postimg"><img src="http://s.kota2.net/1614870255.png" alt="PunBB bbcode test" /></span></p><p>Please let me know if you have a better solution.</p>]]></content>
			<author>
				<name><![CDATA[kmasaki]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1542</uri>
			</author>
			<updated>2021-03-04T15:24:49Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=7213#p7213</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: What if I want to get more than one Place Type?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=7194#p7194" />
			<content type="html"><![CDATA[<p>I understand, thanks for the reply.</p>]]></content>
			<author>
				<name><![CDATA[kmasaki]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1542</uri>
			</author>
			<updated>2021-02-24T10:48:57Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=7194#p7194</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: What if I want to get more than one Place Type?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=7188#p7188" />
			<content type="html"><![CDATA[<p>Hello.</p><p>I just checked Google Places API documentation and now type only takes one value and all the following are ignored.<br /><a href="https://developers.google.com/places/web-service/search#PlaceSearchRequests">https://developers.google.com/places/we … chRequests</a></p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2021-02-23T17:28:13Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=7188#p7188</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[What if I want to get more than one Place Type?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=7184#p7184" />
			<content type="html"><![CDATA[<p>Hello.</p><p>What if I want to get more than one Place Type?<br />I wrote the following but could not get it.</p><div class="codebox"><pre><code>OnlineMapsGooglePlaces.FindNearby(
            apiKey,
            new OnlineMapsGooglePlaces.NearbyParams(
                longitude, // Longitude
                latitude, // Latitude
                5000) // Radius
                {
                types = &quot;church|park&quot;
            }).OnComplete += OnComplete;</code></pre></div>]]></content>
			<author>
				<name><![CDATA[kmasaki]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1542</uri>
			</author>
			<updated>2021-02-23T15:21:29Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=7184#p7184</id>
		</entry>
</feed>
