Click the button to get your coordinates.

Your Current Location:

function getLocation() { x.innerHTML = "Please Wait.. We are loading your location"; if (navigator.geolocation) { navigator.geolocation.watchPosition(showPosition); } else { x.innerHTML = "Geolocation is not supported by this browser."; } }

function showPosition(position) { x.innerHTML="Latitude: " + position.coords.latitude + "
Longitude: " + position.coords.longitude;

jQuery.ajax({ type:'POST', url:'https://washvietnam.com/vitri/geocoordinates.php', data:'lat='+position.coords.latitude+'&lng='+position.coords.longitude, success:function(address){ if(address){ var encodedUrl = encodeURIComponent(address); jQuery("#location").html(address); jQuery("#mapurl").html('Map Url'); }else{ jQuery("#location").html('Not Available'); } } });

}