From f81341e83c2f3f0267d882f7c05550f1907a17b2 Mon Sep 17 00:00:00 2001 From: xDivisionByZerox Date: Thu, 31 Mar 2022 21:24:37 +0200 Subject: [PATCH] refactor(address.nearbyGPSCoordinate): improve mathfor bearing --- src/address.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/address.ts b/src/address.ts index 0872aeb0671..f906995f53a 100644 --- a/src/address.ts +++ b/src/address.ts @@ -541,9 +541,9 @@ export class Address { degreesToRadians( this.faker.datatype.number({ min: 0, - max: 1, + max: 360, precision: 1e-4, - }) * 360.0 + }) ), radius, isMetric