title: How to get address from latitude and longitude using angular 6
body: <pre><code>if (navigator.geolocation) {
    navigator.geolocation.getCurrentPosition(pos =&gt; {
          x.value = "" + pos.coords.longitude;
          y.value = "" + pos.coords.latitude;
  
          this.locations.push({
            lng: pos.coords.longitude,
            lat: pos.coords.latitude,
            time: local.value,
            picture: picture.value,
            publicIp: publicIp.value,
            privateIp: privateIp.value
          });
  
          console.log(this.locations);
  
          console.log(local.value);
  </code></pre>