developers.google.com uses cookies to deliver and enhance the quality of its services and to analyze traffic. If you agree, cookies are also used to serve advertising and to personalize the content and advertisements that you see. Learn more.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-27 UTC."],[[["\u003cp\u003e\u003ccode\u003eGMSGeometryDistance\u003c/code\u003e calculates the shortest distance (great-circle distance) between two coordinates on Earth.\u003c/p\u003e\n"],["\u003cp\u003eThe function takes two \u003ccode\u003eCLLocationCoordinate2D\u003c/code\u003e arguments representing the starting and ending points.\u003c/p\u003e\n"],["\u003cp\u003eThe returned distance is measured in meters.\u003c/p\u003e\n"],["\u003cp\u003eBoth input coordinates must be valid for the function to work correctly.\u003c/p\u003e\n"]]],[],null,[]]