Http sites does not detect the location in Chrome - issue
<p>We did notice today an issue in automatic detection of zip code based on the user s location. it worked well in other browsers(edge, IE, Firefox) 
We had to configure the sites to https and then it works ok</p>

<p>Example : <a href="https://www.whatismyzip.com/" rel="noreferrer">https://www.whatismyzip.com/</a> works well 
   where as <a href="http://www.mapdevelopers.com/what-is-my-zip-code.php" rel="noreferrer">http://www.mapdevelopers.com/what-is-my-zip-code.php</a> does'nt work.</p>

<pre><code>  &lt;script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=AIzaSyAdGQKI4sEj5TZAjNCds422V_ZHevD45Fo"&gt;&lt;/script&gt;
 &lt;%--   &lt;script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?sensor=false&amp;libraries=places"&gt;&lt;/script&gt;--%&gt;

 &lt;%--     &lt;script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?libraries=places"&gt;&lt;/script&gt;
 &lt;script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"&gt;&lt;/script&gt;--%&gt;
    &lt;script type="text/javascript"&gt;


        function ShowMessages() {

            debugger;
            if (navigator.geolocation) {
                navigator.geolocation.getCurrentPosition(success);
            } else {
                alert("Geo Location is not supported on your current browser!");
            }
            function success(position) {
                debugger;
                var lat = position.coords.latitude;
                var lng = position.coords.longitude;
                var latlng = new google.maps.LatLng(lat, lng);
                var geocoder = geocoder = new google.maps.Geocoder();
                geocoder.geocode({ 'latLng': latlng }, function (results, status) {
                    if (status == google.maps.GeocoderStatus.OK) {
                        if (results[1]) {

                            var searchAddressComponents = results[0].address_components,
                             searchPostalCode = "";
                            $.each(searchAddressComponents, function () {
                                if (this.types[0] == "postal_code") {
                                    searchPostalCode = this.short_name;
                                }
                            });

                            document.getElementById('hidden1').value = searchPostalCode
                            __doPostBack('', '');


                        }
                    }
                });
            }

        }
</code></pre>

<p>Any help/workaround would be appreciated.</p>

<p><strong>EDIT: Other than Google API, are there any other working alternatives?</strong></p>