-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Open
Labels
c: featureRequest for new featureRequest for new featurem: locationSomething is referring to the location moduleSomething is referring to the location modulep: 1-normalNothing urgentNothing urgents: waiting for user interestWaiting for more users interested in this featureWaiting for more users interested in this feature
Milestone
Description
Clear and concise description of the problem
Currently address.nearbyGPSCoordinate is hardly based on earth, but we can change that simply by provide the possibility to provide a custom circumference given by the user.
faker/src/modules/address/index.ts
Lines 544 to 545 in 7327e6e
| // TODO @Shinigami92 2022-04-26: Provide an option property to provide custom circumferences. | |
| const kmPerDegree = 40_000 / 360; // in km/° |
Suggested solution
nearbyGPSCoordinate(
coordinate?: [latitude: number, longitude: number],
options: {
radius: number = 10,
isMetric: boolean = false
circumference: number = 40_000
}
)Alternative
No response
Additional context
No response
github-actions, HonzaMac and Shinigami92
Metadata
Metadata
Assignees
Labels
c: featureRequest for new featureRequest for new featurem: locationSomething is referring to the location moduleSomething is referring to the location modulep: 1-normalNothing urgentNothing urgents: waiting for user interestWaiting for more users interested in this featureWaiting for more users interested in this feature