As per the documentation, we retrieve the distance between a set of origins and destinations in the following manner (Server API).
https://maps.googleapis.com/maps/api/distancematrix/json?origins=Washington%20DC&destinations=New%20York&mode=walking&key=
Instead of passing place names, it would be better if we pass the place_id as the origin or destination. This would give more accurate results. Is it possible ?
For eg. Is it possible to perform an API call like:
https://maps.googleapis.com/maps/api/distancematrix/json?origins=<place_id>&destinations=<place_id>&mode=walking&key=
???
Thankyou