I'm doing a site in which I use Google Maps API to route the buses and I need to convert the captured address into an input in coordinates, and display them in another input to go with it (I'm doing this with a js alert and it's driving me crazy.)
I'm getting the coordinates together in the following code:
geocoder = new google.maps.Geocoder();
geocoder.geocode({'address':start}, function(results, status){
if( status = google.maps.GeocoderStatus.OK){
latlng = results[0].geometry.location;
alert(latlng);
}
I would like to get the lat and lng separated in an input each to stop using the alert