<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — Is there a way to detect the road when the user clicks on the map?]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=2341&amp;type=atom" />
	<updated>2025-02-23T10:44:17Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=2341</id>
		<entry>
			<title type="html"><![CDATA[Re: Is there a way to detect the road when the user clicks on the map?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=9770#p9770" />
			<content type="html"><![CDATA[<p>Snap To Road will give you the nearest point on the road (if possible). <br />Calculate the distance from the click point to the point on the road, and if this is less than some threshold, the user has clicked on the road.<br /><a href="https://infinity-code.com/doxygen/online-maps/classOnlineMapsUtils.html#a03c68a7ad2512d685e0383dd617a6d18">https://infinity-code.com/doxygen/onlin … dd617a6d18</a></p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2025-02-23T10:44:17Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=9770#p9770</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Is there a way to detect the road when the user clicks on the map?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=9769#p9769" />
			<content type="html"><![CDATA[<p>So with this &quot;SnapToRoads&quot; feature, can I detect if the user places a marker on the road?</p>]]></content>
			<author>
				<name><![CDATA[legend.forever1021]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=15659</uri>
			</author>
			<updated>2025-02-22T20:57:26Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=9769#p9769</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Is there a way to detect the road when the user clicks on the map?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=9768#p9768" />
			<content type="html"><![CDATA[<p>Hi.</p><p>The easiest way to do this is the Google Road API:<br /><a href="https://infinity-code.com/doxygen/online-maps/classOnlineMapsGoogleRoads.html#a172b1fc8bd6cf2817e47a4c031850cd1">https://infinity-code.com/doxygen/onlin … c031850cd1</a></p><p>Alternatively, you can use Vector Tiles or OSM Overpass API to check the road. But these ways are much harder to implement.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2025-02-22T20:50:24Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=9768#p9768</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Is there a way to detect the road when the user clicks on the map?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=9767#p9767" />
			<content type="html"><![CDATA[<p>Hi.<br />Is there a way to detect the road when the user clicks on the map?</p>]]></content>
			<author>
				<name><![CDATA[legend.forever1021]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=15659</uri>
			</author>
			<updated>2025-02-22T20:05:50Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=9767#p9767</id>
		</entry>
</feed>
