<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Power BI Reverse Geocoding Archives | KAISPE</title>
	<atom:link href="https://www.kaispe.com/tag/power-bi-reverse-geocoding/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.kaispe.com/tag/power-bi-reverse-geocoding/</link>
	<description>Your Digital Transformation Partner</description>
	<lastBuildDate>Tue, 09 Jul 2019 19:59:32 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.4</generator>

<image>
	<url>https://www.kaispe.com/wp-content/uploads/2022/01/cropped-k-32x32.png</url>
	<title>Power BI Reverse Geocoding Archives | KAISPE</title>
	<link>https://www.kaispe.com/tag/power-bi-reverse-geocoding/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Reverse GeoLocation in Power BI</title>
		<link>https://www.kaispe.com/reverse-geolocation-in-power-bi/</link>
		
		<dc:creator><![CDATA[jdkaispe]]></dc:creator>
		<pubDate>Tue, 09 Jul 2019 19:59:32 +0000</pubDate>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Azure IoT Central]]></category>
		<category><![CDATA[Power BI geo code]]></category>
		<category><![CDATA[Power BI Reverse Geocoding]]></category>
		<guid isPermaLink="false">https://www.kaispe.com/?p=650</guid>

					<description><![CDATA[<p>While I was working on KAISPE Agricultural Farming Application, one of the requirements was to use Power BI and map visualizations to view the locations of my IoT devices. The [&#8230;]</p>
<p>The post <a href="https://www.kaispe.com/reverse-geolocation-in-power-bi/">Reverse GeoLocation in Power BI</a> appeared first on <a href="https://www.kaispe.com">KAISPE</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>While I was working on KAISPE Agricultural Farming Application, one of the requirements was to use Power BI and map visualizations to view the locations of my IoT devices. The problem of my application was that I was missing the readable address information for devices, as I already had address points (latitude, longitude) in my database. I also used a report level filter with all locations for my devices using reverse geocoding.</p>
<p>So today I am going to reverse geocode using address points. In my case I am using Bing Maps API to get readable address information.</p>
<p>First Sign up Bing Maps developer account and when you have your Bing Maps developer account, you need to create a new key. This key will allow you to use the Bing Maps API, select My account and select My keys:</p>
<p><img decoding="async" class="wp-image-651 alignnone" src="https://www.kaispe.com/wp-content/uploads/2019/07/1.png" alt="" width="347" height="132" /></p>
<p>Next fill out the form and you can leave the Application URL section empty and click the Create button.</p>
<p><img fetchpriority="high" decoding="async" class="wp-image-652 alignnone" src="https://www.kaispe.com/wp-content/uploads/2019/07/2.png" alt="" width="334" height="431" srcset="https://www.kaispe.com/wp-content/uploads/2019/07/2.png 619w, https://www.kaispe.com/wp-content/uploads/2019/07/2-233x300.png 233w" sizes="(max-width: 334px) 100vw, 334px" /></p>
<p>When you have created the key, copy the key to your clipboard so you can use it in your Power BI query when you access the Bing Maps</p>
<p><img decoding="async" class="wp-image-653 alignnone" src="https://www.kaispe.com/wp-content/uploads/2019/07/3.png" alt="" width="610" height="124" srcset="https://www.kaispe.com/wp-content/uploads/2019/07/3.png 1341w, https://www.kaispe.com/wp-content/uploads/2019/07/3-300x61.png 300w, https://www.kaispe.com/wp-content/uploads/2019/07/3-1024x208.png 1024w, https://www.kaispe.com/wp-content/uploads/2019/07/3-768x156.png 768w" sizes="(max-width: 610px) 100vw, 610px" /></p>
<p>So, for this particular problem, we have a list of address points for the devices.</p>
<p><img decoding="async" class="wp-image-656 alignnone" src="https://www.kaispe.com/wp-content/uploads/2019/07/7.png" alt="" width="588" height="451" srcset="https://www.kaispe.com/wp-content/uploads/2019/07/7.png 1251w, https://www.kaispe.com/wp-content/uploads/2019/07/7-300x230.png 300w, https://www.kaispe.com/wp-content/uploads/2019/07/7-1024x784.png 1024w, https://www.kaispe.com/wp-content/uploads/2019/07/7-768x588.png 768w" sizes="(max-width: 588px) 100vw, 588px" /></p>
<p>Now, we need to convert the address points (latitude and longitude) into readable address. To do this, we will need to create a new query in Power BI that we will use as a function to reverse geocode.</p>
<p>For this, I’m using the following <strong>URL</strong>:</p>
<p><a href="http://dev.virtualearth.net/REST/v1/Locations/47.64054,-122.12934?o=xml&amp;key=BingMapsKey">http://dev.virtualearth.net/REST/v1/Locations/47.64054,-122.12934?o=xml&amp;key=BingMapsKey</a></p>
<p><strong>Note</strong>: I have replaced the API key which I have created in the last step.</p>
<p>Now we need to create a function using Bing map API key. To do this we will be following these steps:</p>
<p>First, select <strong>Get Data </strong>in the Home ribbon and <strong>Web</strong> as source</p>
<p><img decoding="async" class="wp-image-655 alignnone" src="https://www.kaispe.com/wp-content/uploads/2019/07/5.png" alt="" width="181" height="332" /></p>
<p>Find address column and click the Table link and drilling through.</p>
<p><img decoding="async" class="wp-image-654 alignnone" src="https://www.kaispe.com/wp-content/uploads/2019/07/4.png" alt="" width="523" height="112" srcset="https://www.kaispe.com/wp-content/uploads/2019/07/4.png 1363w, https://www.kaispe.com/wp-content/uploads/2019/07/4-300x64.png 300w, https://www.kaispe.com/wp-content/uploads/2019/07/4-1024x219.png 1024w, https://www.kaispe.com/wp-content/uploads/2019/07/4-768x165.png 768w" sizes="(max-width: 523px) 100vw, 523px" /></p>
<p>Now we need to use this query to create a dynamic function that we can use to convert the address point information. Click the Advanced Editor button in the Home ribbon. You should see the M query</p>
<p><img decoding="async" class="wp-image-657 alignnone" src="https://www.kaispe.com/wp-content/uploads/2019/07/8.png" alt="" width="695" height="367" srcset="https://www.kaispe.com/wp-content/uploads/2019/07/8.png 1920w, https://www.kaispe.com/wp-content/uploads/2019/07/8-300x159.png 300w, https://www.kaispe.com/wp-content/uploads/2019/07/8-1024x542.png 1024w, https://www.kaispe.com/wp-content/uploads/2019/07/8-768x406.png 768w, https://www.kaispe.com/wp-content/uploads/2019/07/8-1536x813.png 1536w" sizes="(max-width: 695px) 100vw, 695px" /></p>
<p>Now we’re ready to use our new function in a custom column in our query that has the address points.</p>
<p>Now, go to the <strong>Add Column</strong> ribbon and click <strong>Add Custom Column</strong>.</p>
<p><img decoding="async" class="wp-image-658 alignnone" src="https://www.kaispe.com/wp-content/uploads/2019/07/9.png" alt="" width="486" height="299" srcset="https://www.kaispe.com/wp-content/uploads/2019/07/9.png 890w, https://www.kaispe.com/wp-content/uploads/2019/07/9-300x184.png 300w, https://www.kaispe.com/wp-content/uploads/2019/07/9-768x472.png 768w" sizes="(max-width: 486px) 100vw, 486px" /></p>
<p><strong>Note</strong>:  convert Latitude and Longitude values to text if you run into a data type error.</p>
<p>Now, expand the new column and select the fields and click OK.<img decoding="async" class="wp-image-659 alignnone" src="https://www.kaispe.com/wp-content/uploads/2019/07/10.png" alt="" width="627" height="337" srcset="https://www.kaispe.com/wp-content/uploads/2019/07/10.png 1244w, https://www.kaispe.com/wp-content/uploads/2019/07/10-300x161.png 300w, https://www.kaispe.com/wp-content/uploads/2019/07/10-1024x550.png 1024w, https://www.kaispe.com/wp-content/uploads/2019/07/10-768x412.png 768w" sizes="(max-width: 627px) 100vw, 627px" /></p>
<p>You should see results here.</p>
<p><img decoding="async" class=" wp-image-660 aligncenter" src="https://www.kaispe.com/wp-content/uploads/2019/07/11.png" alt="" width="617" height="329" /></p>
<p>You can also seen visuals on Power BI.</p>
<p><img decoding="async" class=" wp-image-661 alignnone" src="https://www.kaispe.com/wp-content/uploads/2019/07/12.png" alt="" width="559" height="403" /></p>
<p>I hope you found this blog post helpful. If you have any questions, please feel free to contact me muhammad.ahmad@kaispe.com.</p>
<p>The post <a href="https://www.kaispe.com/reverse-geolocation-in-power-bi/">Reverse GeoLocation in Power BI</a> appeared first on <a href="https://www.kaispe.com">KAISPE</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
