Appel de fonction avec paramètres différents
Bonjour, j'ai une fonction :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
| function loadItineraire(result) {//directionsDisplay.getDirections()
var itineraire = result.routes[0].legs[0];
document.getElementById('latitude').value = itineraire.end_location.lat();
document.getElementById('longitude').value = itineraire.end_location.lng(); //formatted_address
codeLatLng(itineraire.end_location.lat(), itineraire.end_location.lng(), 'adresse'); ca fonctionne
document.getElementById('LatOrg').value = itineraire.start_location.lat();
document.getElementById('LongOrg').value = itineraire.start_location.lng(); //formatted_address
//codeLatLng(itineraire.start_location.lat(), itineraire.start_locationn.lng(), 'txtorigine'); ne fonctionne pas
computeTotalDistance(result);
showForm();
} |
la meme ligne avec des differents parametres ne fonctionne pas :calim2: