javascript - How to handle multiple getDistanceMatrix calls in the google api? -
i trying make multiple calls google api, function google.maps.distancematrixservice().getdistancematrix
list of destination points. each call has point of origin , multiple destinations.
how can 'map' result of each call input parameters? mean is, have several requests running, , each request calls callback function on completion. now, callback function unfortunately not receive original destination information (i.e. google.maps.latlng
object) string see here ('destinationaddresses'), must again convert google.maps.latlng
object...
is there other way identify content of 'response' object list of google.maps.latlng
objects given google.maps.distancematrixservice().getdistancematrix
?
Comments
Post a Comment