<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — Creation of Geofences]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1751&amp;type=atom" />
	<updated>2022-02-09T04:41:16Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=1751</id>
		<entry>
			<title type="html"><![CDATA[Re: Creation of Geofences]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=8091#p8091" />
			<content type="html"><![CDATA[<p>Thanks. It work on Editor!</p><p>Now I go to test on street. <img src="https://forum.infinity-code.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>EDIT:</p><p>On street:<br />Work perfectly in both iPhone 6 Plus with iOS 12 and on iPhone 11 Pro Max with latest iOS 15.3.</p><p>Thanks!<br />Paolo <img src="https://forum.infinity-code.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></content>
			<author>
				<name><![CDATA[voceradio]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1845</uri>
			</author>
			<updated>2022-02-09T04:41:16Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=8091#p8091</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Creation of Geofences]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=8088#p8088" />
			<content type="html"><![CDATA[<p>To get the coordinates of a marker, use marker.GetPosition or marker.position.<br /><a href="https://infinity-code.com/doxygen/online-maps/classOnlineMapsMarkerBase.html#ad5c6b094e881baeb14837320d4968b61">https://infinity-code.com/doxygen/onlin … 20d4968b61</a><br /><a href="https://infinity-code.com/doxygen/online-maps/classOnlineMapsMarkerBase.html#aaeb6baa3068f0ee8a29a190a8c559dcd">https://infinity-code.com/doxygen/onlin … 0a8c559dcd</a></p><p>To get current GPS coordinates use OnlineMapsLocationService.instance.position<br /><a href="https://infinity-code.com/doxygen/online-maps/classOnlineMapsLocationServiceBase.html#a1ced3b12069bbb55866823444f547053">https://infinity-code.com/doxygen/onlin … 444f547053</a></p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2022-02-08T20:18:51Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=8088#p8088</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Creation of Geofences]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=8087#p8087" />
			<content type="html"><![CDATA[<p>Thank you. I&#039;ve already seen this script but I can&#039;t understand how copy the GPS location Marker and the GPS location Player (location service) to X and Y in both field.</p><p>I&#039;ve instantiate 1 marker and I can see it on Maps/Markers and i&#039;ve add Player 3D and I see it in Maps Marker3D hierarchy.</p><p>How to copy the 2 location GPS to this script?</p><p>Thanks,<br />Paolo</p>]]></content>
			<author>
				<name><![CDATA[voceradio]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1845</uri>
			</author>
			<updated>2022-02-08T20:07:13Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=8087#p8087</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Creation of Geofences]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=8084#p8084" />
			<content type="html"><![CDATA[<p>Example:<br /><a href="https://infinity-code.com/atlas/online-maps/pages/DistanceAndDirectionExample.html">https://infinity-code.com/atlas/online- … ample.html</a></p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2022-02-08T17:18:30Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=8084#p8084</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Creation of Geofences]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=8083#p8083" />
			<content type="html"><![CDATA[<p>Hi, I&#039;ve try several time but can&#039;t understand how to calculate the real distance (location gps) from 1 marker and the player (location service). Or how to create a geo fence around a Marker so when the Player (location service) enter in this area can activate a function.</p><p>I would like to activate a function ONLY when I&#039;m near to specific marker, about 3 meters (or inside a radius range, or inside a geo fence).</p><p>I&#039;ve try the Collider (with Rigidbody) mode but when I zoom out the collider of the Marker and the collider of the player collision together.</p><p>Thank you very much if you can help with an example code,<br />Paolo <img src="https://forum.infinity-code.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></content>
			<author>
				<name><![CDATA[voceradio]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1845</uri>
			</author>
			<updated>2022-02-08T14:35:25Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=8083#p8083</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Creation of Geofences]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=7365#p7365" />
			<content type="html"><![CDATA[<p>Hello.</p><p>To do this, calculate the distance between the object and the target coordinate.<br />If the distance is less than a certain threshold, trigger the event you want.<br /><a href="https://infinity-code.com/doxygen/online-maps/classOnlineMapsUtils.html#ab8588eb7b2eba619d6c3a0bc84a165f2">https://infinity-code.com/doxygen/onlin … bc84a165f2</a></p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2021-04-08T00:27:39Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=7365#p7365</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Creation of Geofences]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=7361#p7361" />
			<content type="html"><![CDATA[<p>Good day. Need help. Is it possible to implement the binding of objects to a specific geolocation zone? For example, when our marker (Location service) enters a certain circle geofence on the map, we automatically have an object - &quot;You are in the square&quot; and the like. I&#039;ll be very thankful</p>]]></content>
			<author>
				<name><![CDATA[cilkamib]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1572</uri>
			</author>
			<updated>2021-04-07T18:22:51Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=7361#p7361</id>
		</entry>
</feed>
