<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — Offline Navigation]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1036&amp;type=atom" />
	<updated>2019-02-21T11:10:01Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=1036</id>
		<entry>
			<title type="html"><![CDATA[Re: Offline Navigation]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4580#p4580" />
			<content type="html"><![CDATA[<p>I did not correctly understand your point in post 5.</p><p>To convert coordinates to Unity World Position, use:<br />OnlineMapsControlBaseDynamicMesh.GetWorldPosition<br /><a href="http://infinity-code.com/doxygen/online-maps/classOnlineMapsControlBaseDynamicMesh.html#a72cf71ab8fdc9263d81e986316068362">http://infinity-code.com/doxygen/online … 6316068362</a></p><p>To convert Unity World Position to coordinates, use:<br />OnlineMapsTileSetControl.GetCoordsByWorldPosition<br /><a href="http://infinity-code.com/doxygen/online-maps/classOnlineMapsTileSetControl.html#a5312d877363f166bb1a9571b58011257">http://infinity-code.com/doxygen/online … 1b58011257</a></p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2019-02-21T11:10:01Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4580#p4580</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Offline Navigation]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4579#p4579" />
			<content type="html"><![CDATA[<p>Thanks again for the links! I&#039;ll check them out asap!</p><div class="quotebox"><cite>Alex Vertax wrote:</cite><blockquote><p>If you have predefined points on the basis of which you will search for a route, why do you need navmesh?</p></blockquote></div><p>I think i explained it wrong - i only have predefined target points (Points of Interest), but the user can start the navigation from wherever he is. That makes it pretty much unpredictable. </p><p>My idea was to model the passable streets of the city as a navmesh and then, when the user requests a route, calculate this route through the navmesh and display it back to the user. Perhaps its not even necessary to match the navmesh with a 3D marker, but i would then need a way to match the lat/long positions on the map to the 3D-point positions of the navmesh.</p>]]></content>
			<author>
				<name><![CDATA[elhowdy]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=898</uri>
			</author>
			<updated>2019-02-21T11:00:09Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4579#p4579</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Offline Navigation]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4578#p4578" />
			<content type="html"><![CDATA[<p>Use OnlineMapsMarker3D.checkMapBoundaries = false to make the marker is always active.<br /><a href="http://infinity-code.com/doxygen/online-maps/classOnlineMapsMarker3D.html#aff08a9ca0a6eb453ca22b6bf394954f6">http://infinity-code.com/doxygen/online … bf394954f6</a></p><p>How to scale a marker with a map:<br /><a href="http://infinity-code.com/atlas/online-maps/pages/MarkerScaleByZoomExample.html">http://infinity-code.com/atlas/online-m … ample.html</a><br />For float zoom:<br /><a href="http://forum.infinity-code.com/viewtopic.php?pid=4529#p4529">http://forum.infinity-code.com/viewtopi … 4529#p4529</a></p><p>If you have predefined points on the basis of which you will search for a route, why do you need navmesh? <br />You can directly use these points in the AStar algorithm to find a route.<br />When you have found a route, you can navigate the route this way:<br /><a href="http://infinity-code.com/atlas/online-maps/pages/MoveMarkerOnRouteExample.html">http://infinity-code.com/atlas/online-m … ample.html</a></p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2019-02-21T10:52:23Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4578#p4578</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Offline Navigation]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4577#p4577" />
			<content type="html"><![CDATA[<p>Hi Alex,</p><p>Thanks for your links! They helped a lot! I decided to purchase the Asset yesterday because of your dedicated support! <img src="https://forum.infinity-code.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>By now i managed to download some tiles and load them into Online Maps via Resources. The offline-loading works really nice!</p><p>For the navigation part - i had a look at the navmesh example that you posted. Unfortunatly, it seems to generate the navmesh &quot;on the fly&quot; - i would need a pre-built navmesh (a 3d gameobject) to work, because (as far as i know) i cant generate a road-navmesh based on the tiles texture. Also, the navmesh should be extending the borders of the view, because the user must be able to navigate to a location that he is not seeing at the moment on the map). I thought about pre-modelling the navmesh and then, attaching it to the map like a 3d marker.</p><p>I already managed to attach a 3D marker, but unfortunatly (in my use-case) the marker disappears as soon as he is out of sight. that makes sense for markers of course, but not if i need it to stay for pathfinding <img src="https://forum.infinity-code.com/img/smilies/smile.png" width="15" height="15" alt="smile" />. do you have a suggestion how to tackle this issue? deactivating the &quot;SetActive(false)&quot; in CustomMarkerEngine.cs line 92 didnt do the trick. it would be nice if we could find a solution to this, as manually placing lat/long nodes on every street seems extremely daunting to me - simply modeling the streets would be a LOT faster....</p><p>Thanks a lot for your help!</p><p>Cheers,<br />Alex</p><p>PS: Also, i would need to figure out how to scale the marker with zoom level accordingly, but that should be doable with some specific ratio i guess...</p>]]></content>
			<author>
				<name><![CDATA[elhowdy]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=898</uri>
			</author>
			<updated>2019-02-21T10:40:15Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4577#p4577</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Offline Navigation]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4576#p4576" />
			<content type="html"><![CDATA[<p>You need to store the tiles and explain to the map where to find them.<br />Most likely you will keep the tiles outside the Resources, so here are some examples:<br /><a href="http://infinity-code.com/atlas/online-maps/index.html#Intercept%20Request">http://infinity-code.com/atlas/online-m … %20Request</a><br />For Resources, you can simply select the source of the tiles in the inspector.<br />Online Maps will automatically load only the required tiles and display them on the map.</p><p>How does the tile system work:<br /><a href="https://docs.microsoft.com/en-us/bingmaps/articles/bing-maps-tile-system">https://docs.microsoft.com/en-us/bingma … ile-system</a><br /><a href="https://www.maptiler.com/google-maps-coordinates-tile-bounds-projection/">https://www.maptiler.com/google-maps-co … rojection/</a></p><p>Yes, of course you can place a marker in some location.<br />But for this, it’s does not matter for the map how tiles look and if they exist at all.</p><p>Yes, you can use navmesh.<br />See &quot;4_sliding_window_infinite&quot; example scene from NavMesh repository.<br /><a href="https://github.com/Unity-Technologies/NavMeshComponents/tree/master/Assets/Examples/Scenes">https://github.com/Unity-Technologies/N … les/Scenes</a></p><p>Yes, you will need to use drawing API.<br />Examples:<br /><a href="http://infinity-code.com/atlas/online-maps/index.html#Drawing%20API">http://infinity-code.com/atlas/online-m … wing%20API</a></p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2019-02-20T20:16:06Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4576#p4576</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Offline Navigation]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4574#p4574" />
			<content type="html"><![CDATA[<p>Hmm okay. That makes sense - I think i&#039;m starting to understand how this works. Thanks for elaborating!</p><div class="quotebox"><cite>Alex Vertax wrote:</cite><blockquote><p>Tile is just a picture used to display a map. <br />It does not contain information about objects.</p></blockquote></div><p>So i could store the MAP(Tiles) of a city offline and scroll through them and show the users location with &quot;Online Maps&quot;? <br />Correct me if i&#039;m wrong, but there must be some data stored with the picture that connects the image to the GPS-Locations?<br />Lets say i want to place a Marker (some sightseeing POI for the tourist to see) on an offline map on location [x=200, y=50] (some lat long values) - is that possible?</p><p>If that is possible, i could also hand-place some navigation-nodes (for AStar) through the streets, where i want the user to be navigated through via latlong coordinates. (Perhaps it would be easier if i could match a navmesh with the map somehow?). </p><p>Also, i guess the drawing API could be used to show generated path then?</p><p>What do you think?</p><p>Thanks a lot for your help here - perhaps some other user might benefit from this conversation as well.</p><p>Cheers,<br />Alex</p>]]></content>
			<author>
				<name><![CDATA[elhowdy]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=898</uri>
			</author>
			<updated>2019-02-20T14:58:51Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4574#p4574</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Offline Navigation]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4573#p4573" />
			<content type="html"><![CDATA[<p>Online Maps can display offline maps.<br />This includes: tiles, overlay, elevations, drawing API, markers, buildings.</p><p>Geocoding, routing, places search (etc.) are used by third-party online services from Google, Bing Maps, HERE, OSM.<br />Request to the service can not be offline.<br />Of course, you can cache the response, but it does not make sense.</p><p>Tile is just a picture used to display a map. <br />It does not contain information about objects.<br />So you can not use tiles to search for routes.<br />To do this you need an extra information, in this case the road atlas.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2019-02-20T11:29:36Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4573#p4573</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Offline Navigation]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4572#p4572" />
			<content type="html"><![CDATA[<p>Thanks a lot for your suggestions and your fast reply!</p><div class="quotebox"><cite>Alex Vertax wrote:</cite><blockquote><p>As an algorithm, you can try using A-Star. <br />I do not know how this algorithm is suitable for this task.</p></blockquote></div><p>I think the A-Star algorithm could work quite fine (since the tourists are not driving around in cars, we dont have to consider one-way-streets).</p><div class="quotebox"><cite>Alex Vertax wrote:</cite><blockquote><p>Offline road atlas:<br />I have never seen such data in public access.</p></blockquote></div><p>Hmm, so what exactly is the &quot;offline maps&quot; feature then of the asset &quot;Online Maps v3&quot;? I&#039;m a bit confused - is there a difference between a &quot;road atlas&quot; and a &quot;map&quot;?</p><p>I was thinking, that if your asset doesnt support offline navigation out of the box - i might have to do this myself using A-Star, but somehow i need to visually connect it to the offline maps displayed by &quot;Online Maps v3&quot;?</p><p>Cheers and thanks for your help!</p>]]></content>
			<author>
				<name><![CDATA[elhowdy]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=898</uri>
			</author>
			<updated>2019-02-20T11:09:24Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4572#p4572</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Offline Navigation]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4571#p4571" />
			<content type="html"><![CDATA[<p>Hello.</p><p>It has never been discussed, and it does not have a prepared solution.</p><p>To make offline navigation you need to have an atlas of roads and a route search algorithm.</p><p>Algorithm:<br />As an algorithm, you can try using A-Star. <br />I do not know how this algorithm is suitable for this task. <br />But this is a universal algorithm and will definitely work until you find something better.</p><p>Offline road atlas:<br />I have never seen such data in public access.<br />So you have three ways:<br />1. Buy atlases from any service that has it. For example maps.me, tomtom, etc.<br />2. Unofficially use atlases for some other application or service. In this case, you will need to reverse engineer the data.<br />3. Make your own atlases based on public data, for example from OSM or Mapbox.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2019-02-20T10:21:59Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4571#p4571</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Offline Navigation]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4570#p4570" />
			<content type="html"><![CDATA[<p>Hi there,</p><p>For an App (Android and iOS) I need navigation and a working GPS in a specified area, but it has to work offline, as the main target-group are tourists.<br />What is the best way to prepare a certain area of the world to work and navigate through while being offline using &quot;Online Maps v3&quot;? I&#039;ve read somewhere on the forums that its possible to pre-load the maps to work offline, but i havent read anything about the navigation part yet...</p><p>Sorry if that has been asked and cleared up before, but i couldnt find it in the docs or in the forum.</p><p>Cheers and thanks upfront,<br />Alex</p>]]></content>
			<author>
				<name><![CDATA[elhowdy]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=898</uri>
			</author>
			<updated>2019-02-20T09:30:32Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4570#p4570</id>
		</entry>
</feed>
