Puoi usare le API di google Maps. Registrati per avere la key e poi usa un codice simile a questo:
Codice PHP:
<html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<title>Google Maps JavaScript API v3 Example: Event Closure</title>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false&key=xxxxx"></script>
<script type="text/javascript">
var map;
function initialize() {
var myLatlng = new google.maps.LatLng(45.73494273523468, 7.340240603515635);
var myOptions = {
zoom: 8,
center: myLatlng,
mapTypeId: google.maps.MapTypeId.ROADMAP
}
map = new google.maps.Map(document.getElementById("mappa"), myOptions);
google.maps.event.addListener(map, 'click', function(event) {
alert(event.latLng);
});
}
</script>
</head>
<body style="margin:0px; padding:0px;" onload="initialize()">
<div id="mappa" style="width:100%; height:100%; "></div>
</body>
</html>
Qui la versione live