Skip to content

Commit

Permalink
chore(address): add todo
Browse files Browse the repository at this point in the history
  • Loading branch information
xDivisionByZerox committed Jul 1, 2022
1 parent 5d56f93 commit 581bcd2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/modules/address/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,7 @@ export class Address {
* faker.address.latitude() // -30.9501
* faker.address.latitude(10, -10, 5) // 2.68452
*/
// TODO @xDivisionByZerox 2022-06-12 this signature should probably be an object for easier maintainability
latitude(max: number = 90, min: number = -90, precision: number = 4): number {
return this.faker.datatype.number({
min,
Expand All @@ -350,6 +351,7 @@ export class Address {
* faker.address.longitude() // -154.0226
* faker.address.longitude(10, -10, 5) // -4.03620
*/
// TODO @xDivisionByZerox 2022-06-12 this signature should probably be an object for easier maintainability
longitude(
max: number = 180,
min: number = -180,
Expand Down

0 comments on commit 581bcd2

Please sign in to comment.