API to calculate distance in kilometers between 2 GPS locations

I am collecting a users preferred location using Google and autocomplete. I want to loop through a set of records and calculate the distance between the location in this record and the location collected from user. Is there an API I can use to calculate the distances between the points?

Community Page
Last updated: