1

私はlat, long場所の値を持っています。lat , longそのためのGoogleマップを作成するにはどうすればよいですかgoogl maps api , jquery

これは可能ですか??

現在ivを使用して緯度、経度の値を取得しています

        var address = jQuery('#business-address').val();
        var city = jQuery('.city').val();
        var state = jQuery('.state').val();
        var country = jQuery('.country').val();

        var address_string = address+","+city+","+state+","+country;

        var geocoder = new google.maps.Geocoder();

           if (geocoder) {
              geocoder.geocode({ 'address': address_string }, function (results, status) {
                 if (status == google.maps.GeocoderStatus.OK) {
                    alert(results[0].geometry.location);
                 }
                 else {
                    alert("Geocoding failed: " + status);
                 }
              });
           }
4

0 に答える 0