We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a8c634 commit bce1f2cCopy full SHA for bce1f2c
src/address.ts
@@ -40,7 +40,7 @@ function coordinateWithOffset(
40
bearing: number,
41
distance: number,
42
isMetric: boolean
43
-): number[] {
+): [latitude: number, longitude: number] {
44
const R = 6378.137; // Radius of the Earth (http://nssdc.gsfc.nasa.gov/planetary/factsheet/earthfact.html)
45
const d = isMetric ? distance : kilometersToMiles(distance); // Distance in km
46
0 commit comments