<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — How to search for locations in OSM]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1723&amp;type=atom" />
	<updated>2021-03-19T10:43:20Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=1723</id>
		<entry>
			<title type="html"><![CDATA[Re: How to search for locations in OSM]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=7269#p7269" />
			<content type="html"><![CDATA[<p>I realized that I needed to learn more about OSM. Thank you.</p>]]></content>
			<author>
				<name><![CDATA[kmasaki]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1542</uri>
			</author>
			<updated>2021-03-19T10:43:20Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=7269#p7269</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to search for locations in OSM]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=7262#p7262" />
			<content type="html"><![CDATA[<p>Hello.</p><p>Something like:<br /></p><div class="codebox"><pre><code>string requestData = String.Format(&quot;node({0},{1},{2},{3});way(bn)[{4}];(._;&gt;;);out;&quot;,
    bottomRight.y.ToString(OnlineMapsUtils.numberFormat), 
    topLeft.x.ToString(OnlineMapsUtils.numberFormat), 
    topLeft.y.ToString(OnlineMapsUtils.numberFormat), 
    bottomRight.x.ToString(OnlineMapsUtils.numberFormat), 
    &quot;&#039;building&#039;~&#039;hotel&#039;&quot;);

OnlineMapsOSMAPIQuery.Find(requestData).OnComplete += OnComplete;</code></pre></div><p>To combine requests, you simply write two requests in the same string.</p><p>OSM Overpass QL has a rather difficult syntax.<br />Either you understand how it works, or use some other service.<br />Help with making QL requests (and any other things outside of Online Maps) is not included in the support.</p><p>A few links that might be useful to you:<br /><a href="https://wiki.openstreetmap.org/wiki/Overpass_API/Language_Guide">https://wiki.openstreetmap.org/wiki/Ove … uage_Guide</a><br /><a href="https://wiki.openstreetmap.org/wiki/Map_features">https://wiki.openstreetmap.org/wiki/Map_features</a><br /><a href="http://overpass-turbo.eu/">http://overpass-turbo.eu/</a></p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2021-03-18T20:26:15Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=7262#p7262</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[How to search for locations in OSM]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=7260#p7260" />
			<content type="html"><![CDATA[<p>Hello.</p><p>I&#039;m trying to use &quot;OSMRequestExample&quot;, but I don&#039;t know how to use it.<br />Could you please give me a sample code to get the name and coordinates of a cafe in the screen area using OSM?<br />I would also like to know how to search for multiple conditions at the same time.</p>]]></content>
			<author>
				<name><![CDATA[kmasaki]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1542</uri>
			</author>
			<updated>2021-03-18T11:53:26Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=7260#p7260</id>
		</entry>
</feed>
