J'ai une adresse, et maintenant j'ai besoin de récupérer les coordonnées Lat/Lang.
Chez Google, they only have good examples pour V2 et non pour V3.Comment puis-je obtenir lat/lang avec Geocode?
Je veux faire ce qui suit:
var myLatLAng = getLatLang(adress);
Comment puis-je modifier ce code pour faire ce happend?
function showAddress(address) {
geocoder.getLatLng(
address,
function(point) {
if (!point) {
alert(address + " not found");
} else {
map.setCenter(point, 13);
var marker = new GMarker(point);
map.addOverlay(marker);
marker.openInfoWindowHtml(address);
}
}
);
}
Ouais ... c'est ce que je craignais :(Merci. – Steven