Welcome to Help center

We are here to help

Lat Long Position

Follow

HTML:
        <input type="text" class="form-control" placeholder="Latitude" id="latitude" readonly>
        <input type="text" class="form-control" placeholder="Longitude" id="longitude" readonly>
    
Before </body> tag ends:
        <script src="https://maps.googleapis.com/maps/api/js?v=3&libraries=places"></script>
        <script>
            function success(position) {
                initSubmitMap(position.coords.latitude, position.coords.longitude);
                $('#latitude').val( position.coords.latitude );
                $('#longitude').val( position.coords.longitude );
            }
        </script>
    

 

Comments

Top
Powered by Zendesk