الشكل الهندسي المستخدَم كعامل تشغيل أيسر في العملية
right
هندسة
الشكل الهندسي المستخدَم كعامل تشغيل أيمن للعملية
maxError
هامش الخطأ، الإعداد التلقائي: فارغ
الحد الأقصى المسموح به للخطأ عند إجراء أي عملية إعادة إسقاط ضرورية
proj
الإسقاط، القيمة التلقائية: null
الإسقاط الذي سيتم تنفيذ العملية فيه في حال عدم تحديده، سيتم تنفيذ العملية في نظام إحداثيات كروية، وسيتم قياس المسافات الخطية بالمتر على الكرة.
spherical
منطقية، القيمة التلقائية: خطأ
إذا كان صحيحًا، سيتم إجراء عملية الحساب على كرة الوحدة. إذا كانت القيمة false، ستكون العملية الحسابية بيضاوية الشكل، مع أخذ انحناء الأرض في الاعتبار. يتم تجاهله إذا تم تحديد proj. القيمة التلقائية هي false.
تاريخ التعديل الأخير: 2025-06-24 (حسب التوقيت العالمي المتفَّق عليه)
[[["يسهُل فهم المحتوى.","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-06-24 (حسب التوقيت العالمي المتفَّق عليه)"],[[["`distance()` calculates the minimum distance between a MultiPolygon and another geometry."],["The function returns the distance as a float, potentially in meters on the sphere depending on the projection used."],["Optional parameters include `maxError` for reprojection tolerance and `proj` to specify the projection for the calculation."],["The distance is computed from the boundary of the MultiPolygon to the nearest point on the other geometry."]]],["The `distance` method calculates the minimum distance between two geometries (`left` and `right`). It accepts optional arguments: `maxError` (tolerated error during reprojection), `proj` (projection for the operation), and `spherical` (whether to use a spherical or elliptical model). The method returns a float representing the distance. Examples in JavaScript and Python demonstrate calculating the distance between a MultiPolygon and a Point, and how to display the result in a map.\n"]]