Returns the length of the segment [a, b] in projected space.
The length is computed along the short path between the points potentially crossing the date
line. E.g. the distance between the points corresponding to San Francisco and Tokyo measures the
segment that passes north of Hawaii crossing the date line.
[[["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 2024-11-15 UTC."],[[["\u003cp\u003e\u003ccode\u003eGMSMapPointDistance\u003c/code\u003e calculates the distance between two \u003ccode\u003eGMSMapPoints\u003c/code\u003e in projected space.\u003c/p\u003e\n"],["\u003cp\u003eThe calculated distance represents the shortest path between the points, even if it crosses the international date line.\u003c/p\u003e\n"],["\u003cp\u003eFor example, the distance between San Francisco and Tokyo is measured along the segment crossing the Pacific Ocean north of Hawaii.\u003c/p\u003e\n"]]],["The `GMSMapPointDistance` function calculates the distance between two `GMSMapPoint`s (a and b) in projected space. It determines the length of the shortest path between the points, even if this path crosses the international date line. The calculation considers the most direct route, exemplified by the distance between San Francisco and Tokyo being measured across the path north of Hawaii.\n"],null,["GMSMapPointDistance \n\n extern double GMSMapPointDistance(../Structs/GMSMapPoint.html a, ../Structs/GMSMapPoint.html b)\n\nReturns the length of the segment \\[a, b\\] in projected space.\n\nThe length is computed along the short path between the points potentially crossing the date\nline. E.g. the distance between the points corresponding to San Francisco and Tokyo measures the\nsegment that passes north of Hawaii crossing the date line."]]