Hi Sowmen,
Here is a brief plan for this implementation:
1 Get current location and store it in some LSV(origin)
2 Add success event handler on list service and get all destinations.
4 Invoke "distance_metrics" service with parameters:
4.1 origin from LSV from 1st step.
4.2 destinations from 2nd step.
Here is code how to invoke service from JS:
pre
//You need to replace "serviceName" with your service datasource name.
//Also you need to set correct origins and destinations parameters.
serviceName.execute({data: {origins: "...", destinations: "..." } });
/pre
Note, you can send only 25 items at once. see details here: https://developers.google.com/maps/do...
Regards.