mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-06 03:14:00 +00:00
feat(cctv): add the Open Calgary camera pack (#514)
Supersedes #438 by @rileygramlich, ported onto the current component layout with fixes from review. Verified before merge: format, package boundaries, unit suite, build, and the browser tracking suite; a browser harness for the change where one applies; adversarial review applied. Co-authored-by: rileygramlich <[email protected]>
This commit is contained in:
1 parent
a04502559e
commit
409e27d7f9
15 files changed
+4743
-4
No files matched your search
@@ -380,6 +380,17 @@ export function isLikelyNswCoordinate(lat, lon) {
|
||||
);
|
||||
}
|
||||
|
||||
/** Calgary's municipal extent, with slack for the ring road. */
|
||||
export function isLikelyCalgaryCoordinate(lat, lon) {
|
||||
return (
|
||||
isPlausibleLatLon(lat, lon) &&
|
||||
lat >= 50.8 &&
|
||||
lat <= 51.25 &&
|
||||
lon >= -114.4 &&
|
||||
lon <= -113.8
|
||||
);
|
||||
}
|
||||
|
||||
export function isLikelyFinlandCoordinate(lat, lon) {
|
||||
if (!Number.isFinite(lat) || !Number.isFinite(lon)) return false;
|
||||
return lat >= 59.5 && lat <= 70.5 && lon >= 19 && lon <= 32;
|
||||
|
||||
Reference in new issue
Block a user