2
私はlonとlatを持っています。 指定されたlonとlatでオブジェクトのアドレスと電話番号が必要です。 JavaScriptのみを使用してどうすればよいですか?JavaScriptで経度と緯度を使用して地名を取得する方法
さらに、マーカー(infowindow.set(アドレスと電話番号))を表示する必要があります。
これは私のコードです:
var marker = new google.maps.Marker({
position: new google.maps.LatLng(aCars[0],aCars[1]),
map: map,
title: 'My workplace',
clickable: false,
icon: 'images/images.png'
});
google.maps.event.addListener(marker,'mouseover',function() {
infowindow.setContent( );
infowindow.open(map, this);
});
LANと緯度が使用している緯度とlan.any shortgetを持っています。 – SANR1103219
Google Maps JS API v3ドキュメントを確認します。これは逆ジオコーディングAPIのjavascriptの例への直接リンクです:http://code.google.com/apis/maps/documentation/javascript/services.html#ReverseGeocoding – ChrisR
非常に非常にありがとうございます。とてもうまく働いています。どのように電話番号で取得する。 – SANR1103219