<?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>Location &#8211; Best DevOps</title>
	<atom:link href="https://www.bestdevops.com/tag/location/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.bestdevops.com</link>
	<description>Lets Learn, Do it &#38; Share! Thats a Best DevOps!!!</description>
	<lastBuildDate>Fri, 31 Dec 2021 12:35:38 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.3</generator>
	<item>
		<title>How to get current city name using google maps API (Laravel)</title>
		<link>https://www.bestdevops.com/how-to-get-current-city-name-using-google-maps-api-laravel/</link>
		
		<dc:creator><![CDATA[pradeep]]></dc:creator>
		<pubDate>Thu, 05 Aug 2021 06:53:25 +0000</pubDate>
				<category><![CDATA[Laravel]]></category>
		<category><![CDATA[currentAddress]]></category>
		<category><![CDATA[CurrentCity]]></category>
		<category><![CDATA[CurrentCountry]]></category>
		<category><![CDATA[geoLocation]]></category>
		<category><![CDATA[googleMAPsApi]]></category>
		<category><![CDATA[Location]]></category>
		<guid isPermaLink="false">https://www.bestdevops.com/?p=18691</guid>

					<description><![CDATA[First of all we need to get a google maps API, go through this documentation to get an API of [&#8230;]]]></description>
										<content:encoded><![CDATA[
<figure class="wp-block-image size-full"><img fetchpriority="high" decoding="async" width="725" height="174" src="https://www.bestdevops.com/wp-content/uploads/2021/08/location-1.png" alt="" class="wp-image-18695" srcset="https://www.bestdevops.com/wp-content/uploads/2021/08/location-1.png 725w, https://www.bestdevops.com/wp-content/uploads/2021/08/location-1-300x72.png 300w" sizes="(max-width: 725px) 100vw, 725px" /><figcaption>Create this html form and make sure you have two hidden input with id let and long</figcaption></figure>



<p class="wp-block-paragraph"></p>



<h3 class="wp-block-heading">First of all we need to get  a google maps API, go through this <a href="https://developers.google.com/maps/documentation/javascript/get-api-key">documentation </a>to get an API of your own.<br>https://developers.google.com/maps/documentation/javascript/get-api-key</h3>



<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="251" src="https://www.bestdevops.com/wp-content/uploads/2021/08/image-33-1024x251.png" alt="" class="wp-image-18692" srcset="https://www.bestdevops.com/wp-content/uploads/2021/08/image-33-1024x251.png 1024w, https://www.bestdevops.com/wp-content/uploads/2021/08/image-33-300x73.png 300w, https://www.bestdevops.com/wp-content/uploads/2021/08/image-33-768x188.png 768w, https://www.bestdevops.com/wp-content/uploads/2021/08/image-33.png 1307w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>You only need Geocoding API and Maps JavaScript API</figcaption></figure>



<h3 class="wp-block-heading">Place this script in your blade file if your are using Laravel or in your HTML inside body tags.</h3>


<pre class="wp-block-code"><span><code class="hljs language-xml"><span class="hljs-tag">&lt;<span class="hljs-name">script</span> <span class="hljs-attr">src</span>=<span class="hljs-string">"https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&amp;callback=initMap&amp;libraries=&amp;v=weekly"</span><span class="hljs-attr">defer</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">script</span>&gt;</span></code></span></pre>


<p class="wp-block-paragraph">Make sure to put your API key in the place of YOUR_API_KEY in provided script above </p>



<h4 class="wp-block-heading">Next thing you need to do after initializing the map is to create a method in jQuery for the call-back method  <em>initMap</em> , it should match the the same callback in the script </h4>



<h3 class="wp-block-heading">After this first thing we need to do is to get our current location (let, long)</h3>


<pre class="wp-block-code"><span><code class="hljs language-xml"><span class="hljs-tag">&lt;<span class="hljs-name">button</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"btn btn-success"</span> <span class="hljs-attr">onClick</span>=<span class="hljs-string">"getAddress()"</span>&gt;</span>Get Location<span class="hljs-tag">&lt;/<span class="hljs-name">button</span>&gt;</span></code></span></pre>


<script src="https://gist.github.com/pradeeprjth/b4cc691c69dc4d97633bf7d311254cfe.js"></script>



<h2 class="wp-block-heading">What we have done in above js code</h2>



<ul class="wp-block-list"><li>getAddress method will get the current let long using geolocation that is provided by HTML;</li><li>in the second function we are setting the value of two hidden input fields with the current let long;</li><li>The initMap method will be called by our script that we initialized earlier</li><li>The initMap method will call geocodeLatLng  method to get the current let long from those hidden input</li><li>Next thing we&#8217;re doing is splitting and formatting the let long value to provide it to geocoder</li><li>you will get your current city name in this address variable</li><li>Console Log the result variable and you&#8217;ll find more properties provide by geocode like long name, short name, postal code, area building number etc etc</li></ul>



<h2 class="wp-block-heading">That&#8217;s it hope this help </h2>



<p class="wp-block-paragraph"></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>AWS Introduces Location Service in Preview</title>
		<link>https://www.bestdevops.com/aws-introduces-location-service-in-preview/</link>
					<comments>https://www.bestdevops.com/aws-introduces-location-service-in-preview/#respond</comments>
		
		<dc:creator><![CDATA[anil]]></dc:creator>
		<pubDate>Mon, 04 Jan 2021 05:16:32 +0000</pubDate>
				<category><![CDATA[AWS]]></category>
		<category><![CDATA[HashiCorp]]></category>
		<category><![CDATA[Location]]></category>
		<category><![CDATA[Service]]></category>
		<guid isPermaLink="false">http://www.bestdevops.com/?p=15315</guid>

					<description><![CDATA[Source:-https://www.infoq.com In one of the latest announcements of re:Invent 2020, AWS introduced the preview of Amazon Location, a new mapping [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>Source:-https://www.infoq.com</p>
<p>In one of the latest announcements of re:Invent 2020, AWS introduced the preview of Amazon Location, a new mapping service for developers to add location-based features like geofencing and built-in tracking to web-based and mobile applications.</p>
<p>The new product offers currently four different types of resources &#8211; maps, place indexes, trackers and geofence collections &#8211; and an API for routing is expected to be added during the preview. While the place indexes API allow searching for addresses, businesses, and points of interest using free-form text, trackers can be linked to geofence collections to implement monitoring of devices as they move in and out of geofences. The service supports maps and map styles provided by Esri and by HERE Technologies, two of the largest location data providers, and it is possible to use existing map libraries such as Mapbox GL and Tangram. As for the documentation, the API is consistent across LBS data providers, making it possible to switch across different providers for different use cases or geographies.</p>
<p>The service will help in use cases such as displaying maps, tracking the movement of packages and devices, geomarketing, geocoding (turn an address into a location) and delivery management. Even if not all geolocation functionalities are yet available, the cloud provider is going to cover an area where it was not offering a managed solution, competing now in the location data market with Google Maps Platform and Azure Maps.</p>
<p>Sander Heije, product owner IoT at PostNL, commented on how the parcel and e-commerce corporation took advantage of an early access to the service to manage and track their Unit Load Devices (ULD), like pallets and containers:</p>
<p>Daniel, author of &#8220;Be A Better Dev&#8221;, explains how the tracker feature can benefit location based applications:</p>
<p>Anton Babenko, AWS Community Hero and HashiCorp ambassador, jokes about the simplicity of setting up a fence and trigger actions when tracked items leave a geofenced area:</p>
<p>The new service is available as preview in a subset of AWS regions and free until the end of the preview. Different pricing plans will then be available, including a request-based usage paid tier.</p>


<figure class="wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper">
<iframe  id="_ytid_30498"  width="675" height="379"  data-origwidth="675" data-origheight="379" src="https://www.youtube.com/embed/?enablejsapi=1&#038;list=PLTCuRW0ikUdMFARYSiWm733n1DcCem6bN&#038;autoplay=0&#038;cc_load_policy=0&#038;cc_lang_pref=&#038;iv_load_policy=1&#038;loop=0&#038;rel=1&#038;fs=1&#038;playsinline=0&#038;autohide=2&#038;theme=dark&#038;color=red&#038;controls=1&#038;disablekb=0&#038;" class="__youtube_prefs__  epyt-is-override  no-lazyload" title="YouTube player"  allow="fullscreen; accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen data-no-lazy="1" data-skipgform_ajax_framebjll=""></iframe>
</div></figure>
]]></content:encoded>
					
					<wfw:commentRss>https://www.bestdevops.com/aws-introduces-location-service-in-preview/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
