Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

In the following partial code, how can I get address in \'address\'variable and

ID: 3842229 • Letter: I

Question

 In the following partial code, how can I get address in 'address'variable and then can use php to call? Anyone show me how to do this?      function geoLookup(){       var latlng = {lat: parseFloat(lat), lng: parseFloat(longi)};       geocoder.geocode({'location': latlng}, function(results, status) {         if (status === 'OK') {          if (results[1]) {            map.setZoom(15);            var marker = new google.maps.Marker({             position: latlng,             map: map            });            var address= document.getElementById("addressA").innerHTML = results[1].formatted_address;            //textString            //infowindow.open(map, marker);          } else {            window.alert('No results found');          }         } else {          window.alert('Geocoder failed due to: ' + status);         }       });           } </script> 

Explanation / Answer

Create ArrayList of LatLng objects separately and add LatLng objects to the ArrayList individually. Once ArrayList is populated, then pass it to PolylineOptions object.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote