Donate. I desperately need donations to survive due to my health

Get paid by answering surveys Click here

Click here to donate

Remote/Work from Home jobs

Calculate distance between 2 points using google map

I want to calculate the distance between 2 points by using google maps API.
Scenario:
The user will search the doctors by entering city or zip code, based on city/zip he'll get a list of doctors. I want to show the distance of each doctor from the user.
My query:
should I get the distance of all doctors from user location in a single API call or API will call multiple time as per the records available at particular city/zip. If is it possible to get all distance in single API call then pls help me with some sample code. I'm using CodeIgniter framework. Thanks in advance.

Comments