Tighten the point-navigation doc comments and state note

This commit is contained in:
German Khokhlov committed 2026-11-18 16:38:25 +04:00
1 parent 6e70793f66
commit ed586a40a1
3 files changed
+7 -7

No files matched your search

+2 -2
View File
@@ -9,10 +9,10 @@ export function createNavigation({
source,
}) {
/**
* Find the catalog camera nearest one WGS84 point.
* Nearest catalog camera to a WGS84 point.
* @param {number} lat Latitude in degrees.
* @param {number} lon Longitude in degrees.
* @returns {string|null} Camera ID of the nearest camera, or null.
* @returns {string|null} Camera ID, or null (invalid point, empty catalog).
*/
function nearestCameraIdToPoint(lat, lon) {
const latitude = Number(lat);