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
Post a Comment