JSFiddle - React, Tailwind, and code Playground

by mynameiswilson

HTML

<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&amp;sensor=false"></script>
<div id="console"></div>

JavaScript

var geocoder;

function initialize() {
    geocoder.geocode( { 'address': '40207'}, function(results, status) {
    if (status == google.maps.GeocoderStatus.OK) {
      $("#console").html(results[0].geometry.location);
      
    } else {
      alert('Geocode was not successful for the following reason: ' + status);
    }
  });
}

google.maps.event.addDomListener(window, 'load', initialize);