Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Latitude and Longitude #53

Closed
axrs opened this issue Mar 25, 2022 · 2 comments
Closed

Latitude and Longitude #53

axrs opened this issue Mar 25, 2022 · 2 comments

Comments

@axrs
Copy link

axrs commented Mar 25, 2022

It would be nice if Faker had support for creating Latitude and Longitude values.

Something to this effect should work, with faker being the current instance instead of the global.

It might sit under faker.address.latitude/faker.address.longitude or even faker.geospatial.latitude/faker.geospatial.longitude ?

double longitude() {
  return -180 + faker.randomGenerator.decimal() * 180 * 2;
}

double latitude() {
  return -90 + faker.randomGenerator.decimal() * 90 * 2;
}
@drager
Copy link
Owner

drager commented Mar 31, 2022

Sounds great to include it. I think the best would be to put it under geolocation, geo or geospatial. Feel free to send a PR 😊

@lsaudon lsaudon mentioned this issue Nov 10, 2022
2 tasks
@drager drager closed this as completed Dec 7, 2022
@drager
Copy link
Owner

drager commented Dec 7, 2022

Fixed in #63

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants