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

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -