[[["เข้าใจง่าย","easyToUnderstand","thumb-up"],["แก้ปัญหาของฉันได้","solvedMyProblem","thumb-up"],["อื่นๆ","otherUp","thumb-up"]],[["ไม่มีข้อมูลที่ฉันต้องการ","missingTheInformationINeed","thumb-down"],["ซับซ้อนเกินไป/มีหลายขั้นตอนมากเกินไป","tooComplicatedTooManySteps","thumb-down"],["ล้าสมัย","outOfDate","thumb-down"],["ปัญหาเกี่ยวกับการแปล","translationIssue","thumb-down"],["ตัวอย่าง/ปัญหาเกี่ยวกับโค้ด","samplesCodeIssue","thumb-down"],["อื่นๆ","otherDown","thumb-down"]],["อัปเดตล่าสุด 2025-07-09 UTC"],[[["Calculates the minimum distance between two geometries, returning the result as a float."],["Accepts a right geometry as input, along with optional `maxError` for reprojection and `proj` for specifying the projection."],["If a projection isn't specified, calculations are performed in a spherical coordinate system with distances in meters."],["Can be applied to Point geometries, as demonstrated in the examples."]]],["The `distance` method calculates the minimum distance between two geometries (`left` and `right`). It accepts optional parameters: `maxError` (maximum tolerated error), `proj` (projection for calculation), and `spherical` (specifies spherical or elliptical calculation when `proj` is not given). The method returns a float value representing the calculated distance. The example code demonstrates how to define a `Point`, calculate the distance to another geometry, and visualize both elements on a map.\n"]]