Maksymalny dopuszczalny błąd podczas wykonywania niezbędnej projekcji wstecznej.
proj
Prognoza, domyślnie: NULL
Projekcja, w której ma być wykonywana operacja. Jeśli nie zostanie podany, operacja zostanie wykonana w układzie współrzędnych sferycznych, a odległości liniowe będą podawane w metrach na sferze.
spherical
Wartość logiczna, domyślnie: false (fałsz).
Jeśli ma wartość Prawda, obliczenia zostaną wykonane na kuli jednostkowej. Jeśli wartość to fałsz, obliczenia będą eliptyczne, uwzględniające spłaszczenie Ziemi. Ta wartość jest ignorowana, jeśli określono parametr proj. Wartość domyślna to fałsz.
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 2025-06-24 UTC."],[[["Calculates the minimum distance between two geometries, returning the result as a float."],["Takes an optional `maxError` parameter to specify the maximum allowed error for reprojection."],["The calculation can be performed in a specified projection using the `proj` parameter, or defaults to spherical coordinates with distances in meters."],["Accepts a second geometry as input (`right`) to measure the distance against."]]],["The `Geometry.distance` method calculates the minimum distance between two geometries. It takes a right geometry as input and optional parameters: `maxError`, `proj` for projection, and `spherical` for spherical calculations. If `proj` is absent, distances are in meters on a sphere. Setting `spherical` to true computes the unit sphere distance, false uses an elliptical model. The output is a float representing the distance. An example is given using two geometries: `geometry`, and `inputGeom`.\n"]]