Obiekt zawierający geometrię używaną jako lewy operand operacji.
right
Element
Obiekt zawierający geometrię używaną jako prawy operand operacji.
distance
Liczba zmiennoprzecinkowa
Próg odległości. Jeśli określono projekcję, odległość jest podawana w jednostkach tego rzutowanego układu współrzędnych, w przeciwnym razie w metrach.
maxError
ErrorMargin, domyślnie: null
Maksymalna dopuszczalna wartość błędu podczas wykonywania niezbędnej reprojekcji.
proj
Prognoza, domyślnie: null
Projekcja, w której ma zostać wykonana operacja. Jeśli nie zostanie podana, operacja zostanie wykonana w sferycznym układzie współrzędnych, a odległości liniowe będą podawane w metrach na sferze.
[[["Ł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-07-26 UTC."],[[["`withinDistance` determines if two geographic features are within a specified distance of each other, returning true if they are and false otherwise."],["The distance threshold can be defined in meters or in the units of a given projected coordinate system."],["This function considers the geometries of the features and can handle reprojection with a specified error margin if necessary."]]],["The core function determines if two feature geometries are within a specified distance. It takes two features (`left`, `right`) and a `distance` (in meters or specified projection units) as input, returning a Boolean. Optional arguments include `maxError` for reprojection tolerance and `proj` to define the projection. The operation checks if `left` is within the given `distance` of `right`, considering the provided projection or defaulting to a spherical coordinate system.\n"]]