Skip to content

Commit bce1f2c

Browse files
typed return types of coordinateWithOffset
1 parent 6a8c634 commit bce1f2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/address.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ function coordinateWithOffset(
4040
bearing: number,
4141
distance: number,
4242
isMetric: boolean
43-
): number[] {
43+
): [latitude: number, longitude: number] {
4444
const R = 6378.137; // Radius of the Earth (http://nssdc.gsfc.nasa.gov/planetary/factsheet/earthfact.html)
4545
const d = isMetric ? distance : kilometersToMiles(distance); // Distance in km
4646

0 commit comments

Comments
 (0)