I guess you want to use latitude and longitude to get name of location, so you have to use the Reverse Geocoding service from google map api .
This is the function that you need :
function codeLatLng() {
var input = document.getElementById('latlng').value;
var latlngStr = input.split(',', 2);
var lat = parseFloat(latlngStr[0]);
var lng = parseFloat(latlngStr[1]);
var latlng = new google.maps.LatLng(lat, lng);
geocoder.geocode({'latLng': latlng}, function(results, status) {
if (status == google.maps.GeocoderStatus.OK) {
if (results[1]) {
map.setCenter(latlng);
map.setZoom(11);
if(marker){
marker.setPosition(latlng);
}
else {
marker = new google.maps.Marker({
position: latlng,
map: map
});
}
// adr is the latitude longitude place name after geocoding
adr = results[1].formatted_address;
document.getElementById("adresse").value = adr ;
} else {
alert('No results found');
}
} else {
alert('Geocoder failed due to: ' + status);
}
});
}