<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — How Exact is the Road data?]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=693&amp;type=atom" />
	<updated>2017-11-09T13:07:49Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=693</id>
		<entry>
			<title type="html"><![CDATA[Re: How Exact is the Road data?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=2988#p2988" />
			<content type="html"><![CDATA[<p>Yes, you can do it.<br />But it&#039;s much better to use 3D markers for these purposes.</p><p>Yes, theoretically you can draw a polygon or line.<br />But as I already wrote above: Drawing API is not designed for such use.<br />This means that with a large number of drawing elements your application will run slowly.<br />In this case it&#039;s much better to implement your own way of generating roads, which will be optimized for your specific application.<br />Online Maps does not force you to use the built-in Drawing API.<br />You can generate mesh yourself, use LineRenderer or GL.</p><p>No, there is no standardized way.<br />There are only a few services here, each of which has advantages and disadvantages, for example: OSM Overpass API and Mapbox / Mapzen vector tiles.<br />Vector tiles are much smaller, faster to download and parse (especially if it&#039;s protobuf). But this data is VERY difficult to use for calculations.<br />OSM data is fairly easy to use, but the server response can be a few megabytes in size. It&#039;s very slow to load and parse such XML.</p><p>What a way to use it is only your choice.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2017-11-09T13:07:49Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=2988#p2988</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How Exact is the Road data?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=2987#p2987" />
			<content type="html"><![CDATA[<p>Hi Alex,</p><p>Thanks for the information - I&#039;ve been looking through the API and it looks quite robust! But, I&#039;m wondering with the drawing API and the building Node class, could I replace buildings with my own prefabs? </p><p>Also, sorry, but I&#039;m still unclear about drawing the road surface - looks like there is stuff for this with the OnlineMapsDrawingPoly Class? Could I then lay that over a tile and generate the road surfaces?</p><p>I have a VR game where I want to put the player in some real world based locations, but customize that location a bit, stuff like roads, buildings, and then add some prefab game objects at certain points. From what I&#039;ve been learning about OSM data and getting that into Unity - it looks like there are some &#039;standardized&#039; ways of getting the data for stuff like &#039;roads&#039; or &#039;landuse&#039; or &#039;building&#039;. I&#039;ve looked into Mapbox as well, but it seems a bit limited in it&#039;s VR usages and the API for getting particular things isn&#039;t very clear to me. The API with Online Maps looks really perfect for my use case, I think. </p><p>Again, thank you so much for the information and help,</p><p>Steve</p>]]></content>
			<author>
				<name><![CDATA[steven.babb]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=579</uri>
			</author>
			<updated>2017-11-09T10:17:32Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=2987#p2987</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How Exact is the Road data?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=2985#p2985" />
			<content type="html"><![CDATA[<p>Hello.</p><p>Unfortunately, I&#039;m not sure that I understood your question correctly.</p><p>If you want to get this information, use OSM Overpass API.<br />Example:<br /><a href="http://infinity-code.com/atlas/online-maps/pages/OSMRequestExample.html">http://infinity-code.com/atlas/online-m … ample.html</a></p><p>If you want to draw a map based on your own data - unfortunately, Online Maps can not do this.<br />Online Maps has a drawing API, but it is not designed for such use.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2017-11-08T19:36:51Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=2985#p2985</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How Exact is the Road data?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=2984#p2984" />
			<content type="html"><![CDATA[<p>Hello,</p><p>Also wondering if it&#039;s possible to generate street geometry at run time?</p>]]></content>
			<author>
				<name><![CDATA[steven.babb]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=579</uri>
			</author>
			<updated>2017-11-08T15:15:45Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=2984#p2984</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[How Exact is the Road data?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=2981#p2981" />
			<content type="html"><![CDATA[<p>Hello,</p><p>I&#039;m working on a VR game for Unity and I&#039;ve been looking at several mapping solutions and I came across Online Maps for Unity. But, I have some sort of strange needs using real world street data to figure out road length to do some object generation at run time. I&#039;m wondering if Online Maps gives me access to the following:</p><p>Node - point specified by latitude and longitude. Used to define some POI (Place Of Interest) on map.</p><p>Way - open polyline specified by two or more points. Common usage is roads.</p><p>Area - closed polygon specified by three or more points. Widely used for simple buildings, terrain regions (green zones, water, etc.)</p><p>Relation - union of nodes, ways, areas or relations. Used for specifying complex shaped buildings, terrain regions, etc.</p><p>Also, I can&#039;t tell from the videos - but do map tiles that are generated support height information as well or are all of the maps flat?</p><p>Thanks,<br />Steve</p>]]></content>
			<author>
				<name><![CDATA[steven.babb]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=579</uri>
			</author>
			<updated>2017-11-08T08:40:10Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=2981#p2981</id>
		</entry>
</feed>
